GNOME Bugzilla – Bug 720285
bootstrap: get libtool as .tar.gz, not .tar.xz
Last modified: 2013-12-16 21:36:22 UTC
On Mac OS, we have none of libtool automake or xz in the base system. xz depends on automake and automake depends on libtool, so we need to download libtool as a .tar.gz to break the cycle.
Created attachment 264008 [details] [review] bootstrap: get libtool as .tar.gz, not .tar.xz
Oh... and http is always nicer than ftp, if we can.
Created attachment 264009 [details] [review] bootstrap: get autotools as .tar.gz, not .tar.xz On Mac OS, we have none of libtool automake or xz in the base system. xz depends on automake and automake depends on libtool, so we need to download libtool and automake as .tar.gz to break the cycle. Also: use http instead of ftp, as it's more reliable.
xz doesn't depend on anything, it's being built from a tarball and so already has a configure script. Just make it the first package and you can use xz for everything else. This is what I do in Gtk-OSX: https://git.gnome.org/browse/gtk-osx/tree/modulesets-stable/bootstrap.modules
By default jhbuild autogens tarballs. I don't agree with it doing that, but this has been discussed before...
So there is autogen-sh="configure" as an attribute on <autotools/>. Adding this for xz might be good enough. We'd have to rework the order of the deps in the bootstrap module to take that into account, though.
(In reply to comment #6) > So there is autogen-sh="configure" as an attribute on <autotools/>. Adding > this for xz might be good enough. We'd have to rework the order of the deps in > the bootstrap module to take that into account, though. There is indeed, and if you'd followed the link you'd have seen that I do that in gtk-osx's bootstrap. At some point GNU may quit shipping bz2s just like we have and you'll have to build xz first anyway. Might as well start now.
Review of attachment 264009 [details] [review]: Hmmm. Can't we also require the builder to install xz from ports first? This patch should be harmless for now, but I suspect long term GNU is going to stop publishing the .gz versions, so it'll only be a short term fix. Anyways fine to commit for now.
Attachment 264009 [details] pushed as 291f3bc - bootstrap: get autotools as .tar.gz, not .tar.xz This is for the benefit of Mac OS, which doesn't have an official ports system. I'd rather sidestep the whole brew vs. macports vs. fink debate if at all possible...