From owner-svn-ports-branches@freebsd.org Thu Jun 8 18:20:17 2017 Return-Path: Delivered-To: svn-ports-branches@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8F572C31EF8; Thu, 8 Jun 2017 18:20:17 +0000 (UTC) (envelope-from zi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 696E66830C; Thu, 8 Jun 2017 18:20:17 +0000 (UTC) (envelope-from zi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v58IKGhg016479; Thu, 8 Jun 2017 18:20:16 GMT (envelope-from zi@FreeBSD.org) Received: (from zi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v58IKGtj016476; Thu, 8 Jun 2017 18:20:16 GMT (envelope-from zi@FreeBSD.org) Message-Id: <201706081820.v58IKGtj016476@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: zi set sender to zi@FreeBSD.org using -f From: Ryan Steinmetz Date: Thu, 8 Jun 2017 18:20:16 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r442947 - in branches/2017Q2/textproc/msort: . files X-SVN-Group: ports-branches MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-branches@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for all the branches of the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2017 18:20:17 -0000 Author: zi Date: Thu Jun 8 18:20:16 2017 New Revision: 442947 URL: https://svnweb.freebsd.org/changeset/ports/442947 Log: MFH: r441310 - Unbreak the build: the problem was caused by header file named `limits.h' present in the source tree which, with -I. option passed to the compiler, would sometimes be picked up instead of expected `/usr/include/limits.h'. Fix this by renaming local header file with a `${PORTNAME}_' prefix; - Convert CPPFLAGS/LDFLAGS/MAKE_ENV variables to USES+=localbase; - Rewrite condition expression in standard syntax to get rid of dependency on `shells/bash', and wrap an overly long line while I'm here. Approved by: ports-secteam (with hat) Added: branches/2017Q2/textproc/msort/files/patch-RegressionTests_RunTests.sh - copied unchanged from r441310, head/textproc/msort/files/patch-RegressionTests_RunTests.sh Modified: branches/2017Q2/textproc/msort/Makefile Directory Properties: branches/2017Q2/ (props changed) Modified: branches/2017Q2/textproc/msort/Makefile ============================================================================== --- branches/2017Q2/textproc/msort/Makefile Thu Jun 8 18:10:31 2017 (r442946) +++ branches/2017Q2/textproc/msort/Makefile Thu Jun 8 18:20:16 2017 (r442947) @@ -17,22 +17,23 @@ LIB_DEPENDS= libtre.so:textproc/libtre \ libuninum.so:devel/libuninum \ libutf8proc.so:textproc/utf8proc RUN_DEPENDS= iwidgets>=0:x11-toolkits/iwidgets -TEST_DEPENDS= ${LOCALBASE}/bin/bash:shells/bash BROKEN_aarch64= Fails to link: missing sbrk +USES= gettext localbase tk:wrapper,run CONFIGURE_ENV= ac_cv_lib_tre_regwcomp=yes -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -MAKE_ENV+= INCLUDES="-I${LOCALBASE}/include" GNU_CONFIGURE= yes -USES= gettext tk:wrapper,run TEST_TARGET= test PLIST_FILES= bin/msg bin/msort man/man1/msort.1.gz post-patch: - @${REINPLACE_CMD} -e "s|bash|${LOCALBASE}/bin/bash|g" ${WRKSRC}/RegressionTests/Makefile - @${REINPLACE_CMD} -e "s|msort|../&|g" ${WRKSRC}/RegressionTests/RunTests.sh \ + @${MV} ${WRKSRC}/limits.h ${WRKSRC}/${PORTNAME}_limits.h + @${REINPLACE_CMD} -e 's,limits\.h,${PORTNAME}_&,' \ + ${WRKSRC}/Makefile.in ${WRKSRC}/info.c \ + ${WRKSRC}/input.c ${WRKSRC}/msort.c + @${REINPLACE_CMD} -e 's|bash|sh|' ${WRKSRC}/RegressionTests/Makefile + @${REINPLACE_CMD} -e 's|msort|../&|' \ + ${WRKSRC}/RegressionTests/RunTests.sh .include Copied: branches/2017Q2/textproc/msort/files/patch-RegressionTests_RunTests.sh (from r441310, head/textproc/msort/files/patch-RegressionTests_RunTests.sh) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2017Q2/textproc/msort/files/patch-RegressionTests_RunTests.sh Thu Jun 8 18:20:16 2017 (r442947, copy of r441310, head/textproc/msort/files/patch-RegressionTests_RunTests.sh) @@ -0,0 +1,11 @@ +--- RegressionTests/RunTests.sh.orig 2009-08-05 03:09:24 UTC ++++ RegressionTests/RunTests.sh +@@ -54,7 +54,7 @@ msort -j -q -l -w -c n -Q < CheckOnlyTes + rstat2=$? + cmp -s CheckOnlyTest01B.result CheckOnlyTest01.norm + cstat2=$? +-if [[($rstat1 == 0) && ($cstat1 == 0) && ($cstat2 == 0) && ($rstat2 > 0)]]; ++if [ $rstat1 -eq 0 -a $cstat1 -eq 0 -a $cstat2 -eq 0 -a $rstat2 -gt 0 ]; + then echo "PASSED" >> TestResults; + else echo $'\x1b[1m\x1b[31mFAILED\x1b[0m' >> TestResults; + fi