ports/126935: [PATCH] archivers/lzo2: fix build for users not using /bin/sh as root's shell
Sunpoet Po-Chuan Hsieh
sunpoet at sunpoet.net
Fri Aug 29 08:10:04 UTC 2008
>Number: 126935
>Category: ports
>Synopsis: [PATCH] archivers/lzo2: fix build for users not using /bin/sh as root's shell
>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: Fri Aug 29 08:10:03 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Sunpoet Po-Chuan Hsieh
>Release: FreeBSD 7.0-STABLE amd64
>Organization:
SUNPOET.net
>Environment:
System: FreeBSD bonjour.sunpoet.net 7.0-STABLE FreeBSD 7.0-STABLE #10: Fri Aug 1 11:36:08 CST 2008 root at bonjour.sunpoet.net:/usr/obj/usr/src/sys/bonjour amd64
>Description:
The newly-added -x arguemnt is for sh.
Instead of $SHELL, use $SH to call /bin/sh explicitly.
It fixes build for users not using /bin/sh as root's shell.
For me, I use /bin/tcsh as root's shell.
===> Running self-tests for lzo2-2.03_2 (can take a few minutes, without output)
cd /usr/ports/works/usr/ports/archivers/lzo2/work/lzo-2.03 && make test SHELL="/bin/tcsh -x"
make all-recursive
Making all in include
Making all in lzo
Making all in src
Making all in lzotest
Making all in examples
Making all in tests
Making all in minilzo
./lzotest/lzotest -mavail -n10 -q ./COPYING
/bin/tcsh -x -e ./util/check.sh .
set -e
set: Variable name must begin with a letter.
*** Error code 1
Stop in /usr/ports/works/usr/ports/archivers/lzo2/work/lzo-2.03.
*** Error code 1
Stop in /usr/ports/archivers/lzo2.
>How-To-Repeat:
>Fix:
--- /usr/ports/archivers/lzo2/Makefile.orig 2008-08-29 13:52:49.176177000 +0800
+++ /usr/ports/archivers/lzo2/Makefile 2008-08-29 15:50:15.774828146 +0800
@@ -25,7 +25,7 @@
post-build:
@${ECHO_MSG} "===> Running self-tests for ${PKGNAME} (can take a few minutes, without output)"
- cd ${WRKSRC} && ${MAKE} test SHELL="${SHELL} -x"
+ cd ${WRKSRC} && ${MAKE} test SHELL="${SH} -x"
post-install:
.if !defined(NOPORTDOCS)
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list