Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126351 - libsdl can be built without X11, but there is no USE flag for it.
Summary: libsdl can be built without X11, but there is no USE flag for it.
Status: VERIFIED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL: http://www.libsdl.org/pipermail/sdl/1...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-15 14:17 UTC by Ken
Modified: 2006-03-15 19:49 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ken 2006-03-15 14:17:30 UTC
As things stand right now with Gentoo, the libsdl package requires X11 even if every USE option is turned off.  This is what makes the kernel sources +doc seem to require X11.

According to the URL above, there is a libsdl flag which makes libsdl NOT require X11.  If the ebuild for lbsdl would map USE="-X" to "--disable-video-x11" then this would supply the most proper fix to the issue of documentation without X.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-03-15 14:48:44 UTC
This bug doesn't make sense. With USE="-X -nas -opengl" libsdl does NOT require X at all. Read the ebuild.

# emerge -av libsdl

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] media-libs/audiofile-0.2.6-r1  365 kB 
[ebuild  N    ] media-libs/libsdl-1.2.8-r1  USE="-X -aalib -alsa -arts -dga -directfb -esd -fbcon -ggi -libcaca -nas -noaudio -noflagstrip -nojoystick -novideo -opengl -oss pic -svga -xinerama -xv" 2,541 kB 

# esearch xorg-x11
[ Results for search key : xorg-x11 ]
[ Applications found : 1 ]

*  x11-base/xorg-x11
      Latest version available: 6.8.2-r6
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 135,439 kB
      Homepage:    http://xorg.freedesktop.org/
      Description: An X11 implementation maintained by the X.Org Foundation
      License:     Adobe-X CID DEC DEC-2 IBM-X NVIDIA-X NetBSD SGI UCB-LBL XC-2 bigelow-holmes-urw-gmbh-luxi christopher-g-demetriou national-semiconductor nokia tektronix the-open-group todd-c-miller x-truetype xfree86-1.0 MIT SGI-B BSD || ( FTL GPL-2 )
Comment 2 Ken 2006-03-15 15:16:42 UTC
I tried to build libsdl with all USE flags turned off, and it tried to build X11.    

Moreover, specifying -X in my make.conf should build a system WHICH DOES NOT LOAD X.  No other flags should be necessary.  This ebuild is what causes X to be loaded even though -X is specified.  If that's not a bug, then I have no idea what would be.

Maybe I should rewrite the bug to say that emerge sys-kernel/hardened-sources -X wants to load X, but that's already been done.  I've found the issue, and you say it's invalid?

Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-03-15 15:22:26 UTC
(In reply to comment #2)
> Moreover, specifying -X in my make.conf should build a system WHICH DOES NOT
> LOAD X.  No other flags should be necessary.  This ebuild is what causes X to
> be loaded even though -X is specified.  If that's not a bug, then I have no
> idea what would be.

Not possible, that's not how use flags work (and won't work any time soon).

> Maybe I should rewrite the bug to say that emerge sys-kernel/hardened-sources
> -X wants to load X, but that's already been done.  I've found the issue, and
> you say it's invalid?
> 

You still haven't posted *which* ebuild depends on X. You also haven't posted emerge --info, so we have zero knowledge about your use flags and can't even tell you what pulls in X for you. If you want to find out, then package.mask xorg-x11 and you'll see. 

Anyway - I've already proved above that libsdl does *not* depend on xorg-x11. This bug is invalid. 
Comment 4 Ken 2006-03-15 15:46:50 UTC
This is a minimal system.

From /etc/make.conf:
  USE="-X doc hardened logrotate unicode -sdl"

/etc/portage/package.use:
app-arch/tar bzip2
app-editors/vim bash-completion
app-editors/vim-core bash-completion
net-misc/iputils -doc
sys-devel/gcc -fortran -gtk
sys-devel/gettext -emacs
sys-libs/glibc userlocales
sys-kernel/hardened-sources symlink

/var/lib/portage/worldapp-admin/logrotate
app-admin/sudo
app-admin/syslog-ng
app-arch/gzip
app-editors/vim
app-misc/screen
app-portage/gentoolkit
app-portage/mirrorselect
dev-util/cvs
net-dns/bind
net-dns/bind-tools
net-misc/dhcp
net-misc/dhcpcd
net-misc/ntp
net-www/apache
sys-apps/pciutils
sys-apps/slocate
sys-boot/lilo
sys-devel/gettext
sys-devel/libperl
sys-kernel/hardened-sources
sys-kernel/linux-headers
sys-libs/glibc
sys-process/vixie-cron

This system does NOT try to load X.  If I remove "-sdl" from my USE flag, it loads X.  If I add "www-client/links -sdl" to my package.use, it stops trying to load X.  If emerge --info media-libs/libsdl | grep USE, I get:

USE="x86 alsa apache2 apm arts avi berkdb bitmap-fonts bzip2 cli crypt cscope ctype cups dba doc dri eds emboss encode expat fastbuild foomaticdb force-cgi-redirect fortran ftp gd gdbm gif gnome gpm gstreamer gtk gtk2 hardened imlib ipv6 jpeg kde libg++ libwww logrotate mad memlimit mikmod motif mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pcre pdflib perl png posix python qt quicktime readline ruby session simplexml soap sockets spell spl ssl tcpd tokenizer truetype truetype-fonts type1-fonts udev unicode vorbis xml xml2 xmms xsl xv zlib userland_GNU kernel_linux elibc_glibc"

If I put that into package.use with a - in front of every option, emerge -pDuNv media-libs/libsdl wants to load X.

Forgive me for being stupid, but in my mind that means there's a problem.  The forums have a whole thread dedicated to this issue of having X load with your kernel sources unless you say -doc.  That means you guys have been pestered for so long about it that you're sick of hearing about it.  That means that a whole lot of people think this is a bug.

Your comment on USE=-X being not possible, of course it's possible.  That's what it's for.  It might not be convenient, but it's possible.  In fact, it's possible by editing exactly one ebuild file so that -X means -X.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-03-15 16:02:23 UTC
(In reply to comment #4)
> USE="x86 alsa apache2 apm arts avi berkdb bitmap-fonts bzip2 cli crypt cscope
> ctype cups dba doc dri eds emboss encode expat fastbuild foomaticdb
> force-cgi-redirect fortran ftp gd gdbm gif gnome gpm gstreamer gtk gtk2
> hardened imlib ipv6 jpeg kde libg++ libwww logrotate mad memlimit mikmod motif
> mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pcre pdflib perl png posix
> python qt quicktime readline ruby session simplexml soap sockets spell spl ssl
> tcpd tokenizer truetype truetype-fonts type1-fonts udev unicode vorbis xml xml2
> xmms xsl xv zlib userland_GNU kernel_linux elibc_glibc"

Yay, so you have gtk, gtk2, gnome, kde, qt, opengl and a bunch of others (like dri or eds) enabled in your use flags and are moaning about X being pulled in?! Fix your flags. 

> Your comment on USE=-X being not possible, of course it's possible.  That's
> what it's for.  It might not be convenient, but it's possible.  In fact, it's
> possible by editing exactly one ebuild file so that -X means -X.

No. You've completely missed how use flags work. 

Closing.
Comment 6 Ken 2006-03-15 16:06:46 UTC
NO I DO NOT!

You failed to read the text, I said if you do emerge --info | grep USE that's the options that come back!

Then I said that adding that line to package.use with a - in front of every item STILL LOADS X!

Read the fucking post, you moron!
Comment 7 Ken 2006-03-15 16:09:50 UTC
So tell me how USE flags work.  According to the install documentation that's what USE is for.
Comment 8 Ken 2006-03-15 16:16:58 UTC
For that matter, I don't even care about media-libs/libsdl.  I want a text-only server system.  I'm trying to fix your distribution so people who are starting out can have a no-X system if they want to.

As far as I'm concerned, making www-client/links -sdl default would do that just fine.
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-03-15 16:19:01 UTC
(In reply to comment #6)
> NO I DO NOT!
> 
> You failed to read the text, I said if you do emerge --info | grep USE that's
> the options that come back!
> 
> Then I said that adding that line to package.use with a - in front of every
> item STILL LOADS X!
> 
> Read the fucking post, you moron!
> 

OK, one more and your bugzilla account is gone. Kindly disable ALL the USE flags I've named in my previous comment in your make.conf (put - before them) and read the basic documents on working with portage, instead of insulting people.

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=2
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2006-03-15 16:19:12 UTC
CLOSED, don't reopen this bug before you learn how to work with portage.
Comment 11 Ken 2006-03-15 19:49:44 UTC
OK folks, check here for my attempt to explain what I figured out on this not-a-bug.

http://forums.gentoo.org/viewtopic-p-3183542.html#3183542

Closed, invalid.