[packages/rpm] - #%patch works, macro is %%{shrink:}'ed and 'missing %PATCHXXX' message was just misleading macro

baggins baggins at pld-linux.org
Mon Sep 17 19:08:57 CEST 2012


commit 31c264022a7eb6bb8be284d197898a1573bfc23b
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Sep 17 19:06:43 2012 +0200

    - #%patch works, macro is %%{shrink:}'ed and 'missing %PATCHXXX' message
      was just misleading macro-expansion side-effect
    - rel 0.19

 rpm-remove-misleading-missing-patch-message.patch | 2 +-
 rpm.spec                                          | 4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/rpm.spec b/rpm.spec
index 8149801..851976d 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -2,8 +2,6 @@
 # TODO:
 # - check if we want shell autodeps: Requires: executable(ln) executable(mv)
 # - add macros for some ppc, mipsel, alpha and sparc
-# - make %%patch not multiline, so plain comment char could still work:
-#   http://git.pld-linux.org/gitweb.cgi/packages/kernel.git/commitdiff/5d3a3ea257d7f88e59d0ad93c20cc8448fb42f3d
 #
 # - when adopting, use 4.5 ticket for checklist: https://bugs.launchpad.net/pld-linux/+bug/262985
 #
@@ -46,7 +44,7 @@ Summary(ru.UTF-8):	Менеджер пакетов от RPM
 Summary(uk.UTF-8):	Менеджер пакетів від RPM
 Name:		rpm
 Version:	5.4.10
-Release:	0.18
+Release:	0.19
 License:	LGPL
 Group:		Base
 # http://rpm5.org/files/rpm/rpm-5.4/rpm-5.4.10-0.20120706.src.rpm
diff --git a/rpm-remove-misleading-missing-patch-message.patch b/rpm-remove-misleading-missing-patch-message.patch
index d377a9c..a31ec78 100644
--- a/rpm-remove-misleading-missing-patch-message.patch
+++ b/rpm-remove-misleading-missing-patch-message.patch
@@ -12,7 +12,7 @@
 +     * and spec contains commented out %patchXXX macro
 +     * http://git.pld-linux.org/gitweb.cgi/packages/kernel.git/commitdiff/5d3a3ea257d7f88e59d0ad93c20cc8448fb42f3d
 +     */
-+    if (strlen(file) > 6 && strncasecmp(file, "%PATCH", 6))
++    if ((strlen(file) > 6) && (strncasecmp(file, "%PATCH", 6) == 0))
 +	return 0;
 +#endif
  
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm.git/commitdiff/31c264022a7eb6bb8be284d197898a1573bfc23b



More information about the pld-cvs-commit mailing list