From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Aug 29 18:20:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B054262A for ; Thu, 29 Aug 2013 18:20:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8E52C2E5D for ; Thu, 29 Aug 2013 18:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7TIK0Am085200 for ; Thu, 29 Aug 2013 18:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7TIK0SM085199; Thu, 29 Aug 2013 18:20:00 GMT (envelope-from gnats) Resent-Date: Thu, 29 Aug 2013 18:20:00 GMT Resent-Message-Id: <201308291820.r7TIK0SM085199@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, Paul Keusemann Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E37194DE for ; Thu, 29 Aug 2013 18:17:30 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CF3CB2E37 for ; Thu, 29 Aug 2013 18:17:30 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r7TIHUXt055054 for ; Thu, 29 Aug 2013 18:17:30 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r7TIHUqe055053; Thu, 29 Aug 2013 18:17:30 GMT (envelope-from nobody) Message-Id: <201308291817.r7TIHUqe055053@oldred.freebsd.org> Date: Thu, 29 Aug 2013 18:17:30 GMT From: Paul Keusemann To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/181658: The freebsd-doc-en port fails to build if the user is running a Korn shell. X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Aug 2013 18:20:00 -0000 >Number: 181658 >Category: ports >Synopsis: The freebsd-doc-en port fails to build if the user is running a Korn shell. >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: Thu Aug 29 18:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Paul Keusemann >Release: 8.4-RELEASE >Organization: >Environment: FreeBSD woodstock.keusemann.savage.mn.us 8.4-RELEASE FreeBSD 8.4-RELEASE #1 r251552M: Sun Jun 9 21:24:23 CDT 2013 toor@woodstock:/usr/obj/usr/src/sys/WOODSTOCK i386 >Description: The freebsd-doc-en port will not build if the user is logged in using a Korn shell. The build tries to use the value of the ENV environment variable as a shell to run the jade command on article.parsed.print.xml. I worked around this by doing an 'su - root' and re-running the make. Portupgrade output follows: ---> Building '/usr/ports/misc/freebsd-doc-en' ===> Cleaning for en-freebsd-doc-42489,1 ===> Found saved configuration for en-freebsd-doc-39016 => freebsd-doc-42489.tar.gz doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch http://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/blackend/freebsd-doc-42489.tar.gz ===> Fetching all distfiles required by en-freebsd-doc-42489,1 for building ===> Extracting for en-freebsd-doc-42489,1 => SHA256 Checksum OK for freebsd-doc-42489.tar.gz. ===> Patching for en-freebsd-doc-42489,1 ===> en-freebsd-doc-42489,1 depends on package: docproj>=1.17 - found ===> Configuring for en-freebsd-doc-42489,1 ===> Building for en-freebsd-doc-42489,1 /bin/cat /usr/ports/misc/freebsd-doc-en/pkg-plist.html-split /usr/ports/misc/freebsd-doc-en/pkg-plist.pdf /usr/ports/misc/freebsd-doc-en/pkg-plist.txt /usr/ports/misc/freebsd-doc-en/pkg-plist.html-common /usr/ports/misc/freebsd-doc-en/pkg-plist.extras /usr/ports/misc/freebsd-doc-en/pkg-plist.common > /usr/ports/misc/freebsd-doc-en/work/pkg-plist ===> en_US.ISO8859-1 (all) ===> en_US.ISO8859-1/articles (all) ===> en_US.ISO8859-1/articles/bsdl-gpl (all) /usr/bin/grep '^' article.xml > article.parsed.xml.tmp echo '' >> article.parsed.xml.tmp ==> Basic validation env XML_CATALOG_FILES="file:///usr/ports/misc/freebsd-doc-en/work/doc/en_US.ISO8859-1/articles/bsdl-gpl/catalog-cwd.xml file:///usr/ports/misc/freebsd-doc-en/work/doc/en_US.ISO8859-1/share/xml/catalog.xml file:///usr/ports/misc/freebsd-doc-en/work/doc/share/xml/catalog.xml file:///usr/ports/misc/freebsd-doc-en/work/doc/share/xml/catalog-common.xml file:///usr/local/share/xml/catalog" /usr/local/bin/xmllint --nonet --noent --valid --xinclude --dropdtd /usr/ports/misc/freebsd-doc-en/work/doc/en_US.ISO8859-1/articles/bsdl-gpl/article.xml | /usr/bin/grep -v '^' >> article.parsed.xml.tmp /bin/mv article.parsed.xml.tmp article.parsed.xml /usr/bin/sed 's|@@URL_RELPREFIX@@|http://www.FreeBSD.org|g' < article.parsed.xml > article.parsed.print.xml /usr/bin/sed -i '' 's|@@URL_RELPREFIX@@|../../../..|g' article.parsed.xml /bin/rm -f docbook.css /bin/cat /usr/ports/misc/freebsd-doc-en/work/doc/share/misc/docbook.css > docbook.css env XML_CATALOG_FILES="file:///usr/ports/misc/freebsd-doc-en/work/doc/en_US.ISO8859-1/articles/bsdl-gpl/catalog-cwd.xml file:///usr/ports/misc/freebsd-doc-en/work/doc/en_US.ISO8859-1/share/xml/catalog.xml file:///usr/ports/misc/freebsd-doc-en/work/doc/share/xml/catalog.xml file:///usr/ports/misc/freebsd-doc-en/work/doc/share/xml/catalog-common.xml file:///usr/local/share/xml/catalog" /usr/local/bin/xsltproc --xinclude --nonet /usr/ports/misc/freebsd-doc-en/work/doc/en_US.ISO8859-1/share/xsl/freebsd-xhtml-chunk.xsl article.parsed.xml Writing trademarks.html for legalnotice(trademarks) Writing history.html for sect1(history) Writing unix-license.html for sect1(unix-license) Writing current-bsdl.html for sect1(current-bsdl) Writing origins-gpl.html for sect1(origins-gpl) Writing origins-lgpl.html for sect1(origins-lgpl) Writing orphaning.html for sect1(orphaning) Writing license-cannot.html for sect1(license-cannot) Writing gpl-advantages.html for sect1(gpl-advantages) Writing bsd-advantages.html for sect1(bsd-advantages) Writing recommendations.html for sect1(recommendations) Writing conclusion.html for sect1(conclusion) Writing addenda.html for sect1(addenda) Writing index.html for article Writing HTML.manifest /root/.shrc SP_ENCODING=XML /usr/local/bin/jade -V tex-backend -ioutput.print -d /usr/ports/misc/freebsd-doc-en/work/doc/share/xml/default.dsl -ifreebsd.urls.absolute -V %generate-article-toc% -ijade.compat -w no-valid -D /usr/ports/misc/freebsd-doc-en/work/doc/en_US.ISO8859-1/articles/bsdl-gpl/../../../share/images/articles/bsdl-gpl -D /usr/obj/usr/ports/misc/freebsd-doc-en/work/doc/en_US.ISO8859-1/articles/bsdl-gpl -c /usr/ports/misc/freebsd-doc-en/work/doc/en_US.ISO8859-1/share/xml/catalog -c /usr/ports/misc/freebsd-doc-en/work/doc/share/xml/catalog -c /usr/local/share/sgml/docbook/dsssl/modular/catalog -c /usr/local/share/sgml/jade/catalog -t tex -o article.tex /usr/local/share/sgml/docbook/dsssl/modular/dtds/decls/xml.dcl article.parsed.print.xml /usr/bin/sed -i '' -e 's|{1}\\def\\ScaleY%|{0.5}\\def\\ScaleY%|g' -e 's|{1}\\def\\EntitySystemId%|{0.5}\\def\\EntitySystemId%|g' article.tex sed: article.tex: No such file or directory *** Error code 1 Stop in /usr/ports/misc/freebsd-doc-en/work/doc/en_US.ISO8859-1/articles/bsdl-gpl. *** Error code 1 Stop in /usr/ports/misc/freebsd-doc-en/work/doc/en_US.ISO8859-1/articles. *** Error code 1 Stop in /usr/ports/misc/freebsd-doc-en/work/doc/en_US.ISO8859-1. *** Error code 1 Stop in /usr/ports/misc/freebsd-doc-en/work/doc. *** Error code 1 Stop in /usr/ports/misc/freebsd-doc-en. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20130829-46666-1lrjlpj env UPGRADE_TOOL=portupgrade UPGRADE_PORT=en-freebsd-doc-42326,1 UPGRADE_PORT_VER=42326,1 make BATCH=yes ** Fix the problem and try again. >How-To-Repeat: Attempt to build the /usr/ports/misc/freebsd-doc-en port while logged in as a user with the Korn shell (ksh) as your shell. In addition, the ENV environment variable should be set to the path of a Korn shell .kshrc file. Note: In my case, ENV=/root/.shrc >Fix: I cannot find where it is supposed to be set but I presume the Make macro ENV is meant to contain the path the the env command. Unfortunately, this conflicts with the Korn shell ENV variable, so the easiest fix would be to change the name of the Make macro to something else, e.g.: ENV_CMD. >Release-Note: >Audit-Trail: >Unformatted: