From owner-freebsd-ports@FreeBSD.ORG Mon Mar 16 12:51:10 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F40821065675 for ; Mon, 16 Mar 2009 12:51:09 +0000 (UTC) (envelope-from blott@computing.dcu.ie) Received: from mailhost.computing.dcu.ie (mailhost.computing.dcu.ie [136.206.11.247]) by mx1.freebsd.org (Postfix) with ESMTP id 70F5C8FC21 for ; Mon, 16 Mar 2009 12:51:09 +0000 (UTC) (envelope-from blott@computing.dcu.ie) Received: from sblott-desktop.computing.dcu.ie (dhcp11143.computing.dcu.ie [136.206.11.143]) by mailhost.computing.dcu.ie (8.13.2/8.13.2) with ESMTP id n2GCZTxM013620; Mon, 16 Mar 2009 12:35:29 GMT Received: from sblott-desktop.computing.dcu.ie (localhost [127.0.0.1]) by sblott-desktop.computing.dcu.ie (8.14.3/8.14.3) with ESMTP id n2GCZOJW054836; Mon, 16 Mar 2009 12:35:24 GMT (envelope-from blott@sblott-desktop.computing.dcu.ie) Received: (from blott@localhost) by sblott-desktop.computing.dcu.ie (8.14.3/8.14.3/Submit) id n2GCZNW2054834; Mon, 16 Mar 2009 12:35:23 GMT (envelope-from blott) Date: Mon, 16 Mar 2009 12:35:23 +0000 From: Stephen Blott To: andrew clarke Message-ID: <20090316123523.GA54687@computing.dcu.ie> References: <20090314114132.GA86511@ozzmosis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090314114132.GA86511@ozzmosis.com> User-Agent: Mutt/1.5.19 (2009-01-05) Cc: Stuart Rackham , peter.schuller@infidyne.com, freebsd-ports@freebsd.org Subject: Re: textproc/asciidoc port with shells/bash dependency X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Mar 2009 12:51:10 -0000 On Sat, Mar 14, 2009 at 10:41:32PM +1100, andrew clarke wrote: > Hi, > > With the recent problems involving the FreeBSD port of bash-4.0 got me > curious as to why the bash shell was installed at all on my system, as > it is not a standard component of FreeBSD. It turns out the only > software on my system that requires bash is AsciiDoc, as a run > dependency. Further investigation seems to indicate that it is only > used by the a2x script as supplied with AsciiDoc. However on my > system, a2x fails anyway: > > $ uname -a > FreeBSD blizzard.phoenix 6.4-RELEASE-p1 FreeBSD 6.4-RELEASE-p1 #0: Sun > Dec 21 07:56:41 UTC 2008 > root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 > > $ pkg_info | grep asciidoc > asciidoc-8.3.5 A text document format for writing short documents and man > > $ a2x test.txt > readlink: illegal option -- f > usage: readlink [-n] [file ...] > a2x: failed: enhanced getopt(1) required I know this wasn't the point of your post, but a2x works on my 7.1 box: - install readlink and getopt from the ports - make sure /usr/local/bin is before /usr/bin in your PATH - also install dblatex from the ports Steve > > Assuming this isn't a fault with bash-4.0, and assuming a2x is also > broken on FreeBSD 7.x, a short-term fix would be to not install a2x to > /usr/local/bin/a2x, then the run dependency on bash could be removed. > > Longer-term, given that AsciiDoc is primarily written in Python, it > seems odd to me that a2x isn't written in Python as well, which would > obviously permanently remove the run dependency on bash. > > Thanks, > > Regards > Andrew > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" ---end quoted text---