[packages/rpm] - xmalloc() is no longer exported by the rpm libraries, which leads to problems with undefined sym

baggins baggins at pld-linux.org
Mon Sep 23 18:22:24 CEST 2013


commit b03090d14868ed6061c7605c162858d6cbc0243f
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Sep 23 18:18:36 2013 +0200

    - xmalloc() is no longer exported by the rpm libraries, which leads to
      problems with undefined symbols in perl bindings

 rpm-5.4.13-perl-bindings-do-not-use-xmalloc.patch | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
---
diff --git a/rpm-5.4.13-perl-bindings-do-not-use-xmalloc.patch b/rpm-5.4.13-perl-bindings-do-not-use-xmalloc.patch
new file mode 100644
index 0000000..9eff10f
--- /dev/null
+++ b/rpm-5.4.13-perl-bindings-do-not-use-xmalloc.patch
@@ -0,0 +1,20 @@
+--- rpm-5.4.13/perl/RPM_Spec.xs.xmalloc~	2013-09-13 06:20:58.102257264 +0200
++++ rpm-5.4.13/perl/RPM_Spec.xs	2013-09-13 06:21:28.680226625 +0200
+@@ -234,7 +234,7 @@ icon(spec)
+         char * dest = NULL;
+         int len;
+         len = strlen(spec->sources->source);
+-        dest = xmalloc(len+1);
++        dest = malloc(len+1);
+ 	dest[len] = '\0';
+         memcpy(dest, spec->sources->source, len);
+         XPUSHs(sv_2mortal(newSVpv(dest, len)));
+@@ -249,7 +249,7 @@ icon_url(spec)
+         char * dest = NULL;
+         int len;
+         len = strlen(spec->sources->fullSource);
+-        dest = xmalloc(len+1);
++        dest = malloc(len+1);
+         memcpy(dest, spec->sources->fullSource, len);
+ 	dest[len] = '\0';
+         XPUSHs(sv_2mortal(newSVpv(dest, len)));
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm.git/commitdiff/a32fd84f797b1fea15ac0c63485303e33a4e63c8



More information about the pld-cvs-commit mailing list