Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 May 2006 10:43:47 GMT
From:      Ales Katona <almindor@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/98006: Update port: lang/fpc2
Message-ID:  <200605271043.k4RAhlCS007130@www.freebsd.org>
Resent-Message-ID: <200605271050.k4RAoLLK031159@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         98006
>Category:       ports
>Synopsis:       Update port: lang/fpc2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 27 10:50:20 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Ales Katona
>Release:        6.1-RELEASE
>Organization:
>Environment:
FreeBSD SHODAN 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 14 22:38:06 CEST 2006     root@SHODAN:/usr/src/sys/i386/compile/SHODAN  i386

>Description:
This patch updated lang/fpc2 port.

It changes the following:

1. removes compat5x dependency (not required, fpc is static)
2. Adds -Xf compiler switch as default to fpc.cfg on FreeBSD 5.x+ so threads can be debugged via gdb (and other smaller.. fixes)
>How-To-Repeat:

>Fix:
diff -ur fpc2-old/Makefile fpc2/Makefile
--- fpc2-old/Makefile	Sat May 27 11:44:15 2006
+++ fpc2/Makefile	Sat May 27 12:28:29 2006
@@ -61,9 +61,9 @@
 MAN5=	fpc.cfg.5 fpcmake.5 ptop.cfg.5
 
 # only need misc/compat4x if using the pre-built ppc386
-.if ${OSVERSION} >= 500000
-LIB_DEPENDS+=	c.5:${PORTSDIR}/misc/compat5x
-.endif
+#.if ${OSVERSION} >= 500000
+#LIB_DEPENDS+=	c.5:${PORTSDIR}/misc/compat5x
+#.endif
 
 # Build units list
 UNITS+=	bfd
@@ -153,5 +153,9 @@
 	if [ -e "${PREFIX}/bin/ppc386" ]; then ${RM} -f "${PREFIX}/bin/ppc386"; fi
 	${LN} -s "${PREFIX}/lib/fpc/${PORTVERSION}/ppc386" "${PREFIX}/bin"
 	${SH} "${PREFIX}/lib/fpc/${PORTVERSION}/samplecfg" "${PREFIX}/lib/fpc/${PORTVERSION}" "${PREFIX}/etc"
+.if ${OSVERSION} >= 500000
+	echo "# appended by port" >> "${PREFIX}/etc/fpc.cfg"
+	echo "-Xf" >> "${PREFIX}/etc/fpc.cfg"
+.endif
 
 .include <bsd.port.post.mk>
diff -ur fpc2-old/pkg-install fpc2/pkg-install
--- fpc2-old/pkg-install	Sat May 27 11:44:15 2006
+++ fpc2/pkg-install	Sat May 27 12:31:05 2006
@@ -14,4 +14,9 @@
     fi
     ${LN} -s "${PKGPREFIX}/lib/fpc/${PORTVERSION}/ppc386" "${PKG_PREFIX}/bin"
     ${SH} "${PKG_PREFIX}/lib/fpc/${PORTVERSION}/samplecfg" "${PKG_PREFIX}/lib/fpc/${PORTVERSION}" "${PKG_PREFIX}/etc"
+    if [ `uname -r | cut -c 1` -gt 4 ]
+    then
+	echo "# appended by package" >> "${PKG_PREFIX}/etc/fpc.cfg"
+	echo "-Xf" >> "${PKG_PREFIX}/etc/fpc.cfg"
+    fi
 fi

>Release-Note:
>Audit-Trail:
>Unformatted:



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