[arch-general] [arch-dev-public] [PATCH] Do not refer to $startdir/{src, pkg} in PKGBUILDs

Andres P aepd87 at gmail.com
Tue Jun 8 20:38:21 EDT 2010


On Tue, Jun 8, 2010 at 8:03 PM,  <d at falconindy.com> wrote:
> On Tue, Jun 08, 2010 at 07:58:55PM -0430, Andres P wrote:
>> 2010/6/8 Allan McRae <allan at archlinux.org>:
>> > It is very rare that you should ever need to use $startdir in a PKGBUILD at
>> > all.
>>
>> I exclude config.h from dwm's PKGBUILD $source array and copy it from
>> $startdir during build().
>>
>> It's changed constantly so keeping it summed check is awkward, and I
>> don't want to loose the sumcheck for the rest of sources.
>>
>> Maybe $sources should have a per entry ! or @ prefix that disables sum
>> checks for that file.
>>
>> This could be extended to make one of the " !@" chars skip extraction,
>> since duplicating the filenames in $noextract is less practical.
>>
>> Andres P
>
> Rebuilding as 'makepkg -efi' means that checksums are skipped since
> you're asking makepkg to use what's already extracted in $srcdir
>
> d
>

That does not account for PKGBUILD updates, namely $pkgver changes.

bsdtar will overwrite config.h with the new extracted tar's contents

If makepkg were as fluid as /usr/share/mk in *BSD, this wouldn't be
such an issue. ;)

Andres P


More information about the arch-general mailing list