Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Mar 2009 12:35:23 +0000
From:      Stephen Blott <sblott@computing.dcu.ie>
To:        andrew clarke <mail@ozzmosis.com>
Cc:        Stuart Rackham <srackham@gmail.com>, peter.schuller@infidyne.com, freebsd-ports@freebsd.org
Subject:   Re: textproc/asciidoc port with shells/bash dependency
Message-ID:  <20090316123523.GA54687@computing.dcu.ie>
In-Reply-To: <20090314114132.GA86511@ozzmosis.com>
References:  <20090314114132.GA86511@ozzmosis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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---



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090316123523.GA54687>