Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 63820 - apache-2.0.50-r1 ebuild has minor syntax error in find command which makes macos complain
Summary: apache-2.0.50-r1 ebuild has minor syntax error in find command which makes ma...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: PPC All
: High minor (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-12 12:35 UTC by Robin Munn
Modified: 2005-01-25 05:34 UTC (History)
0 users

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


Attachments
apache-2.0.50-r1.ebuild.patch (apache-2.0.50-r1.ebuild.patch,758 bytes, patch)
2004-09-12 12:36 UTC, Robin Munn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Munn 2004-09-12 12:35:05 UTC
The src_unpack section of the apache-2.0.50-r1 ebuild contains a "find -type f" command to replace /usr/local/bin/perl invocations with /usr/bin/perl. Well, the included find in Mac OS X Panther (10.3.5) is apparently a little stricter about syntax than GNU find: it gives the error message

find: illegal option -- t
find: illegal option -- y
find: illegal option -- p
find: illegal option -- e
find: f: No such file or directory

When this happened, I hit Ctrl-C to stop the ebuild, so I don't know if this would have eventually caused ebuild failure. But simply replacing "find -type f" with "find . -type f" works.

This problem exists in:

apache-2.0.50-r1
apache-2.0.50
apache-2.0.49-r4
apache-2.0.49-r3

I have only tested this change on macos. But since find's default is to search the current directory if no paths are given, this should cause no behavior change on any other platform.

Reproducible: Always
Steps to Reproduce:
1. ekeyword macos /usr/local/portage/net-www/apache/apache-2.0.50-r1
2. ebuild -av apache
3.

Actual Results:  
find complained of invalid arguments.

Expected Results:  
find should have succeeded.

Portage 2.0.51_pre20 (default-macos-10.3, gcc-3.3, libsystem-7.1-r0, 7.5.0 Power
Macintosh powerpc)
=================================================================
System uname: 7.5.0 Power Macintosh powerpc
macos-20040726
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632)
[disabled]
Autoconf: 
Automake: 
Binutils: 
Headers:  
Libtools: 
ACCEPT_KEYWORDS="macos"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe"
CHOST="powerpc-apple-darwin"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache collision-protect cvs keepwork userpriv"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="macos jpeg ncurses png python readline slang ssl"
Comment 1 Robin Munn 2004-09-12 12:36:10 UTC
Created attachment 39462 [details, diff]
apache-2.0.50-r1.ebuild.patch

Here's a patch to fix the problem in the apache-2.0.50-r1 ebuild.
Comment 2 Benedikt Böhm (RETIRED) gentoo-dev 2004-10-27 12:08:52 UTC
this is fixed in our svn overlay
Comment 3 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2005-01-25 05:34:30 UTC
Fixed in CVS.