Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 230073 - sys-apps/coreutils-6.12 links against libselinux with USE="-selinux"
Summary: sys-apps/coreutils-6.12 links against libselinux with USE="-selinux"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-29 17:57 UTC by Petteri Räty (RETIRED)
Modified: 2008-10-16 03:07 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
coreutils-6.10-selinux-opt.patch (coreutils-6.10-selinux-opt.patch,1.17 KB, patch)
2008-07-06 21:49 UTC, Andreas Niederl
Details | Diff
coreutils-6.10-r2.ebuild.diff (coreutils-6.10-r2.ebuild.diff,691 bytes, patch)
2008-07-06 21:50 UTC, Andreas Niederl
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Petteri Räty (RETIRED) gentoo-dev 2008-06-29 17:57:39 UTC
[ebuild   R   ] sys-apps/coreutils-6.12  USE="acl -nls (-selinux) -static -vanilla -xattr" 0 kB

betelgeuse@pena ~ $ scanelf -n /bin/mv
 TYPE   NEEDED FILE
ET_EXEC libselinux.so.1,libacl.so.1,libc.so.6 /bin/mv

when depclean removes libselinux you have a nicely broken system

betelgeuse@pena ~ $ emerge --info
Portage 2.2_rc1 (default-linux/x86/2006.1/desktop, gcc-4.2.4, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.25-gentoo-r5-i686-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-glibc2.0
Timestamp of tree: Unknown
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r5
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r2
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
DISTDIR="/var/distfiles"
FEATURES="ccache collision-protect distlocks fixpackages parallel-fetch preserve-libs sandbox sfperms sign strict unmerge-orphans userfetch userpriv usersandbox verify-rdepend"
GENTOO_MIRRORS=" http://trumpetti.atm.tut.fi/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,--as-needed -Wl,-O1"
LINGUAS="fi"
PKGDIR="/home/pkg/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/mnt/checkouts/overlays/flameeyes-overlay /mnt/checkouts/overlays/openrc /mnt/checkouts/overlays/jokey /mnt/checkouts/overlays/postgresql-testing /mnt/checkouts/overlays/sunrise /mnt/checkouts/overlays/sajinet /mnt/checkouts/overlays/betelgeuse"
SYNC="rsync://192.168.150.1/portage"
USE="a52 aac acl acpi alsa audiofile bash-completion berkdb bluetooth branding bzip2 cairo caps cdb cddb cdparanoia cdr cli cracklib crypt cups dbus dri dts dvd dvdr dvdread emboss fam ffmpeg firefox gif gstreamer hal iconv ipv6 isdnlog java jpeg kde kdeenablefinal kdehiddenvisibility libnotify logitech-mouse mad mikmod mjpeg mmx mp3 mpeg mudflap ncurses network nptl nptlonly nsplugin nvidia offensive ogg opengl openmp pam pcre png ppds pppd pulseaudio qt3 quicktime readline real reflection rtc samba session spell spl sse sse2 ssl startup-notification subversion svg symlink theora threads truetype udev unicode usb userlocales vim-syntax vorbis win32codecs x86 xcb xcomposite xinerama xml xorg xv xvid xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fi" USERLAND="GNU" VIDEO_CARDS="none nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Andreas Niederl 2008-07-06 21:48:08 UTC
I stumbled on that when I foolishly unmerged libselinux because it is masked in the 2008.0 profile.
So it might be a good idea to warn other users about that.

Now to my quickfix:
The autoconf checks are in a M4 file which is generated by gnulib-tool from dev-libs/gnulib. Since there is no stable version of that in the tree and it isn't used by any ebuilds to my knowledge I'm assuming that it's okay to patch the generated file.

The proposed patch works for me on x86 and amd64 with sys-apps/coreutils-6.10-r2 and also applies to the source code of 6.11 and 6.12.
Comment 2 Andreas Niederl 2008-07-06 21:49:01 UTC
Created attachment 159742 [details, diff]
coreutils-6.10-selinux-opt.patch
Comment 3 Andreas Niederl 2008-07-06 21:50:52 UTC
Created attachment 159744 [details, diff]
coreutils-6.10-r2.ebuild.diff
Comment 4 Petteri Räty (RETIRED) gentoo-dev 2008-08-18 19:59:07 UTC
How is the possibility of making your system unusable normal severity?
Comment 5 SpanKY gentoo-dev 2008-08-20 07:30:18 UTC
libselinux does not just magically show up on systems ... you have to manually install it
Comment 6 Petteri Räty (RETIRED) gentoo-dev 2008-08-20 08:27:14 UTC
(In reply to comment #5)
> libselinux does not just magically show up on systems ... you have to manually
> install it
> 

It got pulled in as a dep for something. Don't know if it was bad deps in that ebuild or not but people can have it installed without directly wanting it.
Comment 7 Maxi Combina 2008-09-26 23:46:27 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > libselinux does not just magically show up on systems ... you have to manually
> > install it
> > 
> 
> It got pulled in as a dep for something. Don't know if it was bad deps in that
> ebuild or not but people can have it installed without directly wanting it.
> 
Also, removing libselinux makes several packages unusable (besides coreutils).
The problem is that these packages can not be re-emerged: they fail with "can not find -lselinux" or similar error. coreutils can be re-emerged without problems, though.
I don't recall the broken packages right now, but they are mostly related to gnome (gnome-control-center is one of them).

I had to emerge the hard-marked libselinux in order to be able to use these packages again :S

Comment 8 daniel mahler 2008-10-15 23:30:04 UTC
When is this likely to be fixed in the main tree?
As it is, portage tells people to remove libselinux since it's masked.
When people do it they have a broken system.
Looks like this bug has been around for over 3 months.
That must make for a number of broken gentoos. 
Comment 9 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-10-16 03:07:08 UTC
fixed in cvs.