Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
OSX on Mountain Lion : The guide (help wanted)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Tue Aug 14, 2012 5:05 am    Post subject: OSX on Mountain Lion : The guide (help wanted) Reply with quote

So, as of today, August 13, 2012, I've gotten almost as far as
Code:
env FEATURES="-collision-protect" emerge --oneshot sys-apps/portage

... But not quite.

Here are the two tweaks I had to make to get that far:

1) emerge --nodeps --oneshot bash => emerge --nodeps --oneshot =bash-4.0_p38

2) before installing binutils-apple, I had to download and make md from Apple. Fairly simple. Here's what I did:

Download and make md from Apple: http://opensource.apple.com/source/adv_cmds/adv_cmds-147/md/
Get those three files in a directory, do a make && make install, then copy /tmp/md/Release/usr/bin/md to $EPREFIX/usr/bin/md .

And now, I did

$ emerge --oneshot --nodeps "<wget-1.13.4-r1"

And I got ...

Code:
>>> Installing (1 of 1) net-misc/wget-1.13.4
dyld: Library not loaded: /Users/aldric/Gentoo/usr/lib/libbz2.1.dylib
  Referenced from: /Users/aldric/Gentoo/bin/bzip2
  Reason: image not found
bash: line 1: 57447 Trace/BPT trap: 5       ${PORTAGE_BUNZIP2_COMMAND:-${PORTAGE_BZIP2_COMMAND} -d} -c -- "/Users/aldric/Gentoo/var/db/pkg/net-misc/wget-1.13.4/environment.bz2" > "/Users/aldric/Gentoo/var/tmp/portage/._unmerge_/net-misc/wget-1.13.4/temp/environment"
!!! FAILED prerm: 133
dyld: Library not loaded: /Users/aldric/Gentoo/usr/lib/libbz2.1.dylib
  Referenced from: /Users/aldric/Gentoo/bin/bzip2
  Reason: image not found
Traceback (most recent call last):
  File "/Users/aldric/Gentoo/usr/lib/portage/bin/filter-bash-environment.py", line 149, in <module>
    re.compile(var_pattern), file_in, file_out)
  File "/Users/aldric/Gentoo/usr/lib/portage/bin/filter-bash-environment.py", line 111, in filter_bash_environment
    file_out.write(line)
IOError: [Errno 32] Broken pipe
 * ERROR: net-misc/wget-1.13.4 failed (postinst phase):
 *   filter-bash-environment.py failed
 *
 * Call stack:
 *            ebuild.sh, line 710:  Called ebuild_main 'postinst'
 *   phase-functions.sh, line 892:  Called filter_readonly_variables '--filter-path' '--filter-sandbox' '--allow-extra-vars'
 *   phase-functions.sh, line 140:  Called die
 * The specific snippet of code:
 *      "${PORTAGE_PYTHON:-/Users/aldric/Gentoo/tmp/usr/bin/python}" "${PORTAGE_BIN_PATH}"/filter-bash-environment.py "${filtered_vars}" || die "filter-bash-environment.py failed"
 *
 * If you need support, post the output of `emerge --info '=net-misc/wget-1.13.4'`,
 * the complete build log and the output of `emerge -pqv '=net-misc/wget-1.13.4'`.
 * The complete build log is located at '/Users/aldric/Gentoo/var/tmp/portage/net-misc/wget-1.13.4/temp/build.log'.
 * The ebuild environment file is located at '/Users/aldric/Gentoo/var/tmp/portage/net-misc/wget-1.13.4/temp/environment'.
 * Working directory: '/Users/aldric/Gentoo/var/tmp/portage/net-misc/wget-1.13.4'
 * S: '/Users/aldric/Gentoo/var/tmp/portage/net-misc/wget-1.13.4/work/wget-1.13.4'
/Users/aldric/Gentoo/usr/lib/portage/bin/phase-functions.sh: line 871: 57545 Done                    save_ebuild_env --exclude-init-phases
     57546 Exit 1                  | filter_readonly_variables --filter-path --filter-sandbox --allow-extra-vars
     57547 Trace/BPT trap: 5       | ${PORTAGE_BZIP2_COMMAND} -c -f9 > "$PORTAGE_UPDATE_ENV"
!!! FAILED postinst: 1


Any ideas?
_________________
Votre moment detente
What is the nature of conflict?
Back to top
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Wed Aug 15, 2012 3:30 am    Post subject: Reply with quote

Okay, let's be more precise. Everything works hunky-dory until the emerge of portage, and this happens:

Code:
/Users/aldric/Gentoo/var/tmp/portage/app-arch/bzip2-1.0.6-r3/temp/environment: line 1348: scanmacho: command not found
 * gen_usr_ldscript: unable to read install_name from libbz2.dylib
>>> Completed installing bzip2-1.0.6-r3 into /Users/aldric/Gentoo/var/tmp/portage/app-arch/bzip2-1.0.6-r3/image/

 * QA Notice: command not found:
 *
 *    /Users/aldric/Gentoo/var/tmp/portage/app-arch/bzip2-1.0.6-r3/temp/environment: line 1348: scanmacho: command not found
ecompressdir: bzip2 -9 /usr/share/man
/Users/aldric/Gentoo/var/tmp/portage/._portage_reinstall_.v_UQ4n/bin/misc-functions.sh: line 1038: scanmacho: command not found

>>> Installing (2 of 34) app-arch/bzip2-1.0.6-r3
dyld: Library not loaded: /Users/aldric/Gentoo/usr/lib/libbz2.1.dylib
  Referenced from: /Users/aldric/Gentoo/bin/bzip2
  Reason: image not found
Traceback (most recent call last):
  File "/Users/aldric/Gentoo/var/tmp/portage/._portage_reinstall_.v_UQ4n/bin/filter-bash-environment.py", line 149, in <module>
    re.compile(var_pattern), file_in, file_out)
  File "/Users/aldric/Gentoo/var/tmp/portage/._portage_reinstall_.v_UQ4n/bin/filter-bash-environment.py", line 111, in filter_bash_environment
    file_out.write(line)
IOError: [Errno 32] Broken pipe
 * ERROR: app-arch/bzip2-1.0.6-r3 failed (postinst phase):
 *   filter-bash-environment.py failed
 *
 * Call stack:
 *            ebuild.sh, line 710:  Called ebuild_main 'postinst'
 *   phase-functions.sh, line 892:  Called filter_readonly_variables '--filter-path' '--filter-sandbox' '--allow-extra-vars'
 *   phase-functions.sh, line 140:  Called die
 * The specific snippet of code:
 *      "${PORTAGE_PYTHON:-/Users/aldric/Gentoo/tmp/usr/bin/python}" "${PORTAGE_BIN_PATH}"/filter-bash-environment.py "${filtered_vars}" || die "filter-bash-environment.py failed"
 *
 * If you need support, post the output of `emerge --info '=app-arch/bzip2-1.0.6-r3'`,
 * the complete build log and the output of `emerge -pqv '=app-arch/bzip2-1.0.6-r3'`.
 * The complete build log is located at '/Users/aldric/Gentoo/var/tmp/portage/app-arch/bzip2-1.0.6-r3/temp/build.log'.
 * The ebuild environment file is located at '/Users/aldric/Gentoo/var/tmp/portage/app-arch/bzip2-1.0.6-r3/temp/environment'.
 * Working directory: '/Users/aldric/Gentoo/var/tmp/portage/app-arch/bzip2-1.0.6-r3'
 * S: '/Users/aldric/Gentoo/var/tmp/portage/app-arch/bzip2-1.0.6-r3/work/bzip2-1.0.6'
/Users/aldric/Gentoo/var/tmp/portage/._portage_reinstall_.v_UQ4n/bin/phase-functions.sh: line 871: 85026 Done                    save_ebuild_env --exclude-init-phases
     85027 Exit 1                  | filter_readonly_variables --filter-path --filter-sandbox --allow-extra-vars
     85028 Trace/BPT trap: 5       | ${PORTAGE_BZIP2_COMMAND} -c -f9 > "$PORTAGE_UPDATE_ENV"
!!! FAILED postinst: 1

>>> Emerging (3 of 34) sys-devel/gnuconfig-20120116
 * gnuconfig-20120116.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                   [ ok ]
>>> Unpacking source...
>>> Unpacking gnuconfig-20120116.tar.bz2 to /Users/aldric/Gentoo/var/tmp/portage/sys-devel/gnuconfig-20120116/work
dyld: Library not loaded: /Users/aldric/Gentoo/usr/lib/libbz2.1.dylib
  Referenced from: /Users/aldric/Gentoo/bin/bzip2
  Reason: image not found
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
 * ERROR: sys-devel/gnuconfig-20120116 failed (unpack phase):
 *   failure unpacking gnuconfig-20120116.tar.bz2
 *
 * Call stack:
 *               ebuild.sh, line   85:  Called src_unpack
 *             environment, line 2063:  Called unpack 'gnuconfig-20120116.tar.bz2'
 *        phase-helpers.sh, line  312:  Called _unpack_tar 'bzip2 -d'
 *        phase-helpers.sh, line  282:  Called assert_sigpipe_ok 'failure unpacking gnuconfig-20120116.tar.bz2'
 *   isolated-functions.sh, line   37:  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 '=sys-devel/gnuconfig-20120116'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/gnuconfig-20120116'`.
 * The complete build log is located at '/Users/aldric/Gentoo/var/tmp/portage/sys-devel/gnuconfig-20120116/temp/build.log'.
 * The ebuild environment file is located at '/Users/aldric/Gentoo/var/tmp/portage/sys-devel/gnuconfig-20120116/temp/environment'.
 * Working directory: '/Users/aldric/Gentoo/var/tmp/portage/sys-devel/gnuconfig-20120116/work'
 * S: '/Users/aldric/Gentoo/var/tmp/portage/sys-devel/gnuconfig-20120116/work'

>>> Failed to emerge sys-devel/gnuconfig-20120116, Log file:

>>>  '/Users/aldric/Gentoo/var/tmp/portage/sys-devel/gnuconfig-20120116/temp/build.log'

 * Messages for package sys-libs/ncurses-5.9-r2:

 * gen_usr_ldscript: unable to read install_name from libcurses.dylib
 * gen_usr_ldscript: unable to read install_name from libncurses.dylib

 * Messages for package app-arch/bzip2-1.0.6-r3:

 * gen_usr_ldscript: unable to read install_name from libbz2.dylib
 * ERROR: app-arch/bzip2-1.0.6-r3 failed (postinst phase):
 *   filter-bash-environment.py failed
 *
 * Call stack:
 *            ebuild.sh, line 710:  Called ebuild_main 'postinst'
 *   phase-functions.sh, line 892:  Called filter_readonly_variables '--filter-path' '--filter-sandbox' '--allow-extra-vars'
 *   phase-functions.sh, line 140:  Called die
 * The specific snippet of code:
 *      "${PORTAGE_PYTHON:-/Users/aldric/Gentoo/tmp/usr/bin/python}" "${PORTAGE_BIN_PATH}"/filter-bash-environment.py "${filtered_vars}" || die "filter-bash-environment.py failed"
 *
 * If you need support, post the output of `emerge --info '=app-arch/bzip2-1.0.6-r3'`,
 * the complete build log and the output of `emerge -pqv '=app-arch/bzip2-1.0.6-r3'`.
 * The complete build log is located at '/Users/aldric/Gentoo/var/tmp/portage/app-arch/bzip2-1.0.6-r3/temp/build.log'.
 * The ebuild environment file is located at '/Users/aldric/Gentoo/var/tmp/portage/app-arch/bzip2-1.0.6-r3/temp/environment'.
 * Working directory: '/Users/aldric/Gentoo/var/tmp/portage/app-arch/bzip2-1.0.6-r3'
 * S: '/Users/aldric/Gentoo/var/tmp/portage/app-arch/bzip2-1.0.6-r3/work/bzip2-1.0.6'

 * Messages for package sys-devel/gnuconfig-20120116:

 * ERROR: sys-devel/gnuconfig-20120116 failed (unpack phase):
 *   failure unpacking gnuconfig-20120116.tar.bz2
 *
 * Call stack:
 *               ebuild.sh, line   85:  Called src_unpack
 *             environment, line 2063:  Called unpack 'gnuconfig-20120116.tar.bz2'
 *        phase-helpers.sh, line  312:  Called _unpack_tar 'bzip2 -d'
 *        phase-helpers.sh, line  282:  Called assert_sigpipe_ok 'failure unpacking gnuconfig-20120116.tar.bz2'
 *   isolated-functions.sh, line   37:  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 '=sys-devel/gnuconfig-20120116'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/gnuconfig-20120116'`.
 * The complete build log is located at '/Users/aldric/Gentoo/var/tmp/portage/sys-devel/gnuconfig-20120116/temp/build.log'.
 * The ebuild environment file is located at '/Users/aldric/Gentoo/var/tmp/portage/sys-devel/gnuconfig-20120116/temp/environment'.
 * Working directory: '/Users/aldric/Gentoo/var/tmp/portage/sys-devel/gnuconfig-20120116/work'
 * S: '/Users/aldric/Gentoo/var/tmp/portage/sys-devel/gnuconfig-20120116/work'


This sucks.
_________________
Votre moment detente
What is the nature of conflict?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures 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