FS#332 - makepkg: patch to suppress 'find' errors
Attached to Project:
Pacman
Opened by Eric Johnson (eric) - Friday, 26 December 2003, 19:32 GMT
Last edited by Judd Vinet (judd) - Sunday, 04 January 2004, 01:27 GMT
Opened by Eric Johnson (eric) - Friday, 26 December 2003, 19:32 GMT
Last edited by Judd Vinet (judd) - Sunday, 04 January 2004, 01:27 GMT
|
Details
This isn't a bug as much as an annoyance. When using
makepkg, 'find' errors are written to stdout during the
'strip' process.
Here's a patch to 'makepkg' to suppress the errors from 'find'. --- makepkg 2003-12-26 14:28:44.000000000 -0500 +++ makepkg.new 2003-12-26 14:27:19.000000000 -0500 @@ -573,9 +573,22 @@ # strip binaries if [ "$NOSTRIP" = "0" ]; then msg "Stripping debugging symbols from libraries..." - find pkg/{,usr,usr/local,opt/*}/lib -type f -exec /usr/bin/strip --strip-debug '{}' \; 2>&1 + for libdir in pkg/lib pkg/usr/lib pkg/usr/local/lib pkg/opt/*/lib + do + if [ -d $libdir ]; then + find $libdir -type f -exec /usr/bin/strip --strip-debug '{}' \; 2>&1 + fi + done + unset libdir msg "Stripping symbols from binaries..." - find pkg/{,usr,usr/local,opt/*}/{bin,sbin} -type f -exec /usr/bin/strip '{}' \; 2>&1 + for bindir in pkg/bin pkg/sbin pkg/usr/bin pkg/usr/sbin \ + pkg/usr/local/bin pkg/usr/local/sbin pkg/opt/*/bin + do + if [ -d $bindir ]; then + find $bindir -type f -exec /usr/bin/strip '{}' \; 2>&1 + fi + done + unset bindir fi |
This task depends upon
Closed by Anonymous Submitter
Sunday, 04 January 2004, 01:27 GMT
Reason for closing: Fixed
Sunday, 04 January 2004, 01:27 GMT
Reason for closing: Fixed
Comment by Eric Johnson (eric) -
Friday, 26 December 2003, 19:36 GMT
The diff file has been uploaded/attached.
Comment by Judd Vinet (judd) - Sunday,
04 January 2004, 01:27 GMT
- Task details edited
This will be fixed in 2.7.2
makepkg.diff