summaryrefslogtreecommitdiffstats
path: root/RPM4
diff options
context:
space:
mode:
authortv <tv@971eb68f-4bfb-0310-8326-d2484c010a4c>2012-01-02 16:18:23 +0000
committertv <tv@971eb68f-4bfb-0310-8326-d2484c010a4c>2012-01-02 16:18:23 +0000
commit94d69067402a846e4740cdfaa56a8df715065474 (patch)
tree9646fff384fd6c75247489bf6d0167c7d89f4b03 /RPM4
parent8a12a97433fab610c4210ca028d374e086f1fa02 (diff)
downloadperl-RPM4-94d69067402a846e4740cdfaa56a8df715065474.tar
perl-RPM4-94d69067402a846e4740cdfaa56a8df715065474.tar.gz
perl-RPM4-94d69067402a846e4740cdfaa56a8df715065474.tar.bz2
perl-RPM4-94d69067402a846e4740cdfaa56a8df715065474.tar.xz
perl-RPM4-94d69067402a846e4740cdfaa56a8df715065474.zip
(_specbuild) make it works with rpm-4.9
git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@174 971eb68f-4bfb-0310-8326-d2484c010a4c
Diffstat (limited to 'RPM4')
-rw-r--r--RPM4/NEWS2
-rw-r--r--RPM4/src/RPM4.xs4
2 files changed, 5 insertions, 1 deletions
diff --git a/RPM4/NEWS b/RPM4/NEWS
index f8daa77..1134385 100644
--- a/RPM4/NEWS
+++ b/RPM4/NEWS
@@ -1,3 +1,5 @@
+- make Spec->build works with rpm-4.9
+
Version 0.26 - 21 December 2011
- fix for a random segfault
diff --git a/RPM4/src/RPM4.xs b/RPM4/src/RPM4.xs
index ca75358..99c251e 100644
--- a/RPM4/src/RPM4.xs
+++ b/RPM4/src/RPM4.xs
@@ -444,7 +444,9 @@ int _specbuild(rpmts ts, rpmSpec spec, SV * sv_buildflags) {
rpmBuildFlags buildflags = sv2rpmbuildflags(sv_buildflags);
if (buildflags == RPMBUILD_NONE) croak("No action given for build");
#ifdef RPM4_9_0
- return rpmSpecBuild(spec, buildflags);
+ BTA_t flags = calloc(1, sizeof(*flags));
+ flags->buildAmount = buildflags;
+ return rpmSpecBuild(spec, flags);
#else
return buildSpec(ts, spec, buildflags, 0);
#endif