Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 469128 - chmod issues building many packages on FreeBSD
Summary: chmod issues building many packages on FreeBSD
Status: RESOLVED DUPLICATE of bug 468952
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: AMD64 FreeBSD
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-09 00:18 UTC by Doug Miller
Modified: 2013-05-09 01:26 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Doug Miller 2013-05-09 00:18:42 UTC
I tried to set up a Gentoo/FreeBSD build, but most packages I try to build get errors with chmod. (See below). This looks like it was caused by the revision http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/libtool.eclass?r1=1.102&r2=1.103 to libtool.eclass, which uses the --recursive option that isn't available in FreeBSD's chmod.


####
 * Package:    dev-libs/libgpg-error-1.11
 * Repository: gentoo
 * Maintainer: crypto@gentoo.org
 * USE:        amd64-fbsd elibc_FreeBSD java5 kernel_FreeBSD multilib nls userland_BSD
 * FEATURES:   preserve-libs
>>> Unpacking source...
>>> Unpacking libgpg-error-1.11.tar.bz2 to /var/tmp/portage/dev-libs/libgpg-error-1.11/work
>>> Source unpacked in /var/tmp/portage/dev-libs/libgpg-error-1.11/work
>>> Preparing source in /var/tmp/portage/dev-libs/libgpg-error-1.11/work/libgpg-error-1.11 ...
 * Running elibtoolize in: libgpg-error-1.11/
chmod: illegal option -- -
usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...
chmod: illegal option -- -
usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...
chmod: illegal option -- -
usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...
chmod: illegal option -- -
usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...
chmod: illegal option -- -
usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...
chmod: illegal option -- -
usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...
chmod: illegal option -- -
usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...
chmod: illegal option -- -
usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...
chmod: illegal option -- -
usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...
 *   Applying portage/1.2.0 patch ...
chmod: illegal option -- -
usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...
chmod: illegal option -- -
usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...
chmod: illegal option -- -
usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...
chmod: illegal option -- -
usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...
chmod: illegal option -- -
usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...
chmod: illegal option -- -
usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...
chmod: illegal option -- -
usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...
chmod: illegal option -- -
usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...
chmod: illegal option -- -
usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...
chmod: illegal option -- -
usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...
 *   Applying sed/1.5.6 patch ...
chmod: illegal option -- -
usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...
chmod: illegal option -- -
usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...
chmod: illegal option -- -
usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...
chmod: illegal option -- -
usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...
 *   Applying as-needed/2.4.2 patch ...
chmod: illegal option -- -
usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...
 *   Applying target-nm/2.4.2 patch ...
chmod: illegal option -- -
usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...
chmod: illegal option -- -
usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...
chmod: illegal option -- -
usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...
chmod: illegal option -- -
usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...
chmod: illegal option -- -
usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...
chmod: illegal option -- -
usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...
chmod: illegal option -- -
usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...
 *   Applying fbsd-conf/00broken-libglade patch ...
chmod: illegal option -- -
usage: chmod [-fhv] [-R [-H | -L | -P]] mode file ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-libs/libgpg-error-1.11/work/libgpg-error-1.11 ...
 * ERROR: dev-libs/libgpg-error-1.11 failed (configure phase):
 *   configure is not executable
 *
 * Call stack:
 *          ebuild.sh, line   93:  Called src_configure
 *        environment, line 1108:  Called econf '--enable-nls' '--disable-static' '--disable-languages'
 *   phase-helpers.sh, line  524:  Called die
 * The specific snippet of code:
 *              die "configure is not executable"
 *
 * If you need support, post the output of `emerge --info '=dev-libs/libgpg-error-1.11'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/libgpg-error-1.11'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/libgpg-error-1.11/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libgpg-error-1.11/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/libgpg-error-1.11/work/libgpg-error-1.11'
 * S: '/var/tmp/portage/dev-libs/libgpg-error-1.11/work/libgpg-error-1.11'

Reproducible: Always

Steps to Reproduce:
1. Follow the instructions to setup a Gentoo FreeBSD system at http://wiki.gentoo.org/wiki/Gentoo_FreeBSD
2. When trying to emerge nano, the above error appears, and it also comes up for several other packages if you skip it.
Actual Results:  
Error shown above

Expected Results:  
It compiles fine

I was able to get mine to work by changing the permission backup in the file to

        stat -f "%Lp ${file}" "${file}" > "${file}.gentoo.elt"

followed by

        cat "${file}.gentoo.elt" | xargs chmod

This isn't portable though, since the GNU stat has different formatting options.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-05-09 01:26:15 UTC

*** This bug has been marked as a duplicate of bug 468952 ***