mirror of
https://github.com/void-linux/void-packages.git
synced 2025-09-03 10:33:06 +02:00
rpm: fix build
This commit is contained in:
parent
ec317873be
commit
10bf9f76b2
2 changed files with 24 additions and 0 deletions
10
srcpkgs/rpm/patches/include.patch
Normal file
10
srcpkgs/rpm/patches/include.patch
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- a/tools/rpmuncompress.c
|
||||
+++ b/tools/rpmuncompress.c
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <popt.h>
|
||||
#include <errno.h>
|
||||
+#include <libgen.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
14
srcpkgs/rpm/patches/python.patch
Normal file
14
srcpkgs/rpm/patches/python.patch
Normal file
|
@ -0,0 +1,14 @@
|
|||
--- a/python/header-py.c
|
||||
+++ b/python/header-py.c
|
||||
@@ -316,9 +316,9 @@ static PyObject * hdr_dsOfHeader(PyObjec
|
||||
"(Oi)", s, RPMTAG_NEVR);
|
||||
}
|
||||
|
||||
-static long hdr_hash(PyObject * h)
|
||||
+static int hdr_hash(PyObject * h)
|
||||
{
|
||||
- return (long) h;
|
||||
+ return (int) h;
|
||||
}
|
||||
|
||||
static PyObject * hdr_reduce(hdrObject *s)
|
Loading…
Add table
Reference in a new issue