Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Jun 2015 21:30:15 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r388686 - in head/lang/modula3: . files
Message-ID:  <201506062130.t56LUF55083786@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Sat Jun  6 21:30:14 2015
New Revision: 388686
URL: https://svnweb.freebsd.org/changeset/ports/388686

Log:
  lang/modula3: Enable some the pkg programs
  
  A few of the pkg programs were made unexecutable -- they didn't work
  anyway because the rtld couldn't find the libraries.  By relocating
  them to cm3/bin and using symlinks instead fixes the issues.

Modified:
  head/lang/modula3/Makefile
  head/lang/modula3/files/patch-m3-sys_cminstall_src_config-no-install_FreeBSD.common
  head/lang/modula3/pkg-plist

Modified: head/lang/modula3/Makefile
==============================================================================
--- head/lang/modula3/Makefile	Sat Jun  6 20:37:35 2015	(r388685)
+++ head/lang/modula3/Makefile	Sat Jun  6 21:30:14 2015	(r388686)
@@ -3,6 +3,7 @@
 
 PORTNAME=	modula3
 PORTVERSION=	5.10.0
+PORTREVISION=	1
 CATEGORIES=	lang
 MASTER_SITES=	http://downloads.dragonlace.net/m3/:boot
 DISTFILES=	${SRCDISTFILE} ${BOOTDIST}
@@ -39,8 +40,15 @@ MAKE_ENV=	CM3_DEBUG=yes \
 		M3_PORTABLE_RUN_PATH=yes
 INTERMED=	${WRKDIR}/intermediate
 BOOTCM3=	CM3="${WRKDIR}/bootstrap/bin/cm3"
-STRIPPKG=	m3back cm3 libdump cmpfp formsview vorun PklFonts dummy test
 PORTDOCS=	www license
+STRIPPKG=	m3staloneback/m3back \
+		libdump/libdump \
+		cmpfp/cmpfp \
+		formsview/formsview \
+		vorun/vorun \
+		pkl-fonts/PklFonts \
+		hack/dummy \
+		test/test
 
 .include <bsd.port.pre.mk>
 
@@ -102,16 +110,21 @@ do-install:
 	${MV} ${STAGEDIR}${PREFIX}/cm3/man ${STAGEDIR}${PREFIX}/
 	${MV} ${STAGEDIR}${PREFIX}/cm3/www ${STAGEDIR}${DOCSDIR}/
 	${MV} ${STAGEDIR}${PREFIX}/cm3/license ${STAGEDIR}${DOCSDIR}/
-	${FIND} ${STAGEDIR}${PREFIX}/cm3/pkg -type f -perm +111 \
-		-not -name cm3 | ${XARGS} ${CHMOD} -x
+	${CHMOD} -x ${STAGEDIR}${PREFIX}/cm3/pkg/m3back/src/M3C.i3 \
+		${STAGEDIR}${PREFIX}/cm3/pkg/m3core/src/C/Common/Csetjmp.i3
 	(cd ${STAGEDIR}${PREFIX}/cm3/bin && ${FIND} * -type f -perm +111 | \
 		${SED} -E '/^(obliq|obliqsrv|recordheap)$$/d' | \
 		${XARGS} ${STRIP_CMD})
 	${FIND} ${STAGEDIR}${PREFIX}/cm3/lib -type f -perm +111 | \
 		${XARGS} ${STRIP_CMD}
 .for PACKAGE in ${STRIPPKG}
-	${STRIP_CMD} ${STAGEDIR}${PREFIX}/cm3/pkg/*/${M3TARGET}/${PACKAGE}
+	(cd ${STAGEDIR}${PREFIX}/cm3/pkg/${PACKAGE:H}/${M3TARGET} && \
+		${STRIP_CMD} ${PACKAGE:T} && \
+		${MV} ${PACKAGE:T} ../../../bin/ && \
+		${LN} -s ../../../bin/${PACKAGE:T} .)
 .endfor
+	(cd ${STAGEDIR}${PREFIX}/cm3/pkg/cm3/${M3TARGET} && \
+		${RM} cm3 && ${LN} -s ../../../bin/cm3 .)
 
 new-bootstrap:
 	@${RM} -rf ${NEWBOOTDIR}

Modified: head/lang/modula3/files/patch-m3-sys_cminstall_src_config-no-install_FreeBSD.common
==============================================================================
--- head/lang/modula3/files/patch-m3-sys_cminstall_src_config-no-install_FreeBSD.common	Sat Jun  6 20:37:35 2015	(r388685)
+++ head/lang/modula3/files/patch-m3-sys_cminstall_src_config-no-install_FreeBSD.common	Sat Jun  6 21:30:14 2015	(r388686)
@@ -1,6 +1,6 @@
 --- m3-sys/cminstall/src/config-no-install/FreeBSD.common.orig	2015-06-02 07:41:14 UTC
 +++ m3-sys/cminstall/src/config-no-install/FreeBSD.common
-@@ -8,32 +8,12 @@ SYSTEM_LIBS{"ODBC"} = [ "-Wl,-R/usr/loca
+@@ -8,32 +8,11 @@ SYSTEM_LIBS{"ODBC"} = [ "-Wl,-R/usr/loca
  SYSTEM_LIBS{"POSTGRES95"} = [ "-Wl,-R/usr/local/lib", "-L/usr/local/lib", "-lpq" ]
  SYSTEM_LIBS{"X11"} = ["-Wl,-R/usr/local/lib", "-L/usr/local/lib", SYSTEM_LIBS{"X11"}]
  
@@ -36,7 +36,6 @@
 +  & " -Wl,-z,origin"
 +  & " -Bsymbolic"
 +  & " -Wl,--fatal-warnings"
-+  & " -Wl,-rpath,\\$ORIGIN"
 +  & " -Wl,-rpath,\\$ORIGIN/../lib"
  
  include("gnuld.common")

Modified: head/lang/modula3/pkg-plist
==============================================================================
--- head/lang/modula3/pkg-plist	Sat Jun  6 20:37:35 2015	(r388685)
+++ head/lang/modula3/pkg-plist	Sat Jun  6 21:30:14 2015	(r388686)
@@ -4,6 +4,7 @@
 %%B%%/DeckScape
 %%B%%/Fours
 %%B%%/Juno
+%%B%%/PklFonts
 %%B%%/Proxy
 %%B%%/RehearseCode
 %%B%%/WebScape
@@ -11,6 +12,7 @@
 %%B%%/cm3.cfg
 %%B%%/cm3cg
 %%B%%/cm3ide
+%%B%%/cmpfp
 %%B%%/cmpdir
 %%B%%/columns
 %%B%%/config/ALPHA32_VMS
@@ -91,15 +93,19 @@
 %%B%%/cvsup
 %%B%%/cvsupd
 %%B%%/dirfp
+%%B%%/dummy
 %%B%%/fisheye
 %%B%%/fix_nl
 %%B%%/formsedit
+%%B%%/formsview
 %%B%%/kemacs
 %%B%%/kext
 %%B%%/kgv
 %%B%%/klex
 %%B%%/ktok
 %%B%%/kyacc
+%%B%%/libdump
+%%B%%/m3back
 %%B%%/m3browser
 %%B%%/m3browserhack
 %%B%%/m3bundle
@@ -137,10 +143,12 @@
 %%B%%/solitaire
 %%B%%/stablegen
 %%B%%/stubgen
+%%B%%/test
 %%B%%/tetris
 %%B%%/visobliq
 %%B%%/vocgi
 %%B%%/voquery
+%%B%%/vorun
 %%B%%/webcat
 %%L%%/libBitVector.a
 %%L%%/libBitVector.so



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506062130.t56LUF55083786>