From e83c02e88c9ca00710c16711f790998986ccff1f Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 1 Aug 2015 15:37:01 +0000 Subject: fix compiling with rpm-4.13 git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@256 971eb68f-4bfb-0310-8326-d2484c010a4c --- RPM4/NEWS | 1 + RPM4/src/Makefile.PL | 1 + RPM4/src/RPM4.xs | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/RPM4/NEWS b/RPM4/NEWS index 300d970..17f029f 100644 --- a/RPM4/NEWS +++ b/RPM4/NEWS @@ -1,4 +1,5 @@ - drop support for rpm > 4.9.0 +- fix compiling with rpm-4.13 Version 0.34 - 15 September 2014 diff --git a/RPM4/src/Makefile.PL b/RPM4/src/Makefile.PL index 7296a07..7474562 100644 --- a/RPM4/src/Makefile.PL +++ b/RPM4/src/Makefile.PL @@ -35,6 +35,7 @@ foreach (qw( 4.9.1 4.9.1.1 4.9.1.2 + 4.12.90 )) { my $v = $_; $v =~ s/\./_/g; diff --git a/RPM4/src/RPM4.xs b/RPM4/src/RPM4.xs index fe8d712..9bfae55 100644 --- a/RPM4/src/RPM4.xs +++ b/RPM4/src/RPM4.xs @@ -471,7 +471,11 @@ int _headername_vs_dep(Header h, rpmds dep, int nopromote) { /* Hight level function */ int rpmsign(char *passphrase, const char *rpm) { +#ifdef RPM4_12_90 + return rpmPkgSign(rpm, NULL); +#else return rpmPkgSign(rpm, NULL, passphrase); +#endif } MODULE = RPM4 PACKAGE = RPM4 -- cgit v1.2.1