pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/guile lang/guile: Add search path to default exte...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1eaba6b2383c
branches:  trunk
changeset: 309527:1eaba6b2383c
user:      fhajny <fhajny%pkgsrc.org@localhost>
date:      Tue Jun 19 11:07:25 2018 +0000

description:
lang/guile: Add search path to default extensions for lt_dlopenext.

Fixes usage with packages like print/lilypond on at least Darwin and SunOS, where dynamically loaded guile extensions cannot be found without resorting to LTDL_LIBRARY_PATH quirks.

diffstat:

 lang/guile/Makefile                           |   4 ++--
 lang/guile/distinfo                           |   4 +++-
 lang/guile/patches/patch-libguile_Makefile.in |  14 ++++++++++++++
 lang/guile/patches/patch-libguile_dynl.c      |  22 ++++++++++++++++++++++
 4 files changed, 41 insertions(+), 3 deletions(-)

diffs (74 lines):

diff -r a312ef9b2fc8 -r 1eaba6b2383c lang/guile/Makefile
--- a/lang/guile/Makefile       Tue Jun 19 08:46:41 2018 +0000
+++ b/lang/guile/Makefile       Tue Jun 19 11:07:25 2018 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.109 2017/03/16 10:07:38 wiz Exp $
+# $NetBSD: Makefile,v 1.110 2018/06/19 11:07:25 fhajny Exp $
 
 DISTNAME=              guile-1.8.8
-PKGREVISION=           8
+PKGREVISION=           9
 CATEGORIES=            lang
 MASTER_SITES=          ${MASTER_SITE_GNU:=guile/}
 
diff -r a312ef9b2fc8 -r 1eaba6b2383c lang/guile/distinfo
--- a/lang/guile/distinfo       Tue Jun 19 08:46:41 2018 +0000
+++ b/lang/guile/distinfo       Tue Jun 19 11:07:25 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.50 2016/11/10 09:26:21 maya Exp $
+$NetBSD: distinfo,v 1.51 2018/06/19 11:07:25 fhajny Exp $
 
 SHA1 (guile-1.8.8.tar.gz) = 548d6927aeda332b117f8fc5e4e82c39a05704f9
 RMD160 (guile-1.8.8.tar.gz) = 8ac185a72ad8394b14d5377549e5bbf02889faaa
@@ -16,5 +16,7 @@
 SHA1 (patch-doc_ref_fdl.texi) = c7e70f9b30f792dd38c18550739673d255f9fc5c
 SHA1 (patch-doc_ref_gh.texi) = b6b841102111d5c5813ba729c9c0ebfb3d6ca1e0
 SHA1 (patch-doc_tutorial_guile-tut.texi) = 5ad2c5942dc7715344115847793bd4f2eaacd7ca
+SHA1 (patch-libguile_Makefile.in) = ea219cc894d92ec92b409846876e2eff21382107
+SHA1 (patch-libguile_dynl.c) = 01ec790842d003eaba3500ab79ba9d4e77d925d6
 SHA1 (patch-libguile_guile-snarf-docs.in) = 392b0774a8d21bc06f2cf741683773b918bc8ffb
 SHA1 (patch-libguile_guile-snarf.in) = d534adce77040d441b0771efc536bc7e8560365d
diff -r a312ef9b2fc8 -r 1eaba6b2383c lang/guile/patches/patch-libguile_Makefile.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/guile/patches/patch-libguile_Makefile.in     Tue Jun 19 11:07:25 2018 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-libguile_Makefile.in,v 1.1 2018/06/19 11:07:25 fhajny Exp $
+
+Define libdir for use in dynl.
+
+--- libguile/Makefile.in.orig  2010-12-13 19:29:39.000000000 +0000
++++ libguile/Makefile.in
+@@ -2124,6 +2124,7 @@ libpath.h: $(srcdir)/Makefile.in  $(top_
+       @echo '/* generated by Makefile */' > libpath.tmp
+       @echo '#define SCM_PKGDATA_DIR "$(pkgdatadir)"' >> libpath.tmp
+       @echo '#define SCM_LIBRARY_DIR "$(pkgdatadir)/$(GUILE_EFFECTIVE_VERSION)"'>>libpath.tmp
++      @echo '#define SCM_LIB_DIR "$(libdir)"'>>libpath.tmp
+       @echo '#define SCM_SITE_DIR "$(pkgdatadir)/site"' >> libpath.tmp
+       @echo '#define SCM_BUILD_INFO { \' >> libpath.tmp
+       @echo ' { "srcdir", "'"`cd @srcdir@; pwd`"'" }, \' >> libpath.tmp
diff -r a312ef9b2fc8 -r 1eaba6b2383c lang/guile/patches/patch-libguile_dynl.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/guile/patches/patch-libguile_dynl.c  Tue Jun 19 11:07:25 2018 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-libguile_dynl.c,v 1.1 2018/06/19 11:07:25 fhajny Exp $
+
+Add search path for bundled modules.
+
+--- libguile/dynl.c.orig       2010-12-13 17:24:39.000000000 +0000
++++ libguile/dynl.c
+@@ -56,6 +56,7 @@ maybe_drag_in_eprintf ()
+ #include "libguile/lang.h"
+ #include "libguile/validate.h"
+ #include "libguile/dynwind.h"
++#include "libguile/libpath.h"
+ 
+ #include <ltdl.h>
+ 
+@@ -73,6 +74,7 @@ maybe_drag_in_eprintf ()
+ static void *
+ sysdep_dynl_link (const char *fname, const char *subr)
+ {
++  lt_dladdsearchdir(SCM_LIB_DIR);
+   lt_dlhandle handle;
+   handle = lt_dlopenext (fname);
+   if (NULL == handle)



Home | Main Index | Thread Index | Old Index