Revision: 6917 http://ipcop.svn.sourceforge.net/ipcop/?rev=6917&view=rev Author: gespinasse Date: 2013-02-09 17:01:25 +0000 (Sat, 09 Feb 2013) Log Message: ----------- Fix an error while compiling on Centos-5.9 as non-root. find /usr/lib -name libc.a report find: /usr/lib/audit: Permission denied
So change the logic. Instead of looking if find report an error, check if a libc.a has been found. Modified Paths: -------------- ipcop/trunk/make.sh Modified: ipcop/trunk/make.sh =================================================================== --- ipcop/trunk/make.sh 2013-02-09 13:55:44 UTC (rev 6916) +++ ipcop/trunk/make.sh 2013-02-09 17:01:25 UTC (rev 6917) @@ -1263,9 +1263,12 @@ RESULT=${?} SUCCESS=$[ ${SUCCESS} - ${RESULT} ] report_result ${RESULT} + # Contrary to LFS, a static libc is needed to compile a portable toolchain (with a static ccache) echo -n "Checking static libc.a found on /usr/lib" - # Contrary to LFS, a static libc is needed to compile a portable toolchain (with a static ccache) - if ( find /usr/lib -name libc.a > /dev/null 2>&1); then + # On Centos-5.9, find /usr/lib report 'Permission denied' with /usr/lib/audit + # Instead of checking for a find error, look if at least a libc.a file has been found. + local LIBC_STATIC=$(find /usr/lib -name libc.a 2>/dev/null | head -n1) + if [ -n ${LIBC_STATIC} ]; then beautify message DONE else beautify message FAIL This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ Ipcop-svn mailing list Ipcop-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ipcop-svn