[pacman-dev] [PATCH] Create split package dirs first

Emil Renner Berthing pacman at esmil.dk
Wed Jun 20 09:19:58 EDT 2012


On 20 June 2012 14:58, Allan McRae <allan at archlinux.org> wrote:
> On 20/06/12 22:07, Emil Renner Berthing wrote:
>> Hi,
>>
>> When creating split packages I always wished one could just do make
>> install in one of the package functions and then directly move the
>> files belonging to other packages off to their respective pkgdirs.
>
>
> To do this you make a big assumption....  The only guarantee makepkg has
> about folder locations is that the sources will be found in $srcdir and
> that $pkgdir will point at the directory containing the package files
> during its package function.  So how are you going to move the files
> from one package directory to another one in an unknown location?  The
> directory layout has changed before and possibly will again
> (particularly when splitting debug symbols to their own package happens...).

Yes, this only works if you can trust all the pkgdirs are created as
subdirs of the same directory (as they are now).
I had another approach lined up if you didn't like this assumption,
but I thought I'd start with the least invasive version ;)

> So instead, lets deal with this properly.  I mentioned this recently on
> the mailing list but did not go into details.  So here goes an example
> PKGBUILD snippet:

[...]

Cool, this is very much what I had imagined only it goes even further.
I like it. Thumbs up from here.

/Emil


More information about the pacman-dev mailing list