]> git.ipfire.org Git - people/ms/ipfire-3.x.git/commitdiff
pakfire: Support aarch64 aarch64-two
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 3 Mar 2015 11:26:25 +0000 (06:26 -0500)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 3 Mar 2015 11:26:25 +0000 (06:26 -0500)
pakfire/pakfire.nm
pakfire/patches/9999-64-bit-marker.patch [new file with mode: 0644]
pakfire/patches/9999-capabilities-ENOSYS.patch [new file with mode: 0644]

index 45a1c2505bcede23c58449412a475c23204638ea..f8f99730a5c7e6f3215dab8cc27aae83363c666c 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = pakfire
 version    = 0.9.26
-release    = 3
+release    = 4
 
 maintainer = Michael Tremer <michael.tremer@ipfire.org>
 groups     = System/Packaging
diff --git a/pakfire/patches/9999-64-bit-marker.patch b/pakfire/patches/9999-64-bit-marker.patch
new file mode 100644 (file)
index 0000000..b900405
--- /dev/null
@@ -0,0 +1,28 @@
+diff --git a/src/scripts/find-common b/src/scripts/find-common
+index 22ce747..d2fc80c 100644
+--- a/src/scripts/find-common
++++ b/src/scripts/find-common
+@@ -1,13 +1,3 @@
+ #!/bin/bash
+ . ${BASEDIR}/functions-common
+-
+-# Find marker for 64 bit binaries.
+-case "$(uname -m)" in
+-      i?86|x86_64)
+-              mark64="()(64bit)"
+-              ;;
+-      *)
+-              mark64=""
+-              ;;
+-esac
+diff --git a/src/scripts/functions-constants b/src/scripts/functions-constants
+index 80256f9..99e4b7a 100644
+--- a/src/scripts/functions-constants
++++ b/src/scripts/functions-constants
+@@ -19,3 +19,5 @@ done
+ ORPHAN_CANDIDATES="${ORPHAN_CANDIDATES} /usr/lib/pkgconfig"
+ ORPHAN_CANDIDATES="${ORPHAN_CANDIDATES} /usr/lib/python*"
++# Mark for 64bit
++mark64="()(64bit)"
diff --git a/pakfire/patches/9999-capabilities-ENOSYS.patch b/pakfire/patches/9999-capabilities-ENOSYS.patch
new file mode 100644 (file)
index 0000000..2372342
--- /dev/null
@@ -0,0 +1,32 @@
+diff --git a/src/_pakfire/capabilities.c b/src/_pakfire/capabilities.c
+index 4cd8e09..756ec16 100644
+--- a/src/_pakfire/capabilities.c
++++ b/src/_pakfire/capabilities.c
+@@ -38,16 +38,19 @@ get_capabilities(PyObject *self, PyObject *args) {
+       cap_d = cap_get_file(filename);
+       if (cap_d == NULL) {
+-              if (errno == EOPNOTSUPP) {
++              switch (errno) {
+                       /* Return nothing, if the operation is not supported. */
+-                      Py_RETURN_NONE;
+-              } else if (errno != ENODATA) {
+-                      snprintf(exception, STRING_SIZE - 1, "Failed to get capabilities of file %s (%s).",
+-                              filename, strerror(errno));
+-                      PyErr_SetString(PyExc_RuntimeError, exception);
+-                      return NULL;
++                      case EOPNOTSUPP:
++                      case ENODATA:
++                      case ENOSYS:
++                              Py_RETURN_NONE;
++
++                      default:
++                              snprintf(exception, STRING_SIZE - 1, "Failed to get capabilities of file %s (%s).",
++                                      filename, strerror(errno));
++                              PyErr_SetString(PyExc_RuntimeError, exception);
++                              return NULL;
+               }
+-              Py_RETURN_NONE;
+       }
+       char *result = cap_to_text(cap_d, NULL);