aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2018-09-18 11:04:14 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2018-09-18 12:07:35 +0200
commit0850d30edca55ee96d0b1d658f756163e91b5603 (patch)
treea0f30ef971d88d64dd5642fa302b3f1452d782e6
parent6e128db1e5f5a817dfa807e765abe758c6eebd84 (diff)
downloadperl-URPM-0850d30edca55ee96d0b1d658f756163e91b5603.tar
perl-URPM-0850d30edca55ee96d0b1d658f756163e91b5603.tar.gz
perl-URPM-0850d30edca55ee96d0b1d658f756163e91b5603.tar.bz2
perl-URPM-0850d30edca55ee96d0b1d658f756163e91b5603.tar.xz
perl-URPM-0850d30edca55ee96d0b1d658f756163e91b5603.zip
restore rpm-4.11.x compatibility
-rwxr-xr-xMakefile.PL3
-rw-r--r--NEWS1
-rw-r--r--URPM.xs8
3 files changed, 11 insertions, 1 deletions
diff --git a/Makefile.PL b/Makefile.PL
index a423e6b..8ef2f21 100755
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -4,7 +4,7 @@ use ExtUtils::PkgConfig;
# minimum required version of dependencies we need to build
our %build_reqs = (
- 'rpm' => '4.12.0',
+ 'rpm' => '4.11.0',
);
our %CONFIGURE_REQUIRES = (
'ExtUtils::Depends' => '0.300',
@@ -40,6 +40,7 @@ print $FH "/* File generated by Makefile.PL\n";
print $FH " */\n\n";
print $FH "#ifndef RPMVERSION_H\n#define RPMVERSION_H\n\n";
foreach (qw(
+ 4.11.0
4.12.0
4.13.0
4.14.0
diff --git a/NEWS b/NEWS
index cb67aa0..f90299c 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
- fix callback parameters doc
+- restore rpm-4.11.x compatibility
Version 5.20 - 16 September 2018
diff --git a/URPM.xs b/URPM.xs
index 0569dfa..eb0dbf2 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -119,6 +119,14 @@ typedef struct s_Package* URPM__Package;
#define FILTER_MODE_DOC_FILES 1
#define FILTER_MODE_CONF_FILES 2
+#ifdef RPM4_11_0
+#ifndef RPM4_12_0
+#define RPMTAG_RECOMMENDNAME RPMTAG_SUGGESTSNAME
+#define RPMTAG_RECOMMENDFLAGS RPMTAG_SUGGESTSFLAGS
+#define RPMTAG_RECOMMENDVERSION RPMTAG_SUGGESTSVERSION
+#endif
+#endif
+
static ssize_t write_nocheck(int fd, const void *buf, size_t count) {
return write(fd, buf, count);
}