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

Andres P aepd87 at gmail.com
Tue Jun 8 23:55:26 EDT 2010


On Tue, Jun 8, 2010 at 11:02 PM, Allan McRae <allan at archlinux.org> wrote:
> On 09/06/10 10:38, Andres P wrote:
>>
>> If makepkg were as fluid as /usr/share/mk in *BSD, this wouldn't be
>> such an issue. ;)
>
> I have no idea what /usr/share/mk does in this regards so you will need to
> explain more.
>

In *bsd, make sources from /usr/share/mk for packages in core/base,
and in /usr/share/pkgsrc/mk (in netbsd; freebsd and obsd use
..ports/{Mk,infastructure}). This effectively couples make timestamp
based builds with a nice library to handle all types of states.

They have different identifiers and directories for distfiles,
patches, and src files that directly reside in the ports db. The
latter being the equivalent for source=() files in arch that get
copied from $startdir. Their Makefiles are fully reentrant if you
peruse these vars instead of using a giant source=() inclusion.

The sum check is specified in another file, like Crux's .md5sums.

Taking this in mind, I can declare config.h outside the distfiles
directory and still have it copied to ./src, have the other files
still be sum checked, and independantly build from extracted sources
or decide to untar from scratch...

Andres P


More information about the arch-general mailing list