Hi, I was upgrading a 6.1 system to a 6.2 system as per the instructions issued when an attempt to emerge portage is made. During the `emerge -e world` freebsd-lib-6.2 fails with the following error: >>> Source unpacked. >>> Compiling source in /var/tmp/portage/sys-freebsd/freebsd-lib-6.2/work/lib ... Warning: Object directory not changed from original /var/tmp/portage/sys-freebsd/freebsd-lib-6.2/work/include make: don't know how to make /var/tmp/portage/sys-freebsd/freebsd-lib-6.2/work/include/../sys/conf/newvers.sh. Stop !!! ERROR: sys-freebsd/freebsd-lib-6.2 failed. Call stack: ebuild.sh, line 1618: Called dyn_compile ebuild.sh, line 975: Called qa_call 'src_compile' environment, line 3552: Called src_compile freebsd-lib-6.2.ebuild, line 142: Called die !!! make include failed !!! If you need support, post the topmost build error, and the call stack if relevant. !!! A complete build log is located at '/var/tmp/portage/sys-freebsd/freebsd-lib-6.2/temp/build.log'. ------------------------------------ The problem is that ../sys links to /usr/src/sys-6.2 which did not exist on my system. I am not sure what ebuild is responsible for this but I suspect it issys-freebsd/freebsd-sources-6.2 since this ebuild owns /usr/src/sys-6.2-r0 according to equery. Symlinking sys-6.2-r0 to sys-6.2 of course allows the freebsd-lib ebuild to continue. Reproducible: Always
hmm, this ebuild may blow away libedit.so.5 which is needed by /bin/sh (real bourne?). I tried a few workarounds like linking libedit.so to libedit.so.5 but I got complaints about file format. Without a working "sh" nothing will build. I moved sh to osh and linked bash to sh (which should put bash in sh compatibility mode AFAIK). Everything seems to be building okay so far. /libexec/ld-elf.so.1: Shared object "libedit.so.5" not found, required by "sh" freebsd-bin may complain when it goes to install I suppose.
hehe, my bad -- the proper activation of the "symlink" USE flag on freebsd-sources would probably go a long way to fixing my booboo :-). Also, freebsd-bin happily replaced /bin/sh with the real Bourne sh (and without clobbering bash via the link).