[DSE-Dev] Bug#946811: libselinux FTBFS with nopython build profile during clean

Helmut Grohne helmut at subdivi.de
Mon Dec 16 06:12:04 GMT 2019


Source: libselinux
Version: 3.0-1
Severity: important
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

libselinux fails to build from source with the nopython build profile
since version 3.0-1:

|    dh_auto_clean
|         make -j1 distclean
| make[1]: Entering directory '/tmp/buildd/libselinux_1/libselinux-3.0'
| Package libpcre was not found in the pkg-config search path.
| Perhaps you should add the directory containing `libpcre.pc'
| to the PKG_CONFIG_PATH environment variable
| No package 'libpcre' found
| Package libpcre was not found in the pkg-config search path.
| Perhaps you should add the directory containing `libpcre.pc'
| to the PKG_CONFIG_PATH environment variable
| No package 'libpcre' found
| make[2]: Entering directory '/tmp/buildd/libselinux_1/libselinux-3.0/src'
| rm -f python-3.7selinuxswig_python_wrap.lo python-3.7_selinux.so python-3.7audit2why.lo python-3.7audit2why.so
| python3 setup.py clean
| Traceback (most recent call last):
|   File "setup.py", line 3, in <module>
|     from distutils.core import Extension, setup
| ModuleNotFoundError: No module named 'distutils.core'
| make[2]: Leaving directory '/tmp/buildd/libselinux_1/libselinux-3.0/src'
| make[2]: *** [Makefile:189: clean-pywrap] Error 1
| make[1]: Leaving directory '/tmp/buildd/libselinux_1/libselinux-3.0'
| make[1]: *** [Makefile:44: distclean] Error 1
| dh_auto_clean: make -j1 distclean returned exit code 2
| make: *** [debian/rules:43: clean] Error 255
| dpkg-buildpackage: error: fakeroot debian/rules clean subprocess returned exit status 2
| rebootstrap-error: dpkg-buildpackage failed with status 2

Please consider applying the attached patch.

Severity set to important, because this affects architecture bootstrap.

Helmut
-------------- next part --------------
diff --minimal -Nru libselinux-3.0/debian/changelog libselinux-3.0/debian/changelog
--- libselinux-3.0/debian/changelog	2019-12-11 14:38:39.000000000 +0100
+++ libselinux-3.0/debian/changelog	2019-12-16 06:08:28.000000000 +0100
@@ -1,3 +1,10 @@
+libselinux (3.0-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix clean with DEB_BUILD_PROFILES=nopython. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Mon, 16 Dec 2019 06:08:28 +0100
+
 libselinux (3.0-1) unstable; urgency=medium
 
   * New upstream release
diff --minimal -Nru libselinux-3.0/debian/rules libselinux-3.0/debian/rules
--- libselinux-3.0/debian/rules	2019-12-11 14:38:39.000000000 +0100
+++ libselinux-3.0/debian/rules	2019-12-16 06:08:28.000000000 +0100
@@ -46,6 +46,11 @@
 debian/rules:
 	@touch $@
 
+ifneq (,$(filter nopython,$(DEB_BUILD_PROFILES)))
+override_dh_auto_clean:
+	dh_auto_clean -- PYTHON=true
+endif
+
 ## Set up some variables to be passed to the upstream Makefile
 extra_make_args = ARCH=$(DEB_HOST_GNU_CPU)
 extra_make_args += CC=$(DEB_HOST_GNU_TYPE)-gcc


More information about the SELinux-devel mailing list