New ebuild is adding -f option using sed command. Since the behavior of ln command is different, can not install successfully. FYI, Linux) $ ln -s foo -f bar $ ls -lha bar lrwxrwxrwx 1 nigoro nigoro 3 Jul 1 00:44 bar -> foo FreeBSD) $ ln -s foo -f bar ln: bar: No such file or directory $ ls -lha bar ls: bar: No such file or directory bzip2-1.0.6-r4.ebuild src_prepare() { sed -i \ -e 's:ln -s bzip2.1:& -f:g' \ Makefile || die } Reproducible: Always Steps to Reproduce: 1. echo "=app-arch/bzip2-1.0.6-r4" >> /etc/portage/package.unmask 2. emerge =app-arch/bzip2-1.0.6-r4 3. Actual Results: <snip> cp -f bzip2.1 /var/tmp/portage/app-arch/bzip2-1.0.6-r4/image//usr/share/man/man1 chmod a+r /var/tmp/portage/app-arch/bzip2-1.0.6-r4/image//usr/share/man/man1/bzip2.1 ln -s bzip2.1 -f /var/tmp/portage/app-arch/bzip2-1.0.6-r4/image//usr/share/man/man1/bunzip2.1 ln: /var/tmp/portage/app-arch/bzip2-1.0.6-r4/image//usr/share/man/man1/bunzip2.1: No such file or directory gmake: *** [install] Error 1 * ERROR: app-arch/bzip2-1.0.6-r4 failed (install phase): * emake failed
Created attachment 352326 [details, diff] sample patch for bzip2-1.0.6-r4.ebuild
(In reply to Yuta SATOH from comment #0) BSD command line tools are worthless (or rather, its getopt() implementation)
should be all set now in the tree; thanks for the report! Commit message: Move `ln` update to the patch rather than sed-ing it after the fact http://sources.gentoo.org/app-arch/bzip2/bzip2-1.0.6-r4.ebuild?r1=1.1&r2=1.2 http://sources.gentoo.org/app-arch/bzip2/files/bzip2-1.0.4-man-links.patch?r1=1.1&r2=1.2
(I am in multilib mail alias)