ports/98006: Update port: lang/fpc2
Ales Katona
almindor at gmail.com
Sat May 27 10:50:31 UTC 2006
>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 at 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:
More information about the freebsd-ports-bugs
mailing list