summaryrefslogtreecommitdiffstats
path: root/RPM4
diff options
context:
space:
mode:
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