Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Embedded recovery system (was: Bare X, please)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Habbit
Apprentice
Apprentice


Joined: 01 Sep 2007
Posts: 237
Location: 3.7137 W, 40.3873 N

PostPosted: Thu Jan 31, 2008 8:51 pm    Post subject: Embedded recovery system (was: Bare X, please) Reply with quote

I would like to know how can I disable the X => OpenGL dependency. I want to install a barebones X into a pendrive Gentoo setup (embedded, uclibc, that kind of things). I try to emerge xorg-x11 and a _lot_ of dependancies get pulled in. Among them are virtual/opengl, virtual/glu, virtual/glut, media-libs/mesa, libXcomposite, libXinerama and many things that my embedded setup will obviously not need. I have enabled the "minimal" USE flag and disabled the "dri" one, but the situation is still the same. Here is the package list portage spits out:
Code:
# USE="-dri" INPUT_DEVICES="keyboard mouse" VIDEO_CARDS="vesa" emerge -pv xorg-x11

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

Calculating dependencies... done!
[ebuild  N    ] x11-misc/util-macros-1.1.5  47 kB
[ebuild  N    ] media-libs/freetype-2.3.5-r2  USE="-X -bindist -debug -doc -utils" 0 kB
[ebuild  N    ] app-admin/eselect-1.0.10  USE="-bash-completion -doc -vim-syntax" 150 kB
[ebuild  N    ] sys-apps/ed-0.8  67 kB
[ebuild  N    ] dev-perl/XML-Parser-2.34-r1  225 kB
[ebuild  N    ] x11-proto/xproto-7.0.10  140 kB
[ebuild  N    ] x11-proto/xextproto-7.0.2  67 kB
[ebuild  N    ] x11-proto/kbproto-1.0.3  57 kB
[ebuild  N    ] x11-proto/inputproto-1.4.2.1  0 kB
[ebuild  N    ] x11-libs/xtrans-1.0.3  USE="-debug" 101 kB
[ebuild  N    ] x11-proto/randrproto-1.2.1  54 kB
[ebuild  N    ] x11-proto/renderproto-0.9.2  40 kB
[ebuild  N    ] media-fonts/font-util-1.0.1  USE="-debug" 97 kB
[ebuild  N    ] x11-proto/fontsproto-2.0.2  45 kB
[ebuild  N    ] app-admin/eselect-opengl-1.0.5  42 kB
[ebuild  N    ] x11-proto/xf86vidmodeproto-2.2.2  39 kB
[ebuild  N    ] x11-proto/xf86bigfontproto-1.1.2  37 kB
[ebuild  N    ] x11-proto/bigreqsproto-1.0.2  36 kB
[ebuild  N    ] x11-proto/xcmiscproto-1.1.2  36 kB
[ebuild  N    ] x11-proto/scrnsaverproto-1.1.0  38 kB
[ebuild  N    ] x11-proto/fixesproto-4.0  38 kB
[ebuild  N    ] x11-proto/xf86miscproto-0.9.2  38 kB
[ebuild  N    ] x11-proto/xf86dgaproto-2.0.3  0 kB
[ebuild  N    ] x11-proto/xineramaproto-1.1.2  38 kB
[ebuild  N    ] x11-proto/damageproto-1.1.0  41 kB
[ebuild  N    ] x11-proto/videoproto-2.2.2  42 kB
[ebuild  N    ] x11-proto/compositeproto-0.4  45 kB
[ebuild  N    ] app-doc/xorg-docs-1.4-r1  USE="-doc" 8,106 kB
[ebuild  N    ] x11-proto/fontcacheproto-0.1.2  38 kB
[ebuild  N    ] x11-proto/trapproto-3.4.3  48 kB
[ebuild  N    ] x11-proto/resourceproto-1.0.2  36 kB
[ebuild  N    ] x11-proto/xf86rushproto-1.1.2  37 kB
[ebuild  N    ] x11-proto/evieext-1.0.2  37 kB
[ebuild  N    ] x11-misc/xbitmaps-1.0.1  55 kB
[ebuild  N    ] x11-proto/recordproto-1.13.2  39 kB
[ebuild  N    ] x11-proto/xf86driproto-2.0.3  42 kB
[ebuild  N    ] x11-libs/libdrm-2.3.0  USE="-debug" 383 kB
[ebuild  N    ] x11-proto/printproto-1.0.3  43 kB
[ebuild  N    ] x11-libs/libXau-1.0.3  USE="-debug" 225 kB
[ebuild  N    ] x11-libs/libICE-1.0.4  USE="-debug -ipv6" 0 kB
[ebuild  N    ] x11-libs/libXdmcp-1.0.2  USE="-debug" 216 kB
[ebuild  N    ] x11-libs/libfontenc-1.0.4  USE="-debug" 219 kB
[ebuild  N    ] x11-proto/glproto-1.4.9  57 kB
[ebuild  N    ] x11-libs/liblbxutil-1.0.1  USE="-debug" 237 kB
[ebuild  N    ] x11-apps/rgb-1.0.1  USE="-debug" 90 kB
[ebuild  N    ] x11-misc/makedepend-1.0.1  USE="-debug" 106 kB
[ebuild  N    ] x11-libs/libX11-1.1.3  USE="-debug -ipv6 -xcb" 0 kB
[ebuild  N    ] x11-libs/libSM-1.0.3  USE="-debug -ipv6" 0 kB
[ebuild  N    ] x11-libs/libXfont-1.3.1-r1  USE="-debug -ipv6" 0 kB
[ebuild  N    ] x11-libs/libXext-1.0.3  USE="-debug" 256 kB
[ebuild  N    ] x11-apps/mkfontscale-1.0.3  USE="-debug" 93 kB
[ebuild  N    ] x11-libs/libXt-1.0.5  USE="-debug" 489 kB
[ebuild  N    ] x11-apps/bdftopcf-1.0.0  USE="-debug" 74 kB
[ebuild  N    ] x11-libs/libXfixes-4.0.3  USE="-debug" 210 kB
[ebuild  N    ] x11-libs/libxkbfile-1.0.4  USE="-debug" 268 kB
[ebuild  N    ] x11-libs/libXrender-0.9.2  USE="-debug" 241 kB
[ebuild  N    ] x11-apps/iceauth-1.0.2  USE="-debug" 95 kB
[ebuild  N    ] x11-apps/xmodmap-1.0.3  USE="-debug" 0 kB
[ebuild  N    ] x11-apps/mkfontdir-1.0.3  USE="-debug" 62 kB
[ebuild  N    ] media-fonts/encodings-1.0.2  USE="-debug" 559 kB
[ebuild  N    ] media-fonts/font-alias-1.0.1  USE="-debug" 42 kB
[ebuild  N    ] x11-libs/libXmu-1.0.3  USE="-debug -ipv6" 290 kB
[ebuild  N    ] x11-libs/libXpm-3.5.7  USE="-debug" 0 kB
[ebuild  N    ] x11-libs/libXxf86vm-1.0.1  USE="-debug" 223 kB
[ebuild  N    ] x11-libs/libXi-1.1.3  USE="-debug" 0 kB
[ebuild  N    ] x11-libs/libXScrnSaver-1.1.2  USE="-debug" 215 kB
[ebuild  N    ] x11-libs/libXcursor-1.1.9  USE="-debug" 0 kB
[ebuild  N    ] x11-libs/libXxf86misc-1.0.1  USE="-debug" 218 kB
[ebuild  N    ] x11-libs/libxkbui-1.0.2  USE="-debug" 217 kB
[ebuild  N    ] x11-apps/xkbcomp-1.0.3  USE="-debug" 186 kB
[ebuild  N    ] x11-libs/libXcomposite-0.4.0  USE="-debug" 213 kB
[ebuild  N    ] x11-libs/libXrandr-1.2.1  USE="-debug" 216 kB
[ebuild  N    ] x11-libs/libXinerama-1.0.2  USE="-debug" 210 kB
[ebuild  N    ] x11-libs/libXxf86dga-1.0.2  USE="-debug" 0 kB
[ebuild  N    ] x11-libs/libXp-1.0.0  USE="-debug" 239 kB
[ebuild  N    ] x11-libs/libXdamage-1.1.1  USE="-debug" 197 kB
[ebuild  N    ] x11-apps/setxkbmap-1.0.4  USE="-debug" 91 kB
[ebuild  N    ] x11-libs/libXv-1.0.3  USE="-debug" 227 kB
[ebuild  N    ] media-libs/mesa-6.5.2-r1  USE="-debug -doc -motif (-nptl) -pic -xcb" VIDEO_CARDS="-i810 -mach64 -mga -none -r128 -radeon -s3virge -savage -sis (-sunffb) -tdfx -trident -via" 0 kB
[ebuild  N    ] x11-apps/xauth-1.0.2  USE="-debug -ipv6" 108 kB
[ebuild  N    ] x11-apps/xhost-1.0.2  USE="-debug -ipv6" 96 kB
[ebuild  N    ] x11-libs/libXaw-1.0.4  USE="-debug -xprint" 0 kB
[ebuild  N    ] x11-misc/xkeyboard-config-1.1  529 kB
[ebuild  N    ] x11-apps/xrandr-1.2.2  USE="-debug" 95 kB
[ebuild  N    ] x11-apps/xinit-1.0.5-r1  USE="minimal -debug -hal -pam" 0 kB
[ebuild  N    ] virtual/opengl-7.0  0 kB
[ebuild  N    ] virtual/glu-7.0  0 kB
[ebuild  N    ] media-libs/freeglut-2.4.0-r1  459 kB
[ebuild  N    ] virtual/glut-1.0  0 kB
[ebuild  N    ] x11-apps/mesa-progs-7.0.1  4,575 kB
[ebuild  N    ] media-libs/fontconfig-2.5.0-r1  USE="-doc -xml" 0 kB
[ebuild  N    ] app-admin/eselect-fontconfig-1.0  0 kB
[ebuild  N    ] media-fonts/ttf-bitstream-vera-1.10-r3  USE="-X" 259 kB
[ebuild  N    ] media-fonts/font-adobe-100dpi-1.0.0  USE="-X (-nls)" 1,040 kB
[ebuild  N    ] media-fonts/font-adobe-utopia-type1-1.0.1  USE="-X" 204 kB
[ebuild  N    ] media-fonts/font-adobe-75dpi-1.0.0  USE="-X (-nls)" 827 kB
[ebuild  N    ] media-fonts/font-misc-misc-1.0.0  USE="-X (-nls)" 1,813 kB
[ebuild  N    ] media-fonts/font-cursor-misc-1.0.0  USE="-X (-nls)" 42 kB
[ebuild  N    ] media-fonts/font-bh-type1-1.0.0  USE="-X" 563 kB
[ebuild  N    ] x11-base/xorg-server-1.3.0.0-r4  USE="minimal xorg -3dfx -debug -dmx -dri -ipv6 -kdrive (-nptl) -sdl -xprint" INPUT_DEVICES="keyboard mouse -acecad -aiptek -calcomp -citron -digitaledge -dmc -dynapro -elo2300 -elographics -evdev -fpit -hyperpen -jamstudio -joystick -magellan -microtouch -mutouch -palmax -penmount -spaceorb -summa (-synaptics) -tek4957 -ur98 (-vmmouse) -void (-wacom)" VIDEO_CARDS="vesa -apm -ark -chips -cirrus -cyrix -dummy -epson -fbdev (-fglrx) -glint -i128 -i740 -i810 (-impact) -imstt -mach64 -mga -neomagic (-newport) -nsc -nv (-nvidia) -r128 -radeon -rendition -s3 -s3virge -savage -siliconmotion -sis -sisusb (-sunbw2) (-suncg14) (-suncg3) (-suncg6) (-sunffb) (-sunleo) (-suntcx) -tdfx -tga -trident -tseng -v4l -vga -via (-vmware) -voodoo" 0 kB
[ebuild  N    ] x11-drivers/xf86-input-keyboard-1.1.1  USE="-debug" 0 kB
[ebuild  N    ] x11-drivers/xf86-input-mouse-1.2.3  USE="-debug" 267 kB
[ebuild  N    ] x11-drivers/xf86-video-vesa-1.3.0  USE="-debug" 233 kB
[ebuild  N    ] x11-base/xorg-x11-7.2  0 kB

Total: 104 packages (104 new), Size of downloads: 27,774 kB

I think it's absolutely insane to _want_ to merge OpenGL with only the VESA video driver present, but Portage doesn't mind (sigh). Anyone knows of a "xorg-lite" package or a way to turn off the OpenGL dependency madness?
_________________
Code:
~ $ objdump -d ./habbit_mind
90      xchg %rax, %rax
EB FD   jmp $-3


Last edited by Habbit on Fri Feb 01, 2008 9:59 pm; edited 1 time in total
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Thu Jan 31, 2008 10:30 pm    Post subject: Reply with quote

Copy the xorg-x11 ebuild into your portage overlay and modify it to your heart's content. :D

That is what I ended up doing with the gnome ebuild. gnome-light didn't provide enough and I really just wanted to strip a few things out of the default gnome.
Back to top
View user's profile Send private message
Habbit
Apprentice
Apprentice


Joined: 01 Sep 2007
Posts: 237
Location: 3.7137 W, 40.3873 N

PostPosted: Fri Feb 01, 2008 1:01 am    Post subject: Reply with quote

Hmm.. I have discovered that emerging just xorg-server provides a lighter setup, but it still wants to pull mesa. I suppose I'll end up using your overlay approach. In fact, I'm doing just that with baselayout-2, which wants to pull coreutils (but I want busybox). I've thought of creating a new virtual/coreutils and then making both busybox and sys-apps/coreutils provide it. Would that be too difficult or is it The Right Way (TM)?
_________________
Code:
~ $ objdump -d ./habbit_mind
90      xchg %rax, %rax
EB FD   jmp $-3
Back to top
View user's profile Send private message
MostAwesomeDude
Guru
Guru


Joined: 12 Aug 2007
Posts: 373

PostPosted: Fri Feb 01, 2008 8:24 am    Post subject: Reply with quote

I thought that X depends on Mesa at compile time...
_________________
Don't believe the "n00b" under my name.
Back to top
View user's profile Send private message
Habbit
Apprentice
Apprentice


Joined: 01 Sep 2007
Posts: 237
Location: 3.7137 W, 40.3873 N

PostPosted: Fri Feb 01, 2008 11:33 am    Post subject: Reply with quote

Why would that be so? Isn't the point of modular X building just what you need and not a single additional line of code? libdrm and mesa are two _big_ libraries, especially the last one (6MB), which I don't have any use for. If my X server receives OpenGL/DRM requests, it should just answer "not supported, sorry".
_________________
Code:
~ $ objdump -d ./habbit_mind
90      xchg %rax, %rax
EB FD   jmp $-3
Back to top
View user's profile Send private message
Habbit
Apprentice
Apprentice


Joined: 01 Sep 2007
Posts: 237
Location: 3.7137 W, 40.3873 N

PostPosted: Fri Feb 01, 2008 3:44 pm    Post subject: Reply with quote

Well, I've got X now (dunno if it works, I haven't tested anything yet), but the next problem appears: e2fsprogs fails with the following error:
Code:
        GEN_LIB libuuid.a
        GEN_ELF_SOLIB libuuid.so.1.2
        CC tst_uuid.o
        LD tst_uuid
        LD uuid_time
../../lib/libuuid.so: undefined reference to `___tls_get_addr'
collect2: ld returned 1 exit status
make[2]: *** [uuid_time] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-fs/e2fsprogs-1.40.4/work/e2fsprogs-1.40.4/lib/uuid'
make[1]: *** [all-libs-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-fs/e2fsprogs-1.40.4/work/e2fsprogs-1.40.4'
make: *** [all] Error 2
 *
 * ERROR: sys-fs/e2fsprogs-1.40.4 failed.
It seems that e2fsprogs wants Thread Local Storage, but this is not supported by my embedded setup (uclibc and the like). Is there a way to avoid TLS to be required? I don't really think my system will need multithreaded fsck & friends...
_________________
Code:
~ $ objdump -d ./habbit_mind
90      xchg %rax, %rax
EB FD   jmp $-3
Back to top
View user's profile Send private message
Habbit
Apprentice
Apprentice


Joined: 01 Sep 2007
Posts: 237
Location: 3.7137 W, 40.3873 N

PostPosted: Fri Feb 01, 2008 10:21 pm    Post subject: Reply with quote

Update: I found there was a configure option called --disable-tls, so I copied the ebuild to my overlay and edited it, created a new "tls" USE flag and kept it disabled. Then e2fsprogs built completely fine. Is there a way to have that change merged back into the official Portage tree? Do I need to file a "bug" to request such an USE flag be created in that package?
_________________
Code:
~ $ objdump -d ./habbit_mind
90      xchg %rax, %rax
EB FD   jmp $-3
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Sun Feb 10, 2008 3:58 am    Post subject: Reply with quote

I've just ran into the exact same issue (with a uclibc setup), so I'd go ahead and file the bug report if I were you.

Thanks for saving me from having to find a solution myself (gods, I love the forums at times like these).
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
LucaSpiller
Apprentice
Apprentice


Joined: 10 Sep 2004
Posts: 188
Location: Censorship Land (aka England)

PostPosted: Sun Feb 17, 2008 1:11 am    Post subject: Reply with quote

You may want to try xdirectfb, I am currently compiling it so Ill let you know my results!

Off topic, but heh, shoot me:
I am also trying to build a uclibc based system but am having some problems with the latest versions of packages not being supported, how are you guys progressing and avoiding these problems? I am currently rebuidling using an old version of the portage tree (2006.1 snapshot). I found that here are a load of pre-build packages which look recent, so I might give that a go too.
_________________
:: Luca :: Mac Fag :: Original Macbook, 2g RAM :: Closet Linux user (seasoned with salt and pepper) :: C2D E4400 @ 2ghz, 4g RAM (only 3.2g detected under 64bit...), Nvidia 9600GSO ::
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Sun Feb 17, 2008 2:22 am    Post subject: Reply with quote

LucaSpiller wrote:
You may want to try xdirectfb, I am currently compiling it so Ill let you know my results!

Off topic, but heh, shoot me:
I am also trying to build a uclibc based system but am having some problems with the latest versions of packages not being supported, how are you guys progressing and avoiding these problems? I am currently rebuidling using an old version of the portage tree (2006.1 snapshot). I found that here are a load of pre-build packages which look recent, so I might give that a go too.
I haven't run into many problems, was able to do a full `emerge -e system` and the only issue I encountered was the one the OP already found a solution to.

having said that, I wasn't looking to use this as a complete desktop or anything, so my requirements weren't particularly demanding.

Is xdirectfb supported or maintained at all anymore?
The current version (1.0 rc5) was added to portage over four years ago...

I would think kdrive would be more suitable.
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
LucaSpiller
Apprentice
Apprentice


Joined: 10 Sep 2004
Posts: 188
Location: Censorship Land (aka England)

PostPosted: Sun Feb 17, 2008 11:23 am    Post subject: Reply with quote

I would say 'no'. I installed xdrivefb but it complained that xauth, xinit and mcookie couldn't be found. :P

I am trying to create a system with just internet access, with nothing fancy, although I would like Javascript support so that'll mean Firefox or Konqueror. Konqueror seems to be lighter than Firefox (for memory and CPU), but it requires all the KDE deps. :roll:

Update:
Well I got kdrive installed and it seems to work well, I now have a running X system in 6.8mb! :D Unfortunately I can't compile anything else as no X headers or libraries etc were installed. I think I am going to have to install full X, build everything, then uninstall it and run everything through kdrive.... Hmm.
_________________
:: Luca :: Mac Fag :: Original Macbook, 2g RAM :: Closet Linux user (seasoned with salt and pepper) :: C2D E4400 @ 2ghz, 4g RAM (only 3.2g detected under 64bit...), Nvidia 9600GSO ::
Back to top
View user's profile Send private message
solamour
l33t
l33t


Joined: 21 Dec 2004
Posts: 698
Location: San Diego, CA

PostPosted: Wed Feb 27, 2008 12:14 am    Post subject: Reply with quote

Habbit wrote:
Update: I found there was a configure option called --disable-tls, so I copied the ebuild to my overlay and edited it, created a new "tls" USE flag and kept it disabled. Then e2fsprogs built completely fine. Is there a way to have that change merged back into the official Portage tree? Do I need to file a "bug" to request such an USE flag be created in that package?

I have the exactly same problem, and I'm not sure how to disable "tls". Would you kindly walk me through how it's done? Step-by-step instructions would be nice, but I'll take anything even remotely similar. Thank you.
__
sol
Back to top
View user's profile Send private message
Habbit
Apprentice
Apprentice


Joined: 01 Sep 2007
Posts: 237
Location: 3.7137 W, 40.3873 N

PostPosted: Wed Feb 27, 2008 10:29 pm    Post subject: Reply with quote

solamour wrote:
Would you kindly walk me through how it's done?

As I said, I had to modify the ebuild, but this bug has already been reported on Gentoo Bugzilla, and e2fsprogs ebuilds from 1.40.5-r1 onwars incorporate a fix to disable TLS with uclibc. This is a bit different from my own patch, which created a new USE flag, but it works fine.
_________________
Code:
~ $ objdump -d ./habbit_mind
90      xchg %rax, %rax
EB FD   jmp $-3
Back to top
View user's profile Send private message
solamour
l33t
l33t


Joined: 21 Dec 2004
Posts: 698
Location: San Diego, CA

PostPosted: Wed Feb 27, 2008 10:40 pm    Post subject: Reply with quote

Indeed... it's a known issue (https://bugs.gentoo.org/show_bug.cgi?format=multiple&id=204102). I downgraded to e2fsprogs-1.40.3, which is good enough for me, and it seems to be working fine. Thank.
__
sol
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum