Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 305827 - php5_2-sapi.eclass use "find" in an incompatible manner
Summary: php5_2-sapi.eclass use "find" in an incompatible manner
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: High normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-19 08:47 UTC by Naohiro Aota
Modified: 2010-03-16 13:17 UTC (History)
2 users (show)

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


Attachments
php-5.2.12 build.log (build.log,6.23 KB, text/plain)
2010-02-19 08:48 UTC, Naohiro Aota
Details
patch for the eclass file. (php5_2-sapi.eclass.patch,482 bytes, patch)
2010-03-09 02:39 UTC, Naohiro Aota
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Naohiro Aota gentoo-dev 2010-02-19 08:47:30 UTC
eclass/php5_2-sapi.eclass use "find" like this: "$(find -name '*.m4')"
But this is not work with FreeBSD "find". We cannot omit the directory to search.

This bug make "emerge php" not to finish nor abort. Emerge output so
many "y". It might fulfil the whole disk space.


Reproducible: Always

Steps to Reproduce:
1.emerge >=sys-devel/autoconf-2.64
2.emerge =php-5.2.12

Actual Results:  
emerge not finish nor abort.
Comment 1 Naohiro Aota gentoo-dev 2010-02-19 08:48:55 UTC
Created attachment 220271 [details]
php-5.2.12 build.log

There were much more "y"s at the bottom of the file.
Comment 2 Christian Hoffmann (RETIRED) gentoo-dev 2010-02-27 11:22:34 UTC
What's the correct usage then?
find . -name '*.m4'?
Comment 3 Naohiro Aota gentoo-dev 2010-02-27 11:50:26 UTC
(In reply to comment #2)
> What's the correct usage then?
> find . -name '*.m4'?

yes, replacing the command with "find . -name '*.m4'", I was able to emerge php.


Comment 4 Naohiro Aota gentoo-dev 2010-03-09 02:39:48 UTC
Created attachment 222759 [details, diff]
patch for the eclass file.

Since I applied this patch, php has properly been emerge'd on both Linux and FreeBSD.
Please apply this patch.
Comment 5 hiyuh 2010-03-09 03:25:53 UTC
IMHO, omitting search directories on calling find is a common stupid mistake. FYI, eclass/toolchain-binutils.eclass does t3h job.