[arch-general] makechrootpkg and multiple sources, a bug?

Magnus Therning magnus at therning.org
Sun Feb 20 12:48:28 EST 2011

On Sun, Feb 20, 2011 at 07:06:51PM +0200, Ionuț Bîru wrote:
> On 02/20/2011 07:04 PM, Magnus Therning wrote:
> >>>>The source array is modified based on files in the dir holding the
> >>>>PKGBUILD, like this:
> >>>>
> >>>>if [[ -f my.patch ]]; then
> >>>>sources=(${sources[@] my.patch)
> >>>>fi
> >>>>
> >I modified the little build script used by makechrootpkg
> >(/chrootbuild) to export SRCDEST, but that still didn't do it.  How
> >can I detect within a PKGBUILD that the build is invoked by
> >makechrootpkg in an elegant way?
> >
> >/M
> >
> i don't understand why you want to split like that the sources
> array. Just declare it once and get over it.
> sources=(link1 my.patch)
> makepkg -g >> PKGBUILD

There are good reasons for it.  I'm not talking about one PKGBUILD
here, but rather about 200, all of which are automatically generated.
Some of the 200 packages do need minor changes though, and earlier
that was done by manually modifying the output.  I'm now making
some changes to the transformer so that it can pull those changes in
via patches instead.  Using this type of modifications to the sources
array makes it easy to use an almost completely generic PKGBUILD.

Hopefully that explains why I'm pushing this.


Magnus Therning                      OpenPGP: 0xAB4DFBA4 
email: magnus at therning.org   jabber: magnus at therning.org
twitter: magthe               http://therning.org/magnus

I invented the term Object-Oriented, and I can tell you I did not have
C++ in mind.
     -- Alan Kay
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20110220/1eec739f/attachment.asc>

More information about the arch-general mailing list