ports/131185: lang/gcc43: add regression-test target

Pedro F. Giffuni giffunip at tutopia.com
Sat Jan 31 03:00:18 UTC 2009

>Number:         131185
>Category:       ports
>Synopsis:       lang/gcc43: add regression-test target
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 31 03:00:17 UTC 2009
>Originator:     Pedro F. Giffuni
>Release:        7.1-RELEASE
%uname -a
FreeBSD kakumen.cable.net.co 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan  1 08:58:24 UTC 2009     root at driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

It now makes sense to have checks to gcc43 done in the package building cluster:

- Fortran ports (114?) now depend on lang/gcc43.
- Since gcc43 is not part of the base system we are doing less checks on these newer versions of gcc by default.

This simple patch adds the "regression-test" target to early detect bugs and have the packages checked on different platforms.

diff -ruN gcc43.orig/Makefile gcc43/Makefile
--- gcc43.orig/Makefile	2009-01-30 20:56:32.000000000 -0500
+++ gcc43/Makefile	2009-01-30 21:22:54.000000000 -0500
@@ -25,6 +25,10 @@
 LIB_DEPENDS=	gmp.7:${PORTSDIR}/math/libgmp4 \
+.if defined(PACKAGE_BUILDING) || defined(MAINTAINER_MODE)
+BUILD_DEPENDS=	runtest:${PORTSDIR}/misc/dejagnu
 SUFFIX=		43
 NOT_FOR_ARCHS=	alpha ia64
@@ -160,7 +164,7 @@
 	@${ECHO_MSG} "if you have not performed this build on -STABLE or -CURRENT."
 	@${ECHO_MSG} "This assumes that you have the dejagnu port installed."
-check: build
+regression-test check: build
 	cd ${WRKSRC}; export RUNTESTFLAGS='--target_board ''unix{-pthread}'''; ${GMAKE} -sk check


More information about the freebsd-ports-bugs mailing list