Opened 19 years ago

Closed 19 years ago

Last modified 8 years ago

#2846 closed defect (fixed)

ncurses dynamic library not installed

Reported by: master@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port: ncurses

Description (last modified by ryandesign (Ryan Carsten Schmidt))

devel/ncurses - dynamic library not compiled and not installed

to cure - fix Portfile to add a configure option
fix misc/shlib to set DYLD_LIBRARY_PATH and enable destroot install
(the later bug reported to the ncurses developer, fix adapted from the development version of ncurses)

Portfile diff

--- Portfile.orig	Fri Feb 25 16:16:19 2005
+++ Portfile	Mon Apr  4 05:50:15 2005
@@ -21,5 +21,7 @@
 configure.args	--mandir=${prefix}/share/man
 
 variant darwin {
-	configure.args-append	--enable-widec
+	configure.args-append	--enable-widec --with-shared --without-debug  \
+		--without-ada --without-cxx-binding --without-cxx 
+	patchfiles	patch-shlib
 }

patch-shlib

--- misc/shlib.orig	Sun Jul 20 02:58:14 2003
+++ misc/shlib	Mon Apr  4 06:08:47 2005
@@ -58,7 +58,16 @@
 # Special cases:
 #
 #	BeOS R4.5 uses $LIBRARY_PATH rather than $LD_LIBRARY_PATH.
-
+#	Mac OS X uses $DYLD_LIBRARY_PATH
+#
+# Other cases not handled by this script:
+#
+#	AIX uses $LIBPATH
+#	IRIX64 may use $LD_LIBRARY64_PATH or $LD_LIBRARYN32_PATH
+#	Solaris may use $LD_LIBRARY_PATH_64
+#
+CDPATH=
+#
 #
 # Make sure that we use the PATH that was set in run_tic.sh
 #
@@ -67,6 +76,7 @@
 	export PATH
 fi
 
+# Find the lib-directory for this build tree
 q=""
 for p in lib ../lib
 do
@@ -74,21 +84,56 @@
 		q="$p"
 	fi
 done
+
+# Set the environment variable.
 if test -n "$q" ; then
-	if test -n "$LD_LIBRARY_PATH"; then
-		LD_LIBRARY_PATH="$q:$LD_LIBRARY_PATH"
+	system=
+	if test -n "$SHLIB_HOST" ; then
+		system="$SHLIB_HOST"
+	elif test -n "$PATHEXT" ; then
+		system=cygwin
 	elif test -n "$LIBRARY_PATH" ; then
-		LIBRARY_PATH="$q:$LIBRARY_PATH"
+		system=beos
+	elif test -n "$DYLD_LIBRARY_PATH" ; then
+		system=darwin
+	elif test -n "$LD_LIBRARY_PATH"; then
+		system=unix
 	else
-		LD_LIBRARY_PATH="$q"
+		for r in $q/*.*
+		do
+			if test -f "$r"
+			then
+				case $r in
+				*.dll)
+					system=cygwin
+					;;
+				*.dylib)
+					system=darwin
+					;;
+				esac
 	fi
-	export LD_LIBRARY_PATH
+			test -n "$system" && break
+		done
 fi
 
-# cygwin doesn't use LD_LIBRARY_PATH, but does use PATH
-if test -n "$PATHEXT" ; then
-	PATH=$LD_LIBRARY_PATH:$PATH;
-	export PATH
+	case .$system in
+	.cygwin*)
+		variable=PATH
+		;;
+	.beos*)
+		variable=LIBRARY_PATH
+		;;
+	.darwin*)
+		variable=DYLD_LIBRARY_PATH
+		;;
+	*)
+		variable=LD_LIBRARY_PATH
+		;;
+	esac
+
+	eval 'test -z "$'$variable'" && '$variable'=":"'
+	eval $variable'="$q:$'$variable'"'
+	eval 'export '$variable
 fi
 
 eval "$*"

Attachments (2)

patch-shlib (1.8 KB) - added by master@… 19 years ago.
Patch to shlib
Portfile.diff (321 bytes) - added by master@… 19 years ago.
PAtch to Portfile

Download all attachments as: .zip

Change History (6)

comment:1 Changed 19 years ago by jmpp@…

Owner: changed from darwinports-bugs@… to mww@…
Summary: ncurses dynamic library not installed ncurses dynamic library not installed

Assigning bug to maintainer of port.

-jmpp.

comment:2 Changed 19 years ago by mww@…

could you please attach the patches instead of inlining them?

Changed 19 years ago by master@…

Attachment: patch-shlib added

Patch to shlib

Changed 19 years ago by master@…

Attachment: Portfile.diff added

PAtch to Portfile

comment:3 Changed 19 years ago by mww@…

Resolution: fixed
Status: newclosed

thanks for the files - commited!

comment:4 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: ncurses added
Note: See TracTickets for help on using tickets.