On 25-Sep-2014 12:24:17 +0400, [email protected] wrote:

 >> There are updated bash packages in Owl-current built for i686
 >> and x86_64, fixing a critical vulnerability.

 > As usual, less than in a day since publishing :-)

When updating slightly older versions of Owl, I've got a error
on `find` invocation. Here's trivial patch:

--- bash.spec.old       2014-09-25 05:22:12 +0400
+++ bash.spec   2014-09-25 14:55:16 +0400
@@ -178,8 +178,8 @@
 install -pm644 doc/*.html %buildroot%docdir/html/
 install -pm644 doc/*.ps %buildroot%docdir/ps/
 install -pm644 doc/*.txt %buildroot%docdir/txt/
-find %buildroot%docdir/{[A-Z],txt/}* -type f -size +8k -print0 |
-       xargs -r0 bzip2 -9 --
+find %buildroot%docdir{,/txt}/* -type f -maxdepth 0 -size +8k \
+       -execdir bzip2 -9 -- '{}' ';'
 gzip -9nf %buildroot%docdir/ps/*.ps
 cp -a examples %buildroot%docdir/
 find %buildroot%docdir/examples/ -type f -name 'Makefile*' -delete



-- 
Alexey V. Vissarionov aka Gremlin from Kremlin <gremlin ПРИ gremlin ТЧК ru>
GPG: 8832FE9FA791F7968AC96E4E909DAC45EF3B1FA8 @ hkp://keys.gnupg.net
--- bash.spec.old       2014-09-25 05:22:12 +0400
+++ bash.spec   2014-09-25 14:55:16 +0400
@@ -178,8 +178,8 @@
 install -pm644 doc/*.html %buildroot%docdir/html/
 install -pm644 doc/*.ps %buildroot%docdir/ps/
 install -pm644 doc/*.txt %buildroot%docdir/txt/
-find %buildroot%docdir/{[A-Z],txt/}* -type f -size +8k -print0 |
-       xargs -r0 bzip2 -9 --
+find %buildroot%docdir{,/txt}/* -type f -maxdepth 0 -size +8k \
+       -execdir bzip2 -9 -- '{}' ';'
 gzip -9nf %buildroot%docdir/ps/*.ps
 cp -a examples %buildroot%docdir/
 find %buildroot%docdir/examples/ -type f -name 'Makefile*' -delete

Attachment: pgp4b2kjY0G0a.pgp
Description: PGP signature

Reply via email to