Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing/running Gentoo in a 32bit FreeBSD jail
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
raddaqii
Tux's lil' helper
Tux's lil' helper


Joined: 27 Mar 2005
Posts: 102
Location: Berlin, Old Europe

PostPosted: Thu Feb 20, 2014 9:14 am    Post subject: Installing/running Gentoo in a 32bit FreeBSD jail Reply with quote

Was wondering where to post this. Feel free to move elsewhere.

I'm building a couple of NAS servers based on FreeNAS. The original idea was to provide services such as git and smbd to developers in an isolated way, i.e. by setting up Gentoo jails on that host and have everything done the way we normally would, the Gentoo way.

Alas, ran into strange, gruesome problems, aka showstoppers, as in "linux jail receives only 2GB of 10GB transferred data", a known FreeNAS bug #3970. Read part of the attemps in the FreeNAS forums. Pragmatic workaround: stay within the FreeBSD world, provide services from there. But of course I'd still love to have Gentoo running.

When I did, which is a no-brainer, running Gentoo is simple as click it in the GUI. Serious fun starts after that, like when you try to emerge things. Yes, I know, I could use a given binhost, cross-compile, etc. But starting with a basic "emerge -a samba" I get this:

Code:
gentootest / # emerge -a samba

 * IMPORTANT: 4 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

 * Last emerge --sync was 181d 14h 48m 31s ago.

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

Calculating dependencies... done!
[ebuild  N     ] app-text/sgml-common-0.6.3-r5
[ebuild  N     ] dev-libs/iniparser-3.1  USE="-doc -examples -static-libs"
[ebuild  N     ] sys-libs/talloc-2.0.8  USE="python -compat"
[ebuild  N     ] app-arch/unzip-6.0-r3  USE="bzip2 unicode -natspec"
[ebuild  N     ] sys-libs/libcap-2.22  USE="pam"
[ebuild  N     ] app-text/docbook-xml-dtd-4.2-r2
[ebuild  N     ] sys-libs/tdb-1.2.11  USE="python"
[ebuild  N     ] net-fs/cifs-utils-5.9-r1  USE="caps -ads -caps-ng -creds -upcall"
[ebuild  N     ] net-fs/samba-3.6.12  USE="acl aio client netapi pam readline server smbclient winbind -addns -ads -avahi -caps -cluster -cups -debug -dmapi -doc -examples -fam -ldap -ldb -quota (-selinux) -smbsharemodes -swat -syslog"

Would you like to merge these packages? [Yes/No] y

>>> Verifying ebuild manifests
>>> Running pre-merge checks for net-fs/samba-3.6.12

>>> Emerging (1 of 9) app-text/sgml-common-0.6.3-r5
 * sgml-common-0.6.3-gentoo.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                         [ ok ]
>>> Unpacking source...
>>> Unpacking sgml-common-0.6.3-gentoo.tar.gz to /var/tmp/portage/app-text/sgml-common-0.6.3-r5/work
tar: sgml-common-0.6.3/Makefile.in: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/aclocal.m4: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/configure.ac: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/missing: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/install-sh: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/configure: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/xml.dcl: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/xml-iso-entities/Makefile.in: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/xml-iso-entities/Makefile.am: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/xml-iso-entities/catalog: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/xml-iso-entities/ISOtech.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/xml-iso-entities/ISOpub.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/xml-iso-entities/ISOnum.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/xml-iso-entities/ISOlat2.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/xml-iso-entities/ISOlat1.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/xml-iso-entities/ISOgrk4.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/xml-iso-entities/ISOgrk3.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/xml-iso-entities/ISOgrk2.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/xml-iso-entities/ISOgrk1.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/xml-iso-entities/ISOdia.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/xml-iso-entities/ISOcyr2.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/xml-iso-entities/ISOcyr1.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/xml-iso-entities/ISObox.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/xml-iso-entities/ISOamsr.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/xml-iso-entities/ISOamso.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/xml-iso-entities/ISOamsn.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/xml-iso-entities/ISOamsc.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/xml-iso-entities/ISOamsb.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/xml-iso-entities/ISOamsa.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/README: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/NEWS: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/Makefile.cvs: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/sgml-iso-entities/Makefile.in: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/sgml-iso-entities/catalog: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/sgml-iso-entities/Makefile.am: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/sgml-iso-entities/ISOtech.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/sgml-iso-entities/ISOpub.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/sgml-iso-entities/ISOnum.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/sgml-iso-entities/ISOlat2.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/sgml-iso-entities/ISOlat1.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/sgml-iso-entities/ISOgrk4.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/sgml-iso-entities/ISOgrk3.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/sgml-iso-entities/ISOgrk2.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/sgml-iso-entities/ISOgrk1.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/sgml-iso-entities/ISOdia.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/sgml-iso-entities/ISOcyr2.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/sgml-iso-entities/ISOcyr1.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/sgml-iso-entities/ISObox.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/sgml-iso-entities/ISOamsr.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/sgml-iso-entities/ISOamso.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/sgml-iso-entities/ISOamsn.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/sgml-iso-entities/ISOamsc.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/sgml-iso-entities/ISOamsb.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/sgml-iso-entities/ISOamsa.ent: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/Makefile.am: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/AUTHORS: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/ChangeLog: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/doc/Makefile.in: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/doc/Makefile.am: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/doc/refentry/Makefile.in: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/doc/refentry/Makefile.am: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/doc/refentry/install-catalog.sgml: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/doc/HTML/Makefile.in: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/doc/HTML/Makefile.am: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/doc/HTML/install-catalog.html: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/doc/HTML/fdl.html: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/doc/HTML/introduction.html: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/doc/HTML/index.html: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/doc/man/Makefile.in: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/doc/man/Makefile.am: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/doc/man/install-catalog.8: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/doc/man/manpage.refs: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/doc/man/manpage.links: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/doc/sgml-common.sgml: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/config/Makefile.in: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/config/Makefile.am: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/config/sgml.conf: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/bin/Makefile.in: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/bin/install-catalog.in: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/bin/Makefile.am: Cannot utime: Invalid argument
tar: sgml-common-0.6.3/bin/sgmlwhich: Cannot utime: Invalid argument
tar: Exiting with failure status due to previous errors
 * ERROR: app-text/sgml-common-0.6.3-r5 failed (unpack phase):
 *   failure unpacking sgml-common-0.6.3-gentoo.tar.gz
 *
 * Call stack:
 *               ebuild.sh, line   93:  Called src_unpack
 *             environment, line 2122:  Called __eapi0_src_unpack
 *        phase-helpers.sh, line  585:  Called unpack 'sgml-common-0.6.3-gentoo.tar.gz'
 *        phase-helpers.sh, line  342:  Called __unpack_tar 'gzip -d'
 *        phase-helpers.sh, line  315:  Called __assert_sigpipe_ok 'failure unpacking sgml-common-0.6.3-gentoo.tar.gz'
 *   isolated-functions.sh, line   39:  Called die
 * The specific snippet of code:
 *         [[ $x -ne 0 && $x -ne ${PORTAGE_SIGPIPE_STATUS:-141} ]] && die "$@"
 *
 * If you need support, post the output of `emerge --info '=app-text/sgml-common-0.6.3-r5'`,
 * the complete build log and the output of `emerge -pqv '=app-text/sgml-common-0.6.3-r5'`.
 * The complete build log is located at '/var/tmp/portage/app-text/sgml-common-0.6.3-r5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/sgml-common-0.6.3-r5/temp/environment'.
 * Working directory: '/var/tmp/portage/app-text/sgml-common-0.6.3-r5/work'
 * S: '/var/tmp/portage/app-text/sgml-common-0.6.3-r5/work/sgml-common-0.6.3'

>>> Failed to emerge app-text/sgml-common-0.6.3-r5, Log file:

>>>  '/var/tmp/portage/app-text/sgml-common-0.6.3-r5/temp/build.log'

 * Messages for package app-text/sgml-common-0.6.3-r5:

 * ERROR: app-text/sgml-common-0.6.3-r5 failed (unpack phase):
 *   failure unpacking sgml-common-0.6.3-gentoo.tar.gz
 *
 * Call stack:
 *               ebuild.sh, line   93:  Called src_unpack
 *             environment, line 2122:  Called __eapi0_src_unpack
 *        phase-helpers.sh, line  585:  Called unpack 'sgml-common-0.6.3-gentoo.tar.gz'
 *        phase-helpers.sh, line  342:  Called __unpack_tar 'gzip -d'
 *        phase-helpers.sh, line  315:  Called __assert_sigpipe_ok 'failure unpacking sgml-common-0.6.3-gentoo.tar.gz'
 *   isolated-functions.sh, line   39:  Called die
 * The specific snippet of code:
 *         [[ $x -ne 0 && $x -ne ${PORTAGE_SIGPIPE_STATUS:-141} ]] && die "$@"
 *
 * If you need support, post the output of `emerge --info '=app-text/sgml-common-0.6.3-r5'`,
 * the complete build log and the output of `emerge -pqv '=app-text/sgml-common-0.6.3-r5'`.
 * The complete build log is located at '/var/tmp/portage/app-text/sgml-common-0.6.3-r5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/sgml-common-0.6.3-r5/temp/environment'.
 * Working directory: '/var/tmp/portage/app-text/sgml-common-0.6.3-r5/work'
 * S: '/var/tmp/portage/app-text/sgml-common-0.6.3-r5/work/sgml-common-0.6.3'


This looks awful.

I have contacted ryao, and gotten some encouraging hints:

Quote:
Gentoo Linux is doable. ... I recall having to downgrade tar or symlink it to busy box. In addition, touch and one other utility from coreutils must be symlinked. I cannot recall which, but ln or chown seems likely. When the linuxulator complains about an unimplemented syscall, you could try grepping the binaries to see which has it in its ELF header. That might not necessarily work, but it is an idea. Lastly, glibc could not be built in the linuxulator because trace was not implemented.


Teh internet helps, as in this thread in the FreeBSD forums, but I can't be bothered atm. Still want to postpone this. Dear lazyweb, who else has attempted to achieve this? Or succeeded?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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