Re: [pacman-dev] makepkg: package splitting
Am Dienstag, den 09.12.2008, 21:57 +1000 schrieb Allan McRae:
Marc - A. Dahlhaus [ Administration | Westermann GmbH ] wrote:
Am Montag, den 08.12.2008, 12:35 +1000 schrieb Allan McRae:
I have finished implementing the basics of package splitting in makepkg. Everything works as expected when just making packages and capturing logs but there is some small output issues that need tidying up and checking that other functionality work (e.g. repackaging is an issue....)
Hello Allan,
i've tested the script and found some bugs:
The sourcing of makepkg.conf is in a wrong location (far to late). If you display the usage via --help you get no PKGBUILD mentioned in usages output. If you specify another buildscript via -p you get that mentioned in usage but it gets overwritten by the contents of makepkg.conf when it gets sourced in later before the actual build is done.
Good catch.... I have no idea what caused that! Should not be herd to track down though.
If you give -c to makepkg the pkgdirs of the splitpackages don't get erased.
Someone is either running makepkg as root or without fakeroot... Anyway, thats an easy fix.
I'll tested that again and i forgot to change two of the DESTDIR locations to the new home of the pkgdirs... So the missing cleanup was actually a stupid user error...
But the actual build and logging went fine, thank you :)
Good to see the bits I tested actually working! Thanks for your help.
Allan
Marc - A. Dahlhaus [ Administration | Westermann GmbH ] wrote:
Am Dienstag, den 09.12.2008, 21:57 +1000 schrieb Allan McRae:
Marc - A. Dahlhaus [ Administration | Westermann GmbH ] wrote:
If you give -c to makepkg the pkgdirs of the splitpackages don't get erased.
Someone is either running makepkg as root or without fakeroot... Anyway, thats an easy fix.
I'll tested that again and i forgot to change two of the DESTDIR locations to the new home of the pkgdirs... So the missing cleanup was actually a stupid user error...
You should only be doing something like "make DESTDIR=$pkgdir install". Makepkg points $pkgdir in the right place for each split package. (I will get around to documenting all this at some stage) Allan
participants (2)
-
Allan McRae
-
Marc - A. Dahlhaus [ Administration | Westermann GmbH ]