summaryrefslogtreecommitdiff
path: root/devel/ncurses/patches/patch-misc_run__tic.in
blob: efe84ddf45619bc0d5f22c786c3fd2d338fb3093 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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