git: c55f600615d7 - 2023Q4 - archivers/rpm4: Unbreak build for FreeBSD 14
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 10 Dec 2023 06:02:12 UTC
The branch 2023Q4 has been updated by rodrigo:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c55f600615d73a715dc13fd010e32095eb065e1e
commit c55f600615d73a715dc13fd010e32095eb065e1e
Author: Rodrigo Osorio <rodrigo@FreeBSD.org>
AuthorDate: 2023-12-01 21:22:20 +0000
Commit: Rodrigo Osorio <rodrigo@FreeBSD.org>
CommitDate: 2023-12-10 05:44:13 +0000
archivers/rpm4: Unbreak build for FreeBSD 14
(cherry picked from commit 3f92c66f41ea624538d2b21d983ac9e89a8f6992)
---
archivers/rpm4/Makefile | 2 +-
archivers/rpm4/files/patch-python_header-py.c | 11 +++++++++++
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/archivers/rpm4/Makefile b/archivers/rpm4/Makefile
index a3e8898b6bb6..d10ea97f6f2a 100644
--- a/archivers/rpm4/Makefile
+++ b/archivers/rpm4/Makefile
@@ -1,6 +1,6 @@
PORTNAME= rpm
PORTVERSION= 4.18.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= archivers
MASTER_SITES= http://ftp.rpm.org/releases/rpm-${PORTVERSION:R}.x/
PKGNAMESUFFIX= 4
diff --git a/archivers/rpm4/files/patch-python_header-py.c b/archivers/rpm4/files/patch-python_header-py.c
new file mode 100644
index 000000000000..828f441dddd8
--- /dev/null
+++ b/archivers/rpm4/files/patch-python_header-py.c
@@ -0,0 +1,11 @@
+--- python/header-py.c.orig 2023-11-30 19:45:23 UTC
++++ python/header-py.c
+@@ -741,7 +741,7 @@
+ 0, /* tp_as_number */
+ &hdr_as_sequence, /* tp_as_sequence */
+ &hdr_as_mapping, /* tp_as_mapping */
+- hdr_hash, /* tp_hash */
++ (hashfunc)hdr_hash, /* tp_hash */
+ 0, /* tp_call */
+ 0, /* tp_str */
+ (getattrofunc) hdr_getattro, /* tp_getattro */