- add include-fixes.patch

- reenable FORTIFY_SOURCE=3

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/lxcfs?expand=0&rev=43
This commit is contained in:
2022-09-30 20:50:33 +00:00
committed by Git OBS Bridge
parent 5461c2406d
commit 6fade5a075
3 changed files with 21 additions and 2 deletions

View File

@@ -31,6 +31,7 @@ URL: https://linuxcontainers.org/lxcfs
Source: https://linuxcontainers.org/downloads/%{name}/%{name}-%{version}.tar.gz
Source1: https://linuxcontainers.org/downloads/%{name}/%{name}-%{version}.tar.gz.asc
Source2: %{name}.keyring
Patch1: include-fixes.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: fdupes
@@ -63,11 +64,10 @@ Configuration to add hooks for %{name} so that it automatically interoperates
with LXC for all containers.
%prep
%setup
%autosetup -p1
%build
autoreconf -vif
export CPPFLAGS="-D_FORTIFY_SOURCE=2"
%configure --with-distro=opensuse
make %{?_smp_mflags}