]> git.ipfire.org Git - people/ms/ipfire-3.x.git/commitdiff
pakfire: Apply the patches in a better order.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 29 Jun 2012 23:04:54 +0000 (01:04 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 29 Jun 2012 23:04:54 +0000 (01:04 +0200)
Patches are now automatically applied in an order
that is sorted by the version string of the package.

pakfire/pakfire.nm
pakfire/patches/0009-Sort-patches-by-their-version-number.patch [new file with mode: 0644]

index eef125a4a355b016f2f8a89cd856060911db2032..cba3786e61b280c61be3dca11e17dd34622c8b20 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = pakfire
 version    = 0.9.22
-release    = 3
+release    = 4
 
 maintainer = Michael Tremer <michael.tremer@ipfire.org>
 groups     = System/Packaging
diff --git a/pakfire/patches/0009-Sort-patches-by-their-version-number.patch b/pakfire/patches/0009-Sort-patches-by-their-version-number.patch
new file mode 100644 (file)
index 0000000..a8756fc
--- /dev/null
@@ -0,0 +1,19 @@
+commit 2d1d622ac9859c90363076aa2f44edf1efe53597
+Author: Michael Tremer <michael.tremer@ipfire.org>
+Date:   Tue Jun 26 19:32:11 2012 +0200
+
+    Sort patches by their version number (not in alphabetical order).
+
+diff --git a/macros/constants.macro b/macros/constants.macro
+index 07459a3..74484ea 100644
+--- a/macros/constants.macro
++++ b/macros/constants.macro
+@@ -11,7 +11,7 @@ DIR_SOURCE  = %{BASEDIR}
+ # By default, take all patches from the patches directory
+ # in alphabetical order.
+-patches = $(find %{DIR_PATCHES} -not -type d 2>/dev/null | sort)
++patches = $(find %{DIR_PATCHES} -not -type d 2>/dev/null | sort --version-sort)
+ sources = %{thisapp}.tar.gz
+ # Macro definitions