From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jul 23 16:57:52 2009 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC3A4106564A; Thu, 23 Jul 2009 16:57:52 +0000 (UTC) (envelope-from peter.schuller@infidyne.com) Received: from hyperion.scode.org (cl-1361.ams-04.nl.sixxs.net [IPv6:2001:960:2:550::2]) by mx1.freebsd.org (Postfix) with ESMTP id 6F1B98FC1C; Thu, 23 Jul 2009 16:57:52 +0000 (UTC) (envelope-from peter.schuller@infidyne.com) Received: from hyperion.scode.org (hyperion.scode.org [85.17.42.115]) by hyperion.scode.org (Postfix) with ESMTPS id D658823C472; Thu, 23 Jul 2009 18:57:50 +0200 (CEST) Date: Thu, 23 Jul 2009 18:57:49 +0200 From: Peter Schuller To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, baptiste.daroussin@gmail.com Message-ID: <20090723165748.GA56298@hyperion.scode.org> References: <20090720202817.990213ABBA7@prometheus.scode.org> <200907202030.n6KKU41w040198@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4SFOXa2GPu3tIq4H" Content-Disposition: inline In-Reply-To: <200907202030.n6KKU41w040198@freefall.freebsd.org> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Subject: Re: ports/136940: [MAINTAINER] textproc/asciidoc: use realpath instead of GNU readlink 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: Thu, 23 Jul 2009 16:57:53 -0000 --4SFOXa2GPu3tIq4H Content-Type: multipart/mixed; boundary="jRHKVT23PllUwdXP" Content-Disposition: inline --jRHKVT23PllUwdXP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Turns out there are multiple references to readlink -f. The attached updated patch should be complete. Also, although this is unrelated to readlink, more patching was needed because it depends on a GNU:ish getopt. The attached patch: (1) Replaces all readlinke -f references. (2) Makes a2x use /usr/local/bin/getopt. (3) Adds misc/getopt as a run dependency. Please commit that instead of the original patch. --=20 / Peter Schuller PGP userID: 0xE9758B7D or 'Peter Schuller ' Key retrieval: Send an E-Mail to getpgpkey@scode.org E-Mail: peter.schuller@infidyne.com Web: http://www.scode.org --jRHKVT23PllUwdXP Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="patch-asciidoc_a2x.diff" Content-Transfer-Encoding: quoted-printable =3D=3D=3D> Generating patch =3D=3D=3D> Viewing diff with more diff -ruN --exclude=3DCVS /usr/ports/textproc/asciidoc.orig/Makefile /usr/p= orts/textproc/asciidoc/Makefile --- /usr/ports/textproc/asciidoc.orig/Makefile 2009-07-06 00:24:18.00000000= 0 +0200 +++ /usr/ports/textproc/asciidoc/Makefile 2009-07-23 18:55:34.317635427 +02= 00 @@ -7,6 +7,7 @@ =20 PORTNAME=3D asciidoc PORTVERSION=3D 8.4.5 +PORTREVISION=3D 1 CATEGORIES=3D textproc MASTER_SITES=3D http://www.methods.co.nz/asciidoc/ \ SF @@ -14,7 +15,8 @@ MAINTAINER=3D peter.schuller@infidyne.com COMMENT=3D A text document format for writing short documents and man pages =20 -RUN_DEPENDS=3D bash:${PORTSDIR}/shells/bash +RUN_DEPENDS+=3D bash:${PORTSDIR}/shells/bash \ + getopt>=3D0:${PORTSDIR}/misc/getopt =20 USE_PYTHON=3D 2.4+ USE_GMAKE=3D yes diff -ruN --exclude=3DCVS /usr/ports/textproc/asciidoc.orig/files/patch-a2x= /usr/ports/textproc/asciidoc/files/patch-a2x --- /usr/ports/textproc/asciidoc.orig/files/patch-a2x 1970-01-01 01:00:00.0= 00000000 +0100 +++ /usr/ports/textproc/asciidoc/files/patch-a2x 2009-07-23 18:53:36.150171= 883 +0200 @@ -0,0 +1,61 @@ +--- a2x.orig 2009-07-23 18:51:01.485493322 +0200 ++++ a2x 2009-07-23 18:52:01.107211768 +0200 +@@ -9,11 +9,12 @@ +=20 + VERSION=3D1.0.0 + BASENAME=3D$(basename "$0") ++GETOPT=3D/usr/local/bin/getopt + REALNAME=3D"$0" + if [ ! -e "$REALNAME" ]; then + REALNAME=3D$(which "$REALNAME") + fi +-REALNAME=3D"$(readlink -f "$REALNAME")" ++REALNAME=3D"$(/bin/realpath "$REALNAME")" + CONF_DIR=3D/etc/asciidoc + # FOP executable is named fop on some systems. + FOP_COMMAND=3D"fop.sh" +@@ -244,14 +245,14 @@ + if [ -z "$*" ]; then + help; exit 0 + fi +- require "getopt" +- getopt -T >/dev/null ++ require "$GETOPT" ++ $GETOPT -T >/dev/null + if [ $? -ne 4 ]; then + quit "enhanced getopt(1) required" + fi + short_opts=3D"a:d:D:f:hLnsv" + long_opts=3D"attribute:,asciidoc-opts:,destination-dir:,doctype:,help= ,icons-dir:,dry-run,format:,copy,icons,skip-asciidoc,stylesheet:,unsafe,ver= sion,verbose,xsltproc-opts:,dblatex-opts:,fop,fop-opts:,no-xmllint" +- args=3D$(getopt -o $short_opts -l $long_opts -n $BASENAME -- "$@" 2>/= dev/null) ++ args=3D$($GETOPT -o $short_opts -l $long_opts -n $BASENAME -- "$@" 2>= /dev/null) + if [ $? -ne 0 ]; then + quit "invalid command options, run: a2x --help" + fi +@@ -494,7 +495,7 @@ + quit "file not found: $xsl" + fi + to_docbook +- xml=3D$(readlink -f "$SRC_DIR/$SRC_NAME.xml") ++ xml=3D$(/bin/realpath "$SRC_DIR/$SRC_NAME.xml") + html=3D"$SRC_NAME.html" + copy_stylesheet_and_icons "$DESTINATION_DIR" + execute_command_2 "cd \"$DESTINATION_DIR\"" +@@ -527,7 +528,7 @@ + quit "file not found: $xsl" + fi + to_docbook +- xml=3D$(readlink -f "$SRC_DIR/$SRC_NAME.xml") ++ xml=3D$(/bin/realpath "$SRC_DIR/$SRC_NAME.xml") + if [ ! -d "$chunkdir" ]; then + execute_command_2 "mkdir \"$chunkdir\"" + fi +@@ -549,7 +550,7 @@ + quit "file not found: $xsl" + fi + to_docbook "-d manpage" +- xml=3D$(readlink -f "$SRC_DIR/$SRC_NAME.xml") ++ xml=3D$(/bin/realpath "$SRC_DIR/$SRC_NAME.xml") + execute_command_2 "cd \"$DESTINATION_DIR\"" + execute_command_2 "xsltproc $XSLTPROC_OPTS --nonet \ + \"$xsl\" \"$xml\"" =3D=3D=3D> Done --jRHKVT23PllUwdXP-- --4SFOXa2GPu3tIq4H Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) iEYEARECAAYFAkpolowACgkQDNor2+l1i30q4ACfUAjgEigUR5VJh2ZHq1f1F8Wo itsAoLTnJOHYr/IJBtSp6475zblIe+gr =TSLi -----END PGP SIGNATURE----- --4SFOXa2GPu3tIq4H--