]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/commitdiff
pakfire: Add two more patches.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 11 Mar 2012 18:56:05 +0000 (19:56 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 11 Mar 2012 18:56:05 +0000 (19:56 +0100)
One of them fixes wrong detection of python-abi (kernel) and
the other one fixes again false detections of the libs-location check.

pakfire/pakfire.nm
pakfire/patches/pakfire-0.9.20-python-abi-find-requires.patch [new file with mode: 0644]
pakfire/patches/pakfire-0.9.20-revert-libs-location-in-usr.patch [new file with mode: 0644]

index cf891d351907d9bd16a6bee23c7daed61e229b9b..3217f43370d5f0e193b01e9bac87b059c281f817 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = pakfire
 version    = 0.9.20
-release    = 5
+release    = 6
 
 maintainer = Michael Tremer <michael.tremer@ipfire.org>
 groups     = System/Packaging
diff --git a/pakfire/patches/pakfire-0.9.20-python-abi-find-requires.patch b/pakfire/patches/pakfire-0.9.20-python-abi-find-requires.patch
new file mode 100644 (file)
index 0000000..512d454
--- /dev/null
@@ -0,0 +1,29 @@
+commit d16c15690f94589c2667a5096c21cec16daee7b7
+Author: Michael Tremer <michael.tremer@ipfire.org>
+Date:   Sun Mar 11 19:53:10 2012 +0100
+
+    find-requires: Filter false positives for python abi.
+
+diff --git a/tools/find-requires b/tools/find-requires
+index 52b6651..044c59f 100755
+--- a/tools/find-requires
++++ b/tools/find-requires
+@@ -43,14 +43,16 @@ while read file; do
+               */usr/lib*/python*/*)
+                       # Sort out all python files.
+                       ;;
+-              */usr/lib*/python*)
++              */usr/lib/python*|*/usr/lib64/python*)
+                       # This will only get the python directory.
+                       file=$(basename ${file})
+                       # Strip the python version from the string.
+                       python_version="${file#python}"
+-                      echo "python-abi = ${python_version}"
++                      if [ -n "${python_version}" ]; then
++                              echo "python-abi = ${python_version}"
++                      fi
+                       continue
+                       ;;
+       esac
diff --git a/pakfire/patches/pakfire-0.9.20-revert-libs-location-in-usr.patch b/pakfire/patches/pakfire-0.9.20-revert-libs-location-in-usr.patch
new file mode 100644 (file)
index 0000000..f5b6dda
--- /dev/null
@@ -0,0 +1,22 @@
+commit 882bb1851ab12ee3ba1561552faf90850e212052
+Author: Michael Tremer <michael.tremer@ipfire.org>
+Date:   Sun Mar 11 17:59:34 2012 +0100
+
+    QA: libs-location: Revert checking in /usr/lib(64).
+    
+    That was not such a good idea because upstream is messing
+    too much with library names.
+
+diff --git a/tools/quality-agent.d/003-libs-location b/tools/quality-agent.d/003-libs-location
+index 479f170..0ee8237 100755
+--- a/tools/quality-agent.d/003-libs-location
++++ b/tools/quality-agent.d/003-libs-location
+@@ -25,7 +25,7 @@ function check() {
+       local failed=0
+       local found
+-      for lib in $(find ${BUILDROOT}/{,usr/}${libdir} -maxdepth 1 -type f -name "lib*.so.*" 2>/dev/null); do
++      for lib in $(find ${BUILDROOT}/${libdir} -maxdepth 1 -type f -name "lib*.so.*" 2>/dev/null); do
+               lib=${lib##*/}
+               lib=${lib%%.so*}