dev-lang/nasm: avoid 'cp -u' as it's not portable, bug #655444
authorSergei Trofimovich <slyfox@gentoo.org>
Sun, 13 May 2018 15:15:26 +0000 (16:15 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sun, 13 May 2018 15:15:45 +0000 (16:15 +0100)
In this case we can unconditionally copy files.

Reported-by: Michał Górny
Bug: https://bugs.gentoo.org/655444
Package-Manager: Portage-2.3.36, Repoman-2.3.9

dev-lang/nasm/files/nasm-2.13.03-bsd-cp-doc.patch [new file with mode: 0644]
dev-lang/nasm/nasm-2.13.03-r1.ebuild

diff --git a/dev-lang/nasm/files/nasm-2.13.03-bsd-cp-doc.patch b/dev-lang/nasm/files/nasm-2.13.03-bsd-cp-doc.patch
new file mode 100644 (file)
index 0000000..76c1790
--- /dev/null
@@ -0,0 +1,15 @@
+Avoid 'cp -u' as it's not portable.
+
+In this case we can unconditionally copy files.
+
+Reported-by: Michał Górny
+Bug: https://bugs.gentoo.org/655444
+diff --git a/doc/Makefile.in b/doc/Makefile.in
+index 261a791..bc9da1e 100644
+--- a/doc/Makefile.in
++++ b/doc/Makefile.in
+@@ -28,3 +28,3 @@ RM_RF                = rm -rf
+ CP_F          = cp -f
+-CP_UF         = cp -ufv
++CP_UF         = cp -fv
index e050fffc1e94756a9b6602d9043dccbbc7977b59..91d5ea48006795440feea9be33fc5c4440d02069 100644 (file)
@@ -32,6 +32,7 @@ S=${WORKDIR}/${P/_}
 PATCHES=(
        "${FILESDIR}"/${PN}-2.13.01-fix-docdir.patch
        "${FILESDIR}"/${PN}-2.13.01-gcc-8.patch
+       "${FILESDIR}"/${PN}-2.13.03-bsd-cp-doc.patch
 )
 
 src_configure() {