ports/150800: [patch] devel/lua-alien: depend on `build' for `regression-test'

Anonymous swell.k at gmail.com
Wed Sep 22 00:30:03 UTC 2010


>Number:         150800
>Category:       ports
>Synopsis:       [patch] devel/lua-alien: depend on `build' for `regression-test'
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 22 00:30:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Anonymous
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
>Description:
Looks like tinderbox doesn't expect test target to depend on `install'.
  http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.7.20100920084519/lua51-alien-0.5.0.log

While I think it's a tinderbox bug depending on `build' makes
`regression-test' work with previous installation of the port.
>How-To-Repeat:
>Fix:
--- a.diff begins here ---
Index: devel/lua-alien/Makefile
===================================================================
RCS file: /a/.cvsup/ports/devel/lua-alien/Makefile,v
retrieving revision 1.3
diff -u -p -r1.3 Makefile
--- devel/lua-alien/Makefile	18 Sep 2010 18:29:19 -0000	1.3
+++ devel/lua-alien/Makefile	22 Sep 2010 00:01:27 -0000
@@ -62,7 +62,10 @@ do-install:
 	${TAR} cf - -C${WRKSRC}/samples . | ${TAR} xof - -C${EXAMPLESDIR}
 .endif
 
-regression-test:	install
-	cd ${DATADIR}/tests && ${LUA_CMD} test_alien.lua
+regression-test:	build
+	cd ${WRKSRC}/tests; \
+	${LN} -s ../src/alien* .; \
+	${LUA_CMD} test_alien.lua; \
+	${RM} alien alien.lua
 
 .include <bsd.port.mk>
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list