FS#24610 - Remove extraneous files from git repo and clean autotools use.
Attached to Project:
Pacman
Opened by Nathan Phillip Brink (ohnobinki) - Tuesday, 07 June 2011, 02:41 GMT
Last edited by Allan McRae (Allan) - Friday, 14 December 2012, 04:05 GMT
Opened by Nathan Phillip Brink (ohnobinki) - Tuesday, 07 June 2011, 02:41 GMT
Last edited by Allan McRae (Allan) - Friday, 14 December 2012, 04:05 GMT
|
Details
Summary and Info:
There are a bunch of files currently committed directly into pacman's VCS which don't belong there, such as config.guess, config.sub, Makefile.in.in and m4 files from gettext, libcurl.m4, and libtool, etc. Having these extraneous files produces junk upon running `git diff', making looking for bugs in the buildsystem more annoying. Also, anyone cloning the VCS of a project should have the tools and packages installed to be able to do a fresh `autoreconf -vfi' in the clone -- so there is no need for these autogenerated/autocopied files to be shipped. Attached are two patches which do some such cleanup ready for `git am'. |
This task depends upon
Closed by Allan McRae (Allan)
Friday, 14 December 2012, 04:05 GMT
Reason for closing: Deferred
Additional comments about closing: We patch ltmain.sh to make --as-needed work - will implement once fixed upstream
Friday, 14 December 2012, 04:05 GMT
Reason for closing: Deferred
Additional comments about closing: We patch ltmain.sh to make --as-needed work - will implement once fixed upstream
2. What system are you running on so we can get a better idea of what we're looking at here? If I can run things in a VM that would be awesome.
3. echo "You need to install net-misc/curl to get libcurl.m4." is a bit odd to me, assuming every os has some magic net-misc/ package group. You need curl to get libcurl.m4, which should be obvious to most, so I'm not sure why this single library is getting called out.
Allan, I know you own the bible on autotools now so feel free to chip in- we have changed the way we do this several times and I've still yet to figure out what the correct answer is to including/not including these files.
While it's true that you _could_ rely on the target system to have these files on hand, you're then opening yourself up to differences in versioning that might cause a different breed of trouble for folks building from git. libtool and autohell is self contained in this manner, and we can confidently distribute a known good build system intact with the source. curl upstream even recommends distributing their m4 file with your source code.
http://projects.archlinux.org/users/allan/pacman.git/log/?h=autotools
I will be doing further work on all the autotools stuff before I think this should be merged.
2. Testing this on a system *without* some of these packages is essential- e.g. no gettext, no libcurl. I have the feeling it is going to fail spectacularly.