From owner-freebsd-ports Mon Apr 1 18: 0:50 2002 Delivered-To: freebsd-ports@freebsd.org Received: from smtp.shikoku.ne.jp (smtp.shikoku.ne.jp [210.143.160.28]) by hub.freebsd.org (Postfix) with SMTP id E455C37B41D for ; Mon, 1 Apr 2002 18:00:35 -0800 (PST) Received: (qmail 21787 invoked from network); 2 Apr 2002 02:00:32 -0000 Received: from unknown (HELO mebius.private) (210.143.180.53) by smtp.shikoku.ne.jp with SMTP; 2 Apr 2002 02:00:32 -0000 Date: Tue, 02 Apr 2002 10:59:28 +0900 (JST) Message-Id: <20020402.105928.1037128513.nin@smtp.shikoku.ne.jp> To: sobomax@FreeBSD.org Cc: freebsd-ports@FreeBSD.org Subject: Re: about lang/cli problem From: NINOMIYA Hideyuki In-Reply-To: <20020401.161750.74742875.nin@smtp.shikoku.ne.jp> References: <20020401.161750.74742875.nin@smtp.shikoku.ne.jp> X-cite-me: =?iso-2022-jp?B?GyRCJEskcxsoQg==?= X-PGP-Fingerprint: 6C59 EC08 5B23 6490 44D0 7CD3 DA40 219F 7114 8553 X-PGP-Public-Key: http://user.shikoku.ne.jp/~nin/pgp/public-key.txt X-URI: http://user.shikoku.ne.jp/~nin/index.html X-URI: http://home.Jp.FreeBSD.org/~nin/index.html X-Face: }ft&~i*0<;p9PLxI*G[:X *Bzq[.pq8DgHW)Vf6t{KT[Wjh(.Q_%0(]U,u=BDy5S X-Face-Version: X-Face utility v1.3.6.20 - "Love You To (remix)" with Select X-Face v0.15 - "Live And Let Die" X-Mailer: Mew version 3.0.55 on XEmacs 21.4.6 (Common Lisp) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi I report this, because I got a good solution from one person about this problem. Subject: about lang/cli problem Message-Id: <20020401.161750.74742875.nin@smtp.shikoku.ne.jp> me> These don't work so that a shared libraries is referred by me> absolute path. I worked to solve this problem by oneself, me> but cannot get a solution yet. me> me> Will there be a good solution method ? This is the patch which KUBOTA-san made ---8<------8<------8<------8<------8<------8<------8<------8<------8<--- diff -urN cli.orig/Makefile cli/Makefile --- cli.orig/Makefile Sun Mar 31 19:53:13 2002 +++ cli/Makefile Tue Apr 2 04:53:13 2002 @@ -36,6 +36,9 @@ post-extract: @${CHMOD} 755 ${WRKSRC}/env.sh +post-patch: + @${PERL} -pi -e "s|%%LD_RUNPATH%%|${PREFIX}/cli-${PORTVERSION}|" ${WRKSRC}/makefile.common.in ${WRKSRC}/rotorenv/bin/makefile.def + post-configure: @for file in `/usr/bin/find ${WRKSRC} -type f -name "makefile*"`; do \ ${LN} -sf $${file} `${ECHO_CMD} $${file} | ${SED} 's|makefile|Makefile|'` ; \ diff -urN cli.orig/files/patch-clr::src::debug::cordbg::makefile.inc cli/files/patch-clr::src::debug::cordbg::makefile.inc --- cli.orig/files/patch-clr::src::debug::cordbg::makefile.inc Thu Jan 1 09:00:00 1970 +++ cli/files/patch-clr::src::debug::cordbg::makefile.inc Tue Apr 2 06:21:38 2002 @@ -0,0 +1,13 @@ +--- clr/src/debug/cordbg/makefile.inc.orig Tue Apr 2 06:18:37 2002 ++++ clr/src/debug/cordbg/makefile.inc Tue Apr 2 06:18:33 2002 +@@ -18,9 +18,7 @@ + DYNLIB_SUFFIX=lib + !endif + +-UMLIBS=$(CORLIBS)\$(DYNLIB_PREFIX)rotor_pal.$(DYNLIB_SUFFIX) \ +- $(CORLIBS)\$(DYNLIB_PREFIX)rotor_palrt.$(DYNLIB_SUFFIX) \ +- $(TARGETLIBS) ++UMLIBS= -lrotor_pal -lrotor_palrt $(TARGETLIBS) + + MACHINE_TARGETLIBS= + diff -urN cli.orig/files/patch-clr::src::tools::clix::makefile.inc cli/files/patch-clr::src::tools::clix::makefile.inc --- cli.orig/files/patch-clr::src::tools::clix::makefile.inc Thu Jan 1 09:00:00 1970 +++ cli/files/patch-clr::src::tools::clix::makefile.inc Tue Apr 2 06:22:31 2002 @@ -0,0 +1,11 @@ +--- clr/src/tools/clix/makefile.inc.orig Tue Apr 2 06:17:29 2002 ++++ clr/src/tools/clix/makefile.inc Tue Apr 2 06:17:23 2002 +@@ -17,7 +17,6 @@ + DYNLIB_SUFFIX=lib + !endif + +-UMLIBS=$(CORLIBS)\$(DYNLIB_PREFIX)rotor_pal.$(DYNLIB_SUFFIX) \ +- $(CORLIBS)\$(DYNLIB_PREFIX)rotor_palrt.$(DYNLIB_SUFFIX) ++UMLIBS= -lrotor_pal -lrotor_palrt + + MACHINE_TARGETLIBS= diff -urN cli.orig/files/patch-clr::src::tools::sos::makefile.inc cli/files/patch-clr::src::tools::sos::makefile.inc --- cli.orig/files/patch-clr::src::tools::sos::makefile.inc Thu Jan 1 09:00:00 1970 +++ cli/files/patch-clr::src::tools::sos::makefile.inc Tue Apr 2 06:23:13 2002 @@ -0,0 +1,11 @@ +--- clr/src/tools/sos/makefile.inc.orig Tue Apr 2 06:17:05 2002 ++++ clr/src/tools/sos/makefile.inc Tue Apr 2 06:17:01 2002 +@@ -17,7 +17,6 @@ + DYNLIB_SUFFIX=lib + !endif + +-UMLIBS=$(CORLIBS)\$(DYNLIB_PREFIX)rotor_pal.$(DYNLIB_SUFFIX) \ +- $(CORLIBS)\$(DYNLIB_PREFIX)rotor_palrt.$(DYNLIB_SUFFIX) ++UMLIBS= -lrotor_pal -lrotor_palrt + + MACHINE_TARGETLIBS= diff -urN cli.orig/files/patch-makefile.common.in cli/files/patch-makefile.common.in --- cli.orig/files/patch-makefile.common.in Sat Mar 30 16:26:30 2002 +++ cli/files/patch-makefile.common.in Tue Apr 2 04:53:13 2002 @@ -1,8 +1,5 @@ - -$FreeBSD: ports/lang/cli/files/patch-makefile.common.in,v 1.1 2002/03/30 07:26:30 sobomax Exp $ - ---- makefile.common.in.orig Fri Mar 22 03:48:17 2002 -+++ makefile.common.in Fri Mar 29 00:54:26 2002 +--- makefile.common.in.orig Fri Mar 22 10:48:17 2002 ++++ makefile.common.in Mon Apr 1 23:25:42 2002 @@ -38,7 +38,7 @@ CPP = @CPP@ # The flags should be adjusted based on the compiler, but we @@ -12,3 +9,12 @@ # Linker information PAL_LIB = rotor_pal +@@ -46,7 +46,7 @@ + LIB_SUFFIX = .so + PAL_LIB_FILE = $(LIB_PREFIX)$(PAL_LIB)$(LIB_SUFFIX) + ROTOR_LIBS = -l$(PAL_LIB) +-LDFLAGS = -L$(TARGETCOMPLUS) ++LDFLAGS = -L$(TARGETCOMPLUS) -R%%LD_RUNPATH%% + # This should come last in the list of parameters to gcc or ld + # because otherwise /usr/lib might be searched when it shouldn't + # be. diff -urN cli.orig/files/patch-rotorenv::bin::makefile.def cli/files/patch-rotorenv::bin::makefile.def --- cli.orig/files/patch-rotorenv::bin::makefile.def Sat Mar 30 16:26:30 2002 +++ cli/files/patch-rotorenv::bin::makefile.def Tue Apr 2 04:53:13 2002 @@ -1,9 +1,17 @@ - -$FreeBSD: ports/lang/cli/files/patch-rotorenv::bin::makefile.def,v 1.1 2002/03/30 07:26:30 sobomax Exp $ - ---- rotorenv/bin/makefile.def.orig Fri Mar 22 03:48:24 2002 -+++ rotorenv/bin/makefile.def Fri Mar 29 20:21:35 2002 -@@ -1428,7 +1428,7 @@ +--- rotorenv/bin/makefile.def.orig Fri Mar 22 10:48:24 2002 ++++ rotorenv/bin/makefile.def Tue Apr 2 01:12:30 2002 +@@ -142,6 +142,10 @@ + + !INCLUDE makefile.env + ++!ifdef PLATFORM_UNIX ++LINKER_FLAGS = -R%%LD_RUNPATH%% ++!endif ++ + # + # IDL/RDL/TDL build rules. + # +@@ -1428,7 +1432,7 @@ !ENDIF !ifdef PLATFORM_UNIX ---8<------8<------8<------8<------8<------8<------8<------8<------8<--- This problem worked out a solution with this patch. ---- *************************************************************** * This message is a thing by output of automatic translation. * * Therefore it will be for there to be a lot of funny parts. * * Please approve it. * *************************************************************** NINOMIYA(family name) Hideyuki(fast name) @ ehime japan mailto:nin@shikoku.ne.jp mailto:nin@Jp.FreeBSD.org PGP-Fingerprint:6C59 EC08 5B23 6490 44D0 7CD3 DA40 219F 7114 8553 PGP-Public-Key: http://user.shikoku.ne.jp/~nin/pgp/public-key.txt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message