Your message dated Wed, 14 Oct 2009 05:32:33 +0000
with message-id <[email protected]>
and subject line Bug#550731: fixed in libselinux 2.0.87-1
has caused the Debian Bug report #550731,
regarding libselinux: cross-build fixes
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 [email protected]
immediately.)
--
550731: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=550731
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libselinux
Version: 2.0.85-2
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu ubuntu-patch karmic
Cross-building libselinux doesn't quite work at the moment. There are
the following problems:
* TLSFLAGS is set based on the build architecture, not the host
architecture.
* CC et al aren't passed when building Python bindings, so the build
process uses a compiler for the build architecture for those rather
than a compiler for the host architecture.
* The Python bindings are always linked against /usr/lib/libsepol.a.
Seeing as libsepol ships a pkg-config file now, and
dpkg-buildpackage sets an appropriate default for PKG_CONFIG_LIBDIR
when cross-building, it would seem simplest to use that.
The following patch fixes all these problems.
* Cross-build fixes:
- Pass ARCH=$(DEB_HOST_ARCH) to src/Makefile so that TLSFLAGS isn't set
on cross-builds on an i386 build machine.
- Pass CC, CFLAGS, and LDFLAGS when building Python bindings.
- Use pkg-config to find libsepol.a.
diff -u libselinux-2.0.85/src/Makefile libselinux-2.0.85/src/Makefile
--- libselinux-2.0.85/src/Makefile
+++ libselinux-2.0.85/src/Makefile
@@ -90,7 +90,7 @@
$(CC) $(CFLAGS) -I$(PYINC) -fPIC -DSHARED -c -o $@ $<
$(AUDIT2WHYSO): audit2why.lo
- $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^ -L. -lselinux
${LIBDIR}/libsepol.a -L$(LIBDIR) -Wl,-soname,$@
+ $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^ -L. -lselinux $(shell
pkg-config --variable=libdir libsepol)/libsepol.a -L$(LIBDIR) -Wl,-soname,$@
%.o: %.c policy.h
$(CC) $(CFLAGS) $(TLSFLAGS) -c -o $@ $<
diff -u libselinux-2.0.85/debian/local.mk libselinux-2.0.85/debian/local.mk
--- libselinux-2.0.85/debian/local.mk
+++ libselinux-2.0.85/debian/local.mk
@@ -62,7 +62,7 @@
$(checkdir)
$(REASON)
@test -d debian/stamp/build || mkdir -p debian/stamp/build
- $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" all
+ $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
ARCH=$(DEB_HOST_ARCH) all
$(MAKE) -C src libselinux.pc
@echo done > $@
@@ -157,6 +157,7 @@
rm -f src/audit2why.lo src/audit2why.so; \
$(MAKE) -C src DESTDIR=$(TMPTOP) PYLIBVER=python$$version \
PYTHONLIBDIR=$(PYTHONLIBDIRTOP)/python$$version/ \
+ CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
pywrap install-pywrap; \
chmod -x $(EXTENSIONS_DIR)/python$$version/site-packages/*; \
mv -f $(EXTENSIONS_DIR)/python$$version/site-packages/*.py \
Thanks,
--
Colin Watson [[email protected]]
--- End Message ---
--- Begin Message ---
Source: libselinux
Source-Version: 2.0.87-1
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:
libselinux-ruby1.8_2.0.87-1_amd64.deb
to pool/main/libs/libselinux/libselinux-ruby1.8_2.0.87-1_amd64.deb
libselinux1-dev_2.0.87-1_amd64.deb
to pool/main/libs/libselinux/libselinux1-dev_2.0.87-1_amd64.deb
libselinux1_2.0.87-1_amd64.deb
to pool/main/libs/libselinux/libselinux1_2.0.87-1_amd64.deb
libselinux_2.0.87-1.diff.gz
to pool/main/libs/libselinux/libselinux_2.0.87-1.diff.gz
libselinux_2.0.87-1.dsc
to pool/main/libs/libselinux/libselinux_2.0.87-1.dsc
libselinux_2.0.87.orig.tar.gz
to pool/main/libs/libselinux/libselinux_2.0.87.orig.tar.gz
python-selinux_2.0.87-1_amd64.deb
to pool/main/libs/libselinux/python-selinux_2.0.87-1_amd64.deb
selinux-utils_2.0.87-1_amd64.deb
to pool/main/libs/libselinux/selinux-utils_2.0.87-1_amd64.deb
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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Manoj Srivastava <[email protected]> (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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
Format: 1.8
Date: Tue, 13 Oct 2009 23:53:30 -0500
Source: libselinux
Binary: selinux-utils libselinux1 libselinux1-dev libselinux-ruby1.8
python-selinux
Architecture: source amd64
Version: 2.0.87-1
Distribution: unstable
Urgency: low
Maintainer: Manoj Srivastava <[email protected]>
Changed-By: Manoj Srivastava <[email protected]>
Description:
libselinux-ruby1.8 - Ruby bindings to SELinux shared libraries
libselinux1 - SELinux runtime shared libraries
libselinux1-dev - SELinux development headers
python-selinux - Python bindings to SELinux shared libraries
selinux-utils - SELinux utility programs
Closes: 550731
Changes:
libselinux (2.0.87-1) unstable; urgency=low
.
* New upstream point release
+ Add exception handling in libselinux from Dan Walsh. This uses a
shell script called exception.sh to generate a swig interface file.
+ Make matchpathcon print <<none>> if path not found in fcontext file.
+ Removal of reference counting on userspace AVC SID's.
* Bug fix: "cross-build fixes", thanks to Colin Watson (Closes: #550731).
Checksums-Sha1:
35f364956ef7ad4bff8461770a02d96c3543f6c4 1296 libselinux_2.0.87-1.dsc
54da76c3e2b27844fe13140e4cdfd873675c99bb 199147 libselinux_2.0.87.orig.tar.gz
f9c9c68b7e8231e580e3160748372dddbee7808d 41632 libselinux_2.0.87-1.diff.gz
33482c72458566c7a1c7f0f64168679fb20bf4cd 60258 selinux-utils_2.0.87-1_amd64.deb
929c5b2b9862597955c6ad17d77777d1c09cad38 84622 libselinux1_2.0.87-1_amd64.deb
fe30f8a3a05db1999e57b9c3b623702c255ebf24 311364
libselinux1-dev_2.0.87-1_amd64.deb
3c4f4417f602906ff1e8343725816b7ff2b092f8 87426
libselinux-ruby1.8_2.0.87-1_amd64.deb
79bd6960efa180098a7cad04ceb3d79d219e3f9c 30402
python-selinux_2.0.87-1_amd64.deb
Checksums-Sha256:
4c745b6bddbc76a69cb8cccb88b79ccd093fcb64532a329d98e89f02beade360 1296
libselinux_2.0.87-1.dsc
426181a149f458903e4179e725a7416635da9f6614863d366c97f600a129b807 199147
libselinux_2.0.87.orig.tar.gz
f90b6d3cf79105c5b780becadca0fee784e4a626e0e679e914ebe63af77c4992 41632
libselinux_2.0.87-1.diff.gz
12ee5000d30a37cf1c5b2f330495824f2add0d47262138b9851bcae9b7e8f493 60258
selinux-utils_2.0.87-1_amd64.deb
599cbf13738051d3e0f1f4edcc4f93d035fb2d1017aff01e270afaa5c077f70c 84622
libselinux1_2.0.87-1_amd64.deb
9380859571d5a82b5433ad11e3c8de744c36b9f4789576b8e4023e4fd35d0b8f 311364
libselinux1-dev_2.0.87-1_amd64.deb
87e8dfdfcd4b38002f9ad45be9a631a45bd0183302d746cba0f3918939597912 87426
libselinux-ruby1.8_2.0.87-1_amd64.deb
c3e2fe7ab64563d31c7aa2c7006dfcf69184061dfff73b7de8df67b06b3783ff 30402
python-selinux_2.0.87-1_amd64.deb
Files:
c0602a9bf52c53d3048d6d7cb0e559eb 1296 libs optional libselinux_2.0.87-1.dsc
cda61c1b0a2be0118d6d9f3a816bb560 199147 libs optional
libselinux_2.0.87.orig.tar.gz
94459e0c96a3f5d88fdb2f19f76b1ef0 41632 libs optional
libselinux_2.0.87-1.diff.gz
6a5d48391e751971bfe8ac3c72bc909f 60258 admin optional
selinux-utils_2.0.87-1_amd64.deb
6ea31b8b04fa1c9eb90fc40c262156d6 84622 libs required
libselinux1_2.0.87-1_amd64.deb
47e64c0d342fa66cbf92c61ab0140b5e 311364 libdevel optional
libselinux1-dev_2.0.87-1_amd64.deb
6bc35bfa669ca53c0877dd9be77a0242 87426 ruby optional
libselinux-ruby1.8_2.0.87-1_amd64.deb
cc2337c92a467c63701f860b05ee7730 30402 python optional
python-selinux_2.0.87-1_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14-svn0 (GNU/Linux)
iEYEAREDAAYFAkrVXvEACgkQIbrau78kQkyGzACg85AbtYANxCnvGSnbVfEOPCCJ
tAEAoKXYkJoCNpA/yUB/ll+fCIarnm3U
=Kqcx
-----END PGP SIGNATURE-----
--- End Message ---