Accepting request 594071 from home:cyphar:containers:catatonit
- Fix build to correctly build a static binary (which will allow it to work in all containers). This was caused by forgetting to include 'glibc-devel-static'. I've added a check to ensure it doesn't happen by accident again. OBS-URL: https://build.opensuse.org/request/show/594071 OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/catatonit?expand=0&rev=6
This commit is contained in:
parent
fc89319be7
commit
83a8c21966
3
catatonit-rpmlintrc
Normal file
3
catatonit-rpmlintrc
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# We need catatonit to be statically linked.
|
||||||
|
addFilter ("^catatonit.*: W: statically-linked-binary /usr/bin/catatonit")
|
||||||
|
addFilter ("^catatonit.*: W: position-independent-executable-suggested /usr/bin/catatonit")
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 6 18:31:08 UTC 2018 - asarai@suse.com
|
||||||
|
|
||||||
|
- Fix build to correctly build a static binary (which will allow it to work in
|
||||||
|
all containers). This was caused by forgetting to include
|
||||||
|
'glibc-devel-static'. I've added a check to ensure it doesn't happen by
|
||||||
|
accident again.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Apr 3 23:27:27 UTC 2018 - jengelh@inai.de
|
Tue Apr 3 23:27:27 UTC 2018 - jengelh@inai.de
|
||||||
|
|
||||||
|
@ -28,7 +28,9 @@ Source1: %{name}-%{version}.tar.xz.asc
|
|||||||
Source2: %{name}.keyring
|
Source2: %{name}.keyring
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
|
BuildRequires: file
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
|
BuildRequires: glibc-devel-static
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -49,6 +51,10 @@ autoreconf -fi
|
|||||||
%configure
|
%configure
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
# Make sure we *always* build a static binary. Otherwise we'll break containers
|
||||||
|
# that don't have the necessary shared libs.
|
||||||
|
file ./%{name} | grep 'statically linked'
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
ln -s %{_bindir}/%{name} %{buildroot}%{_bindir}/docker-init
|
ln -s %{_bindir}/%{name} %{buildroot}%{_bindir}/docker-init
|
||||||
|
Loading…
Reference in New Issue
Block a user