Eric Bélanger wrote:
On Sun, Aug 9, 2009 at 10:08 PM, Allan McRae<[email protected]> wrote:
Eric Bélanger wrote:
On Fri, Aug 7, 2009 at 2:19 AM, Eric Bélanger<[email protected]>
wrote:

Hi,

Here (inline and attached) are a couple of patches for makechrootpkg.


Here's a second patch.  It fixes the copying of the package from the
chroot when the pkgver or pkgrel are different (e.g. device-mapper &
lvm2) :

Be careful there.... man PKGBUILD:

All options and directives for the split packages default to the global
values given within the PKGBUILD. However, some of these can be
overridden within each split package’s packaging function. The
following variables can be overridden: pkgdesc, license, groups,
depends, optdepends, provides, conflicts, replaces, backup, options and
install.

So overriding pkgver and pkgrel may not work as expected.

Allan


Thanks for the warning, I wasn't aware about that.  From the package's
name and the .PKGINFO it seems to work, at least for different pkgver.
However, I haven't tested the packages yet.

My suspicion is that it will work when the package with the different pkgver/pkgrel is last. makepkg just does not revert those variables after exiting the package function.
Are there other use cases like this?  That functionality could be added...

Allan



Reply via email to