summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2020-09-07 11:11:41 +0000
committerschmonz <schmonz@pkgsrc.org>2020-09-07 11:11:41 +0000
commitc8924e25238854b88d2018c997d1a9bdc7943bc6 (patch)
tree91c13f8efa4f0fcce985cf4898e5079f78a959b3
parent34c9cfbc49f7cf2e871abca3c9550a203f674982 (diff)
downloadpkgsrc-c8924e25238854b88d2018c997d1a9bdc7943bc6.tar.gz
Run the built tic with the built libncurses, not the installed one, as
the build system intends (but fails) to do. This fixes "make package", for instance, when tic needs to use a newly provided symbol. This fix applies to fewer dynamic linkers than ${WRKSRC}/misc/shlib -- not the macOS dyld, for instance -- so making the provided script work as intended will be more widely effective than this patch.
-rw-r--r--devel/ncurses/Makefile.common7
-rw-r--r--devel/ncurses/distinfo3
-rw-r--r--devel/ncurses/patches/patch-misc_run__tic.in29
3 files changed, 37 insertions, 2 deletions
diff --git a/devel/ncurses/Makefile.common b/devel/ncurses/Makefile.common
index 528ddca718e..88d32f4256d 100644
--- a/devel/ncurses/Makefile.common
+++ b/devel/ncurses/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.46 2020/06/01 07:01:19 jperkin Exp $
+# $NetBSD: Makefile.common,v 1.47 2020/09/07 11:11:41 schmonz Exp $
#
# used by devel/ncurses/Makefile
# used by devel/ncursesw/Makefile
@@ -38,6 +38,11 @@ SUBST_STAGE.rpath= post-configure
SUBST_SED.rpath+= -e "s|-L\\(.libdir\\)|${COMPILER_RPATH_FLAG}\\1 -L\\1|"
SUBST_MESSAGE.rpath= Fixing rpath in ncurses-config.
+SUBST_CLASSES+= setenv
+SUBST_FILES.setenv= misc/run_tic.in
+SUBST_STAGE.setenv= pre-configure
+SUBST_VARS.setenv= SETENV
+
.include "../../mk/bsd.prefs.mk"
CONFIGURE_ARGS.Darwin+= --disable-mixed-case
diff --git a/devel/ncurses/distinfo b/devel/ncurses/distinfo
index 0ba0af847c0..333fbb89723 100644
--- a/devel/ncurses/distinfo
+++ b/devel/ncurses/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.45 2020/09/04 10:33:14 js Exp $
+$NetBSD: distinfo,v 1.46 2020/09/07 11:11:41 schmonz Exp $
SHA1 (ncurses-6.2.tar.gz) = 56e410fb77f2b5501a0b2f6a995376f3cefe1097
RMD160 (ncurses-6.2.tar.gz) = bedfe81f33b3e55e44d14126c9c2821d7f222701
@@ -6,6 +6,7 @@ SHA512 (ncurses-6.2.tar.gz) = 4c1333dcc30e858e8a9525d4b9aefb60000cfc727bc4a1062b
Size (ncurses-6.2.tar.gz) = 3425862 bytes
SHA1 (patch-c++_Makefile.in) = 32611b5fe66df676f35c39212402b77d99ca8e19
SHA1 (patch-configure) = c0074d959a9981b3811519328f42a0c18a51c5a4
+SHA1 (patch-misc_run__tic.in) = a6a8dd89da1a2fbbc5fcabfa6d41ce3a41b75722
SHA1 (patch-misc_terminfo.src) = d9eede4b159358f396693141ed9d9c2a76647917
SHA1 (patch-mk-1st.awk) = adf9d68ee565da80078cfcfa8969a4ef806d65de
SHA1 (patch-ncurses_base_lib_initscr.c) = e514e2bb4862a2617b30c6ad715bc1c50cb76f0e
diff --git a/devel/ncurses/patches/patch-misc_run__tic.in b/devel/ncurses/patches/patch-misc_run__tic.in
new file mode 100644
index 00000000000..efe84ddf456
--- /dev/null
+++ b/devel/ncurses/patches/patch-misc_run__tic.in
@@ -0,0 +1,29 @@
+$NetBSD: patch-misc_run__tic.in,v 1.1 2020/09/07 11:11:41 schmonz Exp $
+
+Run the built tic with the built libncurses, not the installed one, as
+the build system intends (but fails) to do. This fixes "make package",
+for instance, when tic needs to use a newly provided symbol.
+
+This fix applies to fewer dynamic linkers than ${WRKSRC}/misc/shlib --
+not the macOS dyld, for instance -- so making the provided script work
+as intended will be more widely effective than this patch.
+
+--- misc/run_tic.in.orig 2020-02-02 23:34:34.000000000 +0000
++++ misc/run_tic.in
+@@ -76,10 +76,13 @@ then
+ ;;
+ esac
+ export PATH
+- if test @DFT_LWR_MODEL@ = shared
++ if test @DFT_LWR_MODEL@ = shared || test @DFT_LWR_MODEL@ = libtool
+ then
+- SHLIB="sh $srcdir/shlib"
+- TIC_PATH="$SHLIB tic"
++ #SHLIB="sh $srcdir/shlib"
++ #TIC_PATH="$SHLIB tic"
++ # shlib is supposed to set this (or OPSYS equivalent)
++ # for its child, but sure seems not to
++ TIC_PATH="@SETENV@ LD_LIBRARY_PATH=${DESTDIR}${prefix}/lib tic"
+ else
+ TIC_PATH="tic"
+ fi