From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Oct 18 15:40:09 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7EE3B1065693 for ; Mon, 18 Oct 2010 15:40:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 58FDC8FC1B for ; Mon, 18 Oct 2010 15:40:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o9IFe9o6014549 for ; Mon, 18 Oct 2010 15:40:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o9IFe9Xk014548; Mon, 18 Oct 2010 15:40:09 GMT (envelope-from gnats) Resent-Date: Mon, 18 Oct 2010 15:40:09 GMT Resent-Message-Id: <201010181540.o9IFe9Xk014548@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Anonymous Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B6B27106566B for ; Mon, 18 Oct 2010 15:36:33 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 3887D8FC20 for ; Mon, 18 Oct 2010 15:36:32 +0000 (UTC) Received: by ewy21 with SMTP id 21so763632ewy.13 for ; Mon, 18 Oct 2010 08:36:32 -0700 (PDT) Received: by 10.213.19.14 with SMTP id y14mr1025694eba.8.1287416183328; Mon, 18 Oct 2010 08:36:23 -0700 (PDT) Received: from localhost (tor1.digineo.de [62.141.53.224]) by mx.google.com with ESMTPS id q51sm8753087eeh.4.2010.10.18.08.36.17 (version=SSLv3 cipher=RC4-MD5); Mon, 18 Oct 2010 08:36:22 -0700 (PDT) Message-Id: <8662wzwm22.fsf@gmail.com> Date: Mon, 18 Oct 2010 19:35:49 +0400 From: Anonymous To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: ports/151539: [patch] devel/lua-alien: remove symlinks even if regression-test fails X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2010 15:40:09 -0000 >Number: 151539 >Category: ports >Synopsis: [patch] devel/lua-alien: remove symlinks even if regression-test fails >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 18 15:40:08 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Anonymous >Release: FreeBSD 9.0-CURRENT amd64 >Organization: >Environment: >Description: Following files should not be installed DATADIR/tests/alien DATADIR/tests/alien.lua http://pointyhat.freebsd.org/errorlogs/sparc64-errorlogs/e.7.20101015091133/lua51-alien-0.5.0.log Also, split regression-test into more fine-grained chunks. >How-To-Repeat: $ make regression-test # force it to fail $ make install deinstall ... ===> Deinstalling lua51-alien-0.5.0 pkg_delete: unable to completely remove directory 'DATADIR/tests' pkg_delete: unable to completely remove directory 'DATADIR' pkg_delete: couldn't entirely delete package (perhaps the packing list is incorrectly specified?) $ ls -1F DATADIR/tests/* DATADIR/tests/alien@ DATADIR/tests/alien.lua@ >Fix: --- a.diff begins here --- Index: devel/lua-alien/Makefile =================================================================== RCS file: /a/.cvsup/ports/devel/lua-alien/Makefile,v retrieving revision 1.4 diff -u -p -r1.4 Makefile --- devel/lua-alien/Makefile 22 Sep 2010 10:10:49 -0000 1.4 +++ devel/lua-alien/Makefile 18 Oct 2010 15:28:06 -0000 @@ -23,6 +23,7 @@ CFLAGS+= -I${LOCALBASE}/include -I${LUA_ -DBSD -fPIC #-fno-stack-protector LDFLAGS+= -L${LOCALBASE}/lib -L${LUA_LIBDIR} -llua -shared MAKE_ENV+= LIB_OPTION="${LDFLAGS}" LIB_EXT=".so" LUA="${LUA_CMD}" +TESTS_EXCLUDE= tests/alien tests/alien.lua # add lua prefix to directories .for p in data: docs:doc/ examples:examples/ @@ -51,7 +52,8 @@ do-install: .if !defined(NOPORTDATA) ${MKDIR} ${DATADIR} ${INSTALL_SCRIPT} ${WRKSRC}/src/constants ${DATADIR} - ${TAR} cf - -C${WRKSRC} tests | ${TAR} xof - -C${DATADIR} + ${TAR} cf - -C${WRKSRC} ${TESTS_EXCLUDE:S,^,--exclude ,} tests \ + | ${TAR} xof - -C${DATADIR} .endif .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} @@ -63,9 +65,8 @@ do-install: .endif regression-test: build - cd ${WRKSRC}/tests; \ - ${LN} -s ../src/alien* .; \ - ${LUA_CMD} test_alien.lua; \ - ${RM} alien alien.lua + ${LN} -fs ${TESTS_EXCLUDE:S,tests/,../src/,} ${WRKSRC}/tests + cd ${WRKSRC}/tests && ${LUA_CMD} test_alien.lua + ${RM} -f ${TESTS_EXCLUDE:S,^,${WRKSRC}/,} .include --- a.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: