Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 475334 - app-arch/bzip2-1.0.6-r4: install fails on *BSD due to getopt not accepting options after args
Summary: app-arch/bzip2-1.0.6-r4: install fails on *BSD due to getopt not accepting op...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-06-30 15:53 UTC by Yuta SATOH
Modified: 2013-07-02 18:50 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
sample patch for bzip2-1.0.6-r4.ebuild (475334.patch,415 bytes, patch)
2013-06-30 15:57 UTC, Yuta SATOH
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH 2013-06-30 15:53:20 UTC
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
Comment 1 Yuta SATOH 2013-06-30 15:57:36 UTC
Created attachment 352326 [details, diff]
sample patch for bzip2-1.0.6-r4.ebuild
Comment 2 SpanKY gentoo-dev 2013-07-02 16:14:34 UTC
(In reply to Yuta SATOH from comment #0)

BSD command line tools are worthless (or rather, its getopt() implementation)
Comment 3 SpanKY gentoo-dev 2013-07-02 16:21:24 UTC
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
Comment 4 Pacho Ramos gentoo-dev 2013-07-02 18:50:16 UTC
(I am in multilib mail alias)