summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcube <cube>2004-01-05 09:50:47 +0000
committercube <cube>2004-01-05 09:50:47 +0000
commitb570e147bad66540271134cb1f40cb004fae44c0 (patch)
tree2ace5f3cd7c02943a77486067c2d48841df892b1
parent1afdc0ce4cb88b86aaa539645f85aaa0ec7b8184 (diff)
downloadpkgsrc-b570e147bad66540271134cb1f40cb004fae44c0.tar.gz
Import a patch for ltdl.c (an old one, from 2001, see rev. 1.134.2.1 of
that filein GNU libtool repository) to fix bad assumptions on memory allocation. Bump PKGREVISION.
-rw-r--r--devel/libtool/Makefile.common4
-rw-r--r--devel/libtool/distinfo3
-rw-r--r--devel/libtool/patches/patch-as33
3 files changed, 37 insertions, 3 deletions
diff --git a/devel/libtool/Makefile.common b/devel/libtool/Makefile.common
index f1b95a21b08..e670c58e066 100644
--- a/devel/libtool/Makefile.common
+++ b/devel/libtool/Makefile.common
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile.common,v 1.37 2003/12/11 22:15:30 reed Exp $
+# $NetBSD: Makefile.common,v 1.38 2004/01/05 09:50:47 cube Exp $
#
DISTNAME= libtool-ml-20010614
PKGPFX= ${DISTNAME:C/ml-/1.4./}
-PKGREVISION= 18
+PKGREVISION= 19
WRKSRC= ${WRKDIR}/libtool-ml
CATEGORIES= devel pkgtools
MASTER_SITES= ${MASTER_SITE_LOCAL}
diff --git a/devel/libtool/distinfo b/devel/libtool/distinfo
index b061c06ff43..98c6ffef8df 100644
--- a/devel/libtool/distinfo
+++ b/devel/libtool/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.31 2003/12/12 18:05:38 reed Exp $
+$NetBSD: distinfo,v 1.32 2004/01/05 09:50:47 cube Exp $
SHA1 (libtool-ml-20010614.tar.gz) = ff746666737e420592c3017d65bf4c47f1430dac
Size (libtool-ml-20010614.tar.gz) = 784246 bytes
@@ -17,3 +17,4 @@ SHA1 (patch-al) = 22f1b7289d9ba477255e66364ae23af24a298dd0
SHA1 (patch-am) = 2c99398e34686ea5bcecaae254b1b240b53e46df
SHA1 (patch-ao) = 4e115e9d6ddde556205dc786cde471bfee5a5e9e
SHA1 (patch-aq) = 7555ca198cacec6029a95562984673ef562aade1
+SHA1 (patch-as) = 1cdaa6963858fa509d12a1303ce1658902ac9c95
diff --git a/devel/libtool/patches/patch-as b/devel/libtool/patches/patch-as
new file mode 100644
index 00000000000..f2c5433e560
--- /dev/null
+++ b/devel/libtool/patches/patch-as
@@ -0,0 +1,33 @@
+$NetBSD: patch-as,v 1.1 2004/01/05 09:50:47 cube Exp $
+
+--- libltdl/ltdl.c.orig 2001-04-25 06:05:03.000000000 +0200
++++ libltdl/ltdl.c
+@@ -1156,6 +1156,7 @@ presym_add_symlist (preloaded)
+ tmp = LT_DLMALLOC (lt_dlsymlists_t, 1);
+ if (tmp)
+ {
++ memset (tmp, 0, 1*sizeof(lt_dlsymlists_t));
+ tmp->syms = preloaded;
+ tmp->next = preloaded_symbols;
+ preloaded_symbols = tmp;
+@@ -2023,10 +2024,7 @@ lt_dlopen (filename)
+ return 0;
+ }
+
+- handle->info.ref_count = 0;
+- handle->depcount = 0;
+- handle->deplibs = 0;
+- handle->caller_data = 0;
++ memset (handle, 0, 1*sizeof(struct lt_dlhandle_struct));
+ newhandle = handle;
+
+ /* lt_dlclose()ing yourself is very bad! Disallow it. */
+@@ -2266,7 +2264,7 @@ lt_dlopen (filename)
+ goto cleanup;
+ }
+
+- handle->info.ref_count = 0;
++ memset (handle, 0, 1*sizeof(struct lt_dlhandle_struct));
+ if (load_deplibs (handle, deplibs) == 0)
+ {
+ newhandle = handle;