From owner-freebsd-ports@FreeBSD.ORG Sat Mar 14 11:41:31 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 C3106106564A for ; Sat, 14 Mar 2009 11:41:31 +0000 (UTC) (envelope-from mail@ozzmosis.com) Received: from smtp.mel.people.net.au (smtp.mel.people.net.au [218.214.17.98]) by mx1.freebsd.org (Postfix) with SMTP id 0828A8FC1F for ; Sat, 14 Mar 2009 11:41:30 +0000 (UTC) (envelope-from mail@ozzmosis.com) Received: (qmail 28183 invoked from network); 14 Mar 2009 11:41:24 -0000 Received: from unknown (HELO blizzard.dnsalias.org) (218.215.157.187) by smtp.mel.people.net.au with SMTP; 14 Mar 2009 11:41:24 -0000 Received: by blizzard.dnsalias.org (Postfix, from userid 1001) id 87A1017519; Sat, 14 Mar 2009 22:41:32 +1100 (EST) Date: Sat, 14 Mar 2009 22:41:32 +1100 From: andrew clarke To: freebsd-ports@freebsd.org Message-ID: <20090314114132.GA86511@ozzmosis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) Cc: Stuart Rackham , peter.schuller@infidyne.com Subject: 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: Sat, 14 Mar 2009 11:41:32 -0000 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 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