<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>188272</bug_id>
          
          <creation_ts>2007-08-09 21:59 0000</creation_ts>
          <short_desc>sys-process/lsof-4.78-r1 automagically depends on sys-libs/libselinux</short_desc>
          <delta_ts>2008-05-14 15:03:59 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>s.geschwandtner@gmx.de</reporter>
          <assigned_to>selinux@gentoo.org</assigned_to>
          <cc>base-system@gentoo.org</cc>
    
    <cc>loki_val@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>s.geschwandtner@gmx.de</who>
            <bug_when>2007-08-09 21:59:11 0000</bug_when>
            <thetext>sys-process/lsof-4.78-r1 automagically depends on sys-libs/libselinux:

$ readelf -d /usr/bin/lsof 

Dynamic section at offset 0x1fbc8 contains 24 entries:
  Tag        Type                         Name/Value
 0x00000001 (NEEDED)                     Shared library: [libselinux.so.1]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
[...]

00DIST in the lsof tarball says:

4.78            April 24, 2007
[...]
                Added SELinux security context support, provided by
                James Antill &lt;james.antill@redhat.com&gt;.  I have not
                tested this, but James and Karel Zak &lt;kzak@redhat.com&gt;
                have.


Portage 2.1.3.3 (selinux/2007.0/x86/hardened, gcc-3.4.6, glibc-2.6-r0, 2.6.21-hardened-r3 i686)
=================================================================
System uname: 2.6.21-hardened-r3 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz
Gentoo Base System release 2.0.0_rc2
Timestamp of tree: Thu, 09 Aug 2007 15:50:01 +0000
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -pipe -march=pentium4 -fomit-frame-pointer&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo&quot;
CXXFLAGS=&quot;-O2 -pipe -march=pentium4 -fomit-frame-pointer&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;collision-protect distlocks loadpolicy parallel-fetch sandbox selinux sesandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox&quot;
GENTOO_MIRRORS=&quot;ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/&quot;
LANG=&quot;de_DE.UTF-8&quot;
LDFLAGS=&quot;-Wl,-O1 -Wl,--as-needed -Wl,--sort-common&quot;
LINGUAS=&quot;de ja&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_EXTRA_OPTS=&quot;--exclude-from /etc/portage/rsync_excludes&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.europe.gentoo.org/gentoo-portage&quot;
USE=&quot;X a52 aac alsa bzip2 cairo caps cjk crypt cups dbus dri dts dvd dvdread ffmpeg flac gif hardened iconv idn jpeg kdeenablefinal mmap mmx nls nptl offensive ogg pam pic png selinux spell sse sse2 ssl symlink theora threads tiff truetype unicode vorbis x264 x86 xv xvid zlib&quot; ALSA_CARDS=&quot;ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 	emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m 	maestro3 trident usb-audio via82xx via82xx-modem ymfpci&quot; ALSA_PCM_PLUGINS=&quot;asym dmix dsnoop empty file hooks ioplug multi plug rate route shm softvol&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;keyboard mouse&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; LINGUAS=&quot;de ja&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;nv&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lxnay@lxnaydesign.net</who>
            <bug_when>2008-02-25 00:55:24 0000</bug_when>
            <thetext>It&apos;s not only lsof. There are a lot of packages that get screwed by libselinux (especially gnome/gtk related packages).
This is something that should be really solved somehow, sys-libs/libselinux is not listed anywhere and if you mistakenly forget about the issue and compile it, you won&apos;t be able remove it easily.

Other bitches are sys-process/audit and sys-libs/libxcrypt.
masking masking masking! :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>loki_val@gentoo.org</who>
            <bug_when>2008-05-13 20:46:48 0000</bug_when>
            <thetext>Created an attachment (id=153075)
lsof-4.78-r1-selinux.ebuild.patch

Gives the pesky Configure script a sed up the wazoo!
Untested, believed to fix the problem.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>loki_val@gentoo.org</who>
            <bug_when>2008-05-13 20:47:39 0000</bug_when>
            <thetext>Adding base-system to CC -- it&apos;s their ebuild.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cardoe@gentoo.org</who>
            <bug_when>2008-05-14 15:03:59 0000</bug_when>
            <thetext>thanks Peter. added as -r2</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>153075</attachid>
            <date>2008-05-13 20:46 0000</date>
            <desc>lsof-4.78-r1-selinux.ebuild.patch</desc>
            <filename>lsof-4.78-r1-selinux.ebuild.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGxzb2YtNC43OC1yMS5lYnVpbGQub2xkCTIwMDgtMDMtMjggMDk6MDc6MDguMDAwMDAwMDAw
ICswMTAwCisrKyBsc29mLTQuNzgtcjEuZWJ1aWxkCTIwMDgtMDUtMTMgMjI6NDE6MjIuMDAwMDAw
MDAwICswMjAwCkBAIC0xMiwxMyArMTIsMTMgQEAKIAlmdHA6Ly9mdHAuY2VyaWFzLnB1cmR1ZS5l
ZHUvcHViL3Rvb2xzL3VuaXgvc3lzdXRpbHMvbHNvZi8ke01ZX1B9LnRhci5iejIiCiAKIExJQ0VO
U0U9Imxzb2YiCiBTTE9UPSIwIgogS0VZV09SRFM9In5hbHBoYSBhbWQ2NCBhcm0gaHBwYSBpYTY0
IG02OGsgfm1p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