devel/libtool15 unconditionally hardcodes autodetected textproc/gsed

Alexey Shuvaev shuvaev at physik.uni-wuerzburg.de
Tue Sep 9 21:30:27 UTC 2008


On Tue, Sep 09, 2008 at 06:11:44PM +0400, Dmitry Marakasov wrote:
> * Peter Pentchev (roam at ringlet.net) wrote:
> 
> > > This is definitely a bug, so better send-pr for this issue not to be
> > > lost while we're in freeze.
> > What I mean is the following scenario:
> > - libfoo uses libtool for its build
> > - libfoo depends on libbar which depends on GNU sed
> > - during libfoo's build, libbar is built, thus gsed is installed
> > - during libfoo's build, libtool detects gsed installed and "remembers" it
> No, as <previously built> libtool package will be used, which doesn't
> use gsed for sure.
> > - in libfoo's binary package, there is a shell script that uses "gsed",
> >   because libtool "knows" gsed is present on the system
> > - an unsuspecting user installs the libfoo binary package without previously
> >   building libbar
> > - the unsuspecting user gets a shell script that tries to run "gsed" and
> >   fails.
> ...
> > If libtool may put "gsed" into libfoo's binary package, this should be
> > fixed before the freeze.  If libtool only uses "gsed" during libfoo's
> > build, then it is not a critical problem.
> Neither seem to be the case for package building.
> 
> > Of course, if Dmitry is more familiar with libtool than I am, and he
> I am most likely not,
> > knows that libtool does not leave any such files, then I've just wasted
> > everybody's time with unneeded idle speculation, for which I apologize :)
> but my vision is that the problem will only show itself if you build
> libtool with gsed installed and then deinstall gsed. Thus, you'll
> end up with defunct libtool and all ports which have
> USE_AUTOTOOLS=libtool:15 will fail to build.
> 
I have encountered this with x11/libX11, FWIW.
The error was 'gsed not found' or something similar.

> Since this doesn't affect package builds, I don't this this is serious
> enough to fix duing freeze. But still to be fixed :)
> 
Yes, but the releases will be bundled with a 'broken' devel/libtool15 port.
Many [new] users could be using this port tree for a rather long time...

I have filed PR with the proposed patch:
http://www.freebsd.org/cgi/query-pr.cgi?pr=127256

Alexey.


More information about the freebsd-ports mailing list