Your message dated Fri, 15 Sep 2017 10:22:12 +0000
with message-id <e1dsnle-000h9e...@fasolo.debian.org>
and subject line Bug#875573: fixed in libselinux 2.7-2
has caused the Debian Bug report #875573,
regarding libselinux should stop using the stage1 profile
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
875573: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=875573
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: libselinux
Version: 2.7-1
Severity: wishlist
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

Hi Laurent,

as discussed on irc, I am sending you the patch for making libselinux
stop using the stage1 profile. Rationale in #875562. Hope it helps.

Helmut
diff --minimal -Nru libselinux-2.7/debian/changelog 
libselinux-2.7/debian/changelog
--- libselinux-2.7/debian/changelog     2017-09-09 23:32:59.000000000 +0200
+++ libselinux-2.7/debian/changelog     2017-09-12 12:43:36.000000000 +0200
@@ -1,3 +1,10 @@
+libselinux (2.7-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Use profiles nopython and noruby rather than stage1. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Tue, 12 Sep 2017 12:43:36 +0200
+
 libselinux (2.7-1) unstable; urgency=medium
 
   * New upstream release
diff --minimal -Nru libselinux-2.7/debian/control libselinux-2.7/debian/control
--- libselinux-2.7/debian/control       2017-09-09 23:32:59.000000000 +0200
+++ libselinux-2.7/debian/control       2017-09-12 12:43:34.000000000 +0200
@@ -8,15 +8,15 @@
            Russell Coker <russ...@coker.com.au>
 Standards-Version: 4.1.0
 Build-Depends: debhelper (>= 10),
-               dh-python <!stage1>,
+               dh-python <!nopython>,
                file,
-               gem2deb (>= 0.5.0~) <!stage1>,
+               gem2deb (>= 0.5.0~) <!noruby>,
                libsepol1-dev (>= 2.7),
                libpcre3-dev,
                pkg-config,
-               python-all-dev (>= 2.6.6-3~) <!stage1>,
-               python3-all-dev <!stage1>,
-               swig <!stage1>
+               python-all-dev (>= 2.6.6-3~) <!nopython>,
+               python3-all-dev <!nopython>,
+               swig <!nopython> <!noruby>
 X-Python-Version: >= 2.4
 X-Python3-Version: >= 3.2
 XS-Ruby-Versions: all
@@ -110,7 +110,7 @@
 Architecture: linux-any
 Depends: ruby | ruby-interpreter, ${misc:Depends}, ${shlibs:Depends}
 Section: ruby
-Build-Profiles: <!stage1>
+Build-Profiles: <!noruby>
 Description: Ruby bindings to SELinux shared libraries
  This package provides the Ruby bindings needed for developing Ruby
  SELinux applications.  Security-enhanced Linux is a patch of the
@@ -129,7 +129,7 @@
 Built-Using: ${Built-Using}
 Section: python
 Provides: ${python:Provides}
-Build-Profiles: <!stage1>
+Build-Profiles: <!nopython>
 Description: Python bindings to SELinux shared libraries
  This package provides the Python bindings needed for developing Python
  SELinux applications.
@@ -149,7 +149,7 @@
 Built-Using: ${Built-Using}
 Section: python
 Provides: ${python3:Provides}
-Build-Profiles: <!stage1>
+Build-Profiles: <!nopython>
 Description: Python3 bindings to SELinux shared libraries
  This package provides the Python3 bindings needed for developing Python
  SELinux applications.
diff --minimal -Nru libselinux-2.7/debian/rules libselinux-2.7/debian/rules
--- libselinux-2.7/debian/rules 2017-09-09 23:32:59.000000000 +0200
+++ libselinux-2.7/debian/rules 2017-09-12 12:41:55.000000000 +0200
@@ -10,6 +10,8 @@
 DEB_HOST_MULTIARCH     := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 LIBDIR_LIBSEPOL                := $(shell pkg-config --variable=libdir 
libsepol)
 
+DOPACKAGES = $(shell dh_listpackages)
+
 PREFIX = /usr
 
 BUILT_USING=$(shell dpkg-query -f '$${source:Package} (= $${source:Version}), 
' -W "libsepol1-dev")
@@ -32,22 +34,23 @@
 
 ## By default, pass everything through debhelper automatically
 export DH_OPTIONS
-%: FORCE
-ifeq ($(DEB_BUILD_PROFILES),stage1)
-       @dh $@
-else
-       @dh $@ --with=python2,python3,ruby
+DH_ADDONS =
+ifneq ($(filter python-selinux,$(DOPACKAGES)),)
+DH_ADDONS += --with=python2
 endif
+ifneq ($(filter python3-selinux,$(DOPACKAGES)),)
+DH_ADDONS += --with=python3
+endif
+ifneq ($(filter ruby-selinux,$(DOPACKAGES)),)
+DH_ADDONS += --with=ruby
+endif
+%: FORCE
+       @dh $@ $(DH_ADDONS)
 
 ## Don't try to rebuild the debian/rules file
 debian/rules:
        @touch $@
 
-## Skip python/ruby packages during stage1 build
-ifeq ($(DEB_BUILD_PROFILES),stage1)
-DH_OPTIONS += -Npython-selinux -Nruby-selinux -Npython3-selinux
-endif
-
 ## Set up some variables to be passed to the upstream Makefile
 extra_make_args  = LIBSEPOLA=$(LIBDIR_LIBSEPOL)/libsepol.a
 extra_make_args += ARCH=$(DEB_HOST_GNU_CPU)
@@ -68,11 +71,11 @@
        @# Fix up the broken library symlink
        rm -f $(DESTDIR)/usr/lib/$(DEB_HOST_MULTIARCH)/libselinux.so
        ln -s /lib/$(DEB_HOST_MULTIARCH)/libselinux.so.1 
$(DESTDIR)/usr/lib/$(DEB_HOST_MULTIARCH)/libselinux.so
-ifneq ($(DEB_BUILD_PROFILES),stage1)
+ifneq ($(filter python-selinux python3-selinux,$(DOPACKAGES)),)
        +$(MAKE) PREFIX="$(PREFIX)" $(python_extra_install_args) -f 
debian/python.mk
+endif
+ifneq ($(filter ruby-selinux,$(DOPACKAGES)),)
        +$(MAKE) PREFIX="$(PREFIX)" $(extra_install_args) -f debian/ruby.mk
-else
-       @echo "Detected stage-1 bootstrap, skipping python/ruby bindings..."
 endif
 
 ## Generate a hard error for any upstream files we don't install

--- End Message ---
--- Begin Message ---
Source: libselinux
Source-Version: 2.7-2

We believe that the bug you reported is fixed in the latest version of
libselinux, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 875...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Laurent Bigonville <bi...@debian.org> (supplier of updated libselinux package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Fri, 15 Sep 2017 11:46:07 +0200
Source: libselinux
Binary: selinux-utils libselinux1 libselinux1-dev libselinux1-udeb ruby-selinux 
python-selinux python3-selinux
Architecture: source amd64
Version: 2.7-2
Distribution: unstable
Urgency: medium
Maintainer: Debian SELinux maintainers <selinux-de...@lists.alioth.debian.org>
Changed-By: Laurent Bigonville <bi...@debian.org>
Description:
 libselinux1 - SELinux runtime shared libraries
 libselinux1-dev - SELinux development headers
 libselinux1-udeb - SELinux runtime shared libraries (udeb)
 python-selinux - Python bindings to SELinux shared libraries
 python3-selinux - Python3 bindings to SELinux shared libraries
 ruby-selinux - Ruby bindings to SELinux shared libraries
 selinux-utils - SELinux utility programs
Closes: 875507 875573
Changes:
 libselinux (2.7-2) unstable; urgency=medium
 .
   [ Helmut Grohne ]
   * Fix FTCBFS: Add the host architecture to pkg-config (Closes: #875507)
   * Use profiles nopython and noruby rather than stage1. (Closes: #875573)
Checksums-Sha1:
 35a6c9e9cf6fe170e86932c76363759a40142a97 2369 libselinux_2.7-2.dsc
 1a3412c4d54aa41edbf1d9c64e11b9d2d5ead6fa 23044 libselinux_2.7-2.debian.tar.xz
 ba2491ca7344fd32c5b7ed4486f4b99f26e7218e 198584 
libselinux1-dbgsym_2.7-2_amd64.deb
 2ea16ae4147427c68dafbb6efc4205a778302bcb 168336 libselinux1-dev_2.7-2_amd64.deb
 3f6821547a79f47732807906be4c189ec52ef71f 63234 
libselinux1-udeb_2.7-2_amd64.udeb
 614ea5e0c2fee4b48b20205c6c58f2d2c512e406 85950 libselinux1_2.7-2_amd64.deb
 bd928480e17f4d324efdae96523f51dcaa02bb02 10326 libselinux_2.7-2_amd64.buildinfo
 acaf3c531af564394bd1f168a67ba31ccbd2d8c7 199222 
python-selinux-dbgsym_2.7-2_amd64.deb
 4ecb37b49abc325b2f4ff73aecfd8ec2a81b56de 158614 python-selinux_2.7-2_amd64.deb
 3114b88cd56cf8139cd360cc36f5c04711697550 360678 
python3-selinux-dbgsym_2.7-2_amd64.deb
 7f6f6eebf4b60d99ad1e39069c7cd15294310070 158546 python3-selinux_2.7-2_amd64.deb
 24bb4145b218fdd3ad766983c169de6524b90c25 159740 
ruby-selinux-dbgsym_2.7-2_amd64.deb
 befcd273c26af75f7955766600029ece6b3c0e76 58698 ruby-selinux_2.7-2_amd64.deb
 f3b203193693e20c23d1e6a51786b0ecbb8c70db 155774 
selinux-utils-dbgsym_2.7-2_amd64.deb
 82dfcd4f37ddd3b8ce79df910d4f098d8b7adcf1 100392 selinux-utils_2.7-2_amd64.deb
Checksums-Sha256:
 09e23dce37d309751db1b5a411a330c6fac9f392a67e56ce943bad88757af1df 2369 
libselinux_2.7-2.dsc
 acd5c8f6607a5b10aeaa705214ea4924939cbe2de7cce174eccf5973c6f92771 23044 
libselinux_2.7-2.debian.tar.xz
 019d96893ebeb9aecb385cc9edcda3a67501bacda9e2060f3be79afb9b24b20e 198584 
libselinux1-dbgsym_2.7-2_amd64.deb
 e9a0a19f5b23f1dc4aa5b94135ad084a5902acf6548267f3c1ab86b0725ced65 168336 
libselinux1-dev_2.7-2_amd64.deb
 496b60292a273504c191fa58368a807d64dac9e74f7c24f89d137905ef6cbbd5 63234 
libselinux1-udeb_2.7-2_amd64.udeb
 f812d15dbabbde90871f99bd550c6bc3b1da185b09ac1da142f0d7a9048b8074 85950 
libselinux1_2.7-2_amd64.deb
 18a2e5e3d98f6e20e8cc5498700ad0f2294179bedb2e0291a0f4bafc68c8d3bb 10326 
libselinux_2.7-2_amd64.buildinfo
 8e6a6f9f25bd48cf7c995fee9daa04c14497d3507bd47e46ba4d63cfe19653a3 199222 
python-selinux-dbgsym_2.7-2_amd64.deb
 3ee97a733bea9561972dd4475d3cfa52ead6a16438699f8d2bdf5f7e0f2e86bf 158614 
python-selinux_2.7-2_amd64.deb
 b43945af295c926eaac60e4aa99902289b5d8e26fbf305b2727a1e623ee74a9b 360678 
python3-selinux-dbgsym_2.7-2_amd64.deb
 156c6aa2aec3cda9ae8008d98754795d3e2a655d8d27446a8f5b1b71256b2d07 158546 
python3-selinux_2.7-2_amd64.deb
 0901edbf2f14e6a64326c9350c48c576713f848093d21e0f8b43fc15f0147022 159740 
ruby-selinux-dbgsym_2.7-2_amd64.deb
 c83e97736e870108a21eb1a9e2c6890b3a3825b98e1c15b4ddbbdafd04c91816 58698 
ruby-selinux_2.7-2_amd64.deb
 225ac1fb711bc17d77359f62d50c8e2d8f18a7df07ef2145871eefece10313fe 155774 
selinux-utils-dbgsym_2.7-2_amd64.deb
 40c4a3d8106c800269789836feba6f2609ad9c99996321259915d9614e6b38db 100392 
selinux-utils_2.7-2_amd64.deb
Files:
 16b018a127dbff7d39b0494a5d1f5e81 2369 libs optional libselinux_2.7-2.dsc
 38bd6590459dece64d97bfe4c881ed36 23044 libs optional 
libselinux_2.7-2.debian.tar.xz
 d6a4ba3e5599c08d401e66d0cb7790e0 198584 debug optional 
libselinux1-dbgsym_2.7-2_amd64.deb
 8f68348a19bf7ed2815d23e1d6bedfb7 168336 libdevel optional 
libselinux1-dev_2.7-2_amd64.deb
 05786ab3ef61b8a6297c5a0ad3fb80bc 63234 debian-installer optional 
libselinux1-udeb_2.7-2_amd64.udeb
 8f5be86ea73a091c36c489db2a5f01cc 85950 libs required 
libselinux1_2.7-2_amd64.deb
 37a38c14b53a3559b3298be8b4759cbc 10326 libs optional 
libselinux_2.7-2_amd64.buildinfo
 3cfe2042037b62a0fe1a2d233227cfbe 199222 debug optional 
python-selinux-dbgsym_2.7-2_amd64.deb
 9d7aa69df51b718ed13d923b9963cc93 158614 python optional 
python-selinux_2.7-2_amd64.deb
 9c91f9cb8de63e10df9024ce782e9869 360678 debug optional 
python3-selinux-dbgsym_2.7-2_amd64.deb
 0a5c8f19e1458d41ab09145500720fbf 158546 python optional 
python3-selinux_2.7-2_amd64.deb
 53ad3b11cb8638fd3bf002f3a08621ff 159740 debug optional 
ruby-selinux-dbgsym_2.7-2_amd64.deb
 13604d7b8253afc3e39595ba752a3fd3 58698 ruby optional 
ruby-selinux_2.7-2_amd64.deb
 e6a68387bf4003bae8c2dffdc54d22d1 155774 debug optional 
selinux-utils-dbgsym_2.7-2_amd64.deb
 e07aabe677da4d4e9ab01bb1af533d33 100392 admin optional 
selinux-utils_2.7-2_amd64.deb

-----BEGIN PGP SIGNATURE-----

iQFFBAEBCAAvFiEEmRrdqQAhuF2x31DwH8WJHrqwQ9UFAlm7omkRHGJpZ29uQGRl
Ymlhbi5vcmcACgkQH8WJHrqwQ9V7KQf9E6rLBE8a/Sf+xL16ESricfdzs9mcpb8Q
+I9vWGDZbKxEfuXuDEUrLFit776Hyw6Z3l0QY34SW4CdgQCvExuw6ThqNaAuNp1V
/1Ly1XoB7MXBWHzc20LwUv8pXAWsxdn6KTtinO4WmslAOy5nkIykZNI7vDTO5sPK
Gnua3hECk2jHaAl/tKnAxFbHla3Pulqwyf2K2mzGGs3ELmKKJaBKJQCU6mMce5a0
e+2Xibs1hNcz8XyOiIssaXRn1QNaEzyYpU8UqrL63fUXiCIY2QOZIXd/Fy4+1954
tYXa4Ual0/2HAZgjuMpHeBpHjBf/UIaVk6Jjr0dwkoGNqOhdssYoRg==
=De3F
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to