On Friday 20 February 2004 20.10, Arnd Vehling wrote: > Adrian 'Dagurashibanipal' von Bidder wrote: > > On Friday 20 February 2004 07.36, Arnd Vehling wrote: > >>Can anyone clue me in on how to get those two forsaken libs cleanly > >>installed on a debian stable system so this damn binary will run? > > > > Is it an option to run that app in a chroot? > > Sure. I though about but i am not sure how to exactly > create a complete, working environment for that app in a chroot jail. > > I did setup chrooted named daemons but thats somewhat different > from setting up a more or less complete system which is own > libgcc-base / linker and loads of libs basicly coming from > debian-unstable. > > I mean, this is close to having an unstable dist running chrooted > inside of debian stable. Isnt it? Well, it depends on what your application needs to run properly. Likely you can make do with just libc/ld-linux and everything that is listed in 'ldd <yourapp>' output, plus obviously the files that come with the app itself (perhaps some data files or so?) This is far from a whole unstable - you don't need much in /etc (perhaps the passwd file, perhaps resolv.conf, don't forgent the linker config files ld.so.*), you don't have any daemons, you don't need most/all of /var, even if it's an X app, you only need the client libraries, no X server etc. (just make sure you connect to the X server via TCP and not via domain socket, or make X somehow create an additional socket inside your chroot). Oh, and another thing you'll need probably is one of the libnss_* files (most likely libnss_files), if your application does any lookups on the user database (/etc/passwd). I'd start by just copying libc and the linked libraries into the chroot, and then expanding this until the app stops breaking. A totally different approach would be to use debootstrap to actually install a complete unstable chroot. It may be easier, but it's a bit a waste of diskspace. Dunno, perhaps some go-between is possible, to have just a dpkg database, but no base system installed. Sometimes things will break if you don't have all the Essential: yes packages installed, but you'll probably figure out what is missing. cheers -- vbi -- Glücklichsein beginnt immer ein wenig über der Erde. -- Karl Krolow
Attachment:
pgpSglYTp3Een.pgp
Description: signature