[packages/rpm] - disable executable() deps generation for scriptlets

baggins baggins at pld-linux.org
Wed Sep 12 12:57:04 CEST 2012


commit 76fbad186cb1b83c2fbc4a2b079717bfe6830631
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Sep 12 12:56:32 2012 +0200

    - disable executable() deps generation for scriptlets

 macros.pld.in | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/macros.pld.in b/macros.pld.in
index bafd6aa..a232317 100644
--- a/macros.pld.in
+++ b/macros.pld.in
@@ -116,6 +116,15 @@ pakietu oraz przy odpluskwianiu samego pakietu.\
 # provides don't obsolete
 %_upgrade_tag		name
 
+# Do not generate executable() dependencies for scriptlets,
+# as it may give false positives, for example:
+# [ ! -x /bin/prog ] || /bin/prog
+# will generate R:/bin/prog and we don't want that as /bin/prog is optional in this case
+# 0 - Use external generator
+# 1 - Use internal generator if available
+# 2 - Use __scriptlet_requires to process scriptlet dependencies
+%_use_internal_dependency_generator	1
+
 #-----------------------------------------------------------------
 # CFLAGS and LDFLAGS used to build
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm.git/commitdiff/76fbad186cb1b83c2fbc4a2b079717bfe6830631



More information about the pld-cvs-commit mailing list