Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 305827

Summary: php5_2-sapi.eclass use "find" in an incompatible manner
Product: Gentoo/Alt Reporter: Naohiro Aota <naota>
Component: FreeBSDAssignee: Gentoo/BSD Team <bsd+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: hiyuh.root, php-bugs
Priority: High    
Version: unspecified   
Hardware: All   
OS: FreeBSD   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: php-5.2.12 build.log
patch for the eclass file.

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.