[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#742640: src:eglibc: build stage2 without selinux



Version: 2.19-5

On Tue, Mar 25, 2014 at 09:51:33PM +0100, Helmut Grohne wrote:
> The eglibc package currently lacks a stage2 build profile entirely. A
> stage2 is needed though, because libselinux cannot be built without an
> actual libc among other things and eglibc explicitly enabled selinux via
> a configure flag. The attached patch removes that flag when the package
> is built with dpkg-buildpackage -Pstage2.

Updated patch to apply against glibc 2.19. It also disables systemptap
now.

Helmut
diff -Nru eglibc-2.19/debian/sysdeps/linux.mk eglibc-2.19/debian/sysdeps/linux.mk
--- eglibc-2.19/debian/sysdeps/linux.mk
+++ eglibc-2.19/debian/sysdeps/linux.mk
@@ -12,7 +12,11 @@
 ifeq ($(DEB_BUILD_PROFILE),bootstrap)
   libc_extra_config_options = $(extra_config_options)
 else
-  libc_extra_config_options = --with-selinux --enable-systemtap $(extra_config_options)
+  ifneq ($(filter stage2,$(DEB_BUILD_PROFILES)),)
+    libc_extra_config_options = $(extra_config_options)
+  else 
+    libc_extra_config_options = --with-selinux --enable-systemtap $(extra_config_options)
+  endif
 endif
 
 ifndef LINUX_SOURCE

Reply to: