PLD-doc: devel-hints-en.txt - why cp config.sub from %prep is bad
glen
glen at pld-linux.org
Sun Oct 5 02:35:07 CEST 2008
Author: glen Date: Sun Oct 5 00:35:07 2008 GMT
Module: PLD-doc Tag: HEAD
---- Log message:
- why cp config.sub from %prep is bad
---- Files affected:
PLD-doc:
devel-hints-en.txt (1.34 -> 1.35)
---- Diffs:
================================================================
Index: PLD-doc/devel-hints-en.txt
diff -u PLD-doc/devel-hints-en.txt:1.34 PLD-doc/devel-hints-en.txt:1.35
--- PLD-doc/devel-hints-en.txt:1.34 Fri Sep 19 20:27:52 2008
+++ PLD-doc/devel-hints-en.txt Sun Oct 5 02:35:02 2008
@@ -273,6 +273,10 @@
The above lines create the build directory and copies the Source0 and
Source1 files to it.
+Do not add code to %prep that copies files from other packages, as builder -bp
+ignores BuildRequires. For example this should be in %build:
+cp -f /usr/share/automake/config.sub .
+
Build process section (%build):
This section should contain everything that's necessary to build a
package in the %{_topdir}/BUILD directory in the RPM build tree. In this
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/PLD-doc/devel-hints-en.txt?r1=1.34&r2=1.35&f=u
More information about the pld-cvs-commit
mailing list