From 3f92c66f41ea624538d2b21d983ac9e89a8f6992 Mon Sep 17 00:00:00 2001 From: Rodrigo Osorio Date: Fri, 1 Dec 2023 22:22:20 +0100 Subject: [PATCH] archivers/rpm4: Unbreak build for FreeBSD 14 --- archivers/rpm4/Makefile | 2 +- archivers/rpm4/files/patch-python_header-py.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 archivers/rpm4/files/patch-python_header-py.c diff --git a/archivers/rpm4/Makefile b/archivers/rpm4/Makefile index a3e8898b6bb60..d10ea97f6f2a3 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 0000000000000..828f441dddd85 --- /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 */