[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Automake-NG] [PATCH 6/7] [ng] dist: new API to specify formats of d
From: |
Stefano Lattarini |
Subject: |
Re: [Automake-NG] [PATCH 6/7] [ng] dist: new API to specify formats of distribution tarballs |
Date: |
Mon, 13 Aug 2012 17:30:11 +0200 |
Hi Bob, thanks for the feedback.
On 08/13/2012 04:11 PM, Bob Friesenhahn wrote:
> On Sun, 12 Aug 2012, Stefano Lattarini wrote:
>
>> The API to specify the formats of distribution tarballs has been changed
>> completely, in a BACKWARD-INCOMPATIBLE way.
>>
>> Instead of using the various 'dist-*' automake options, the developer is
>> now expected to specify the default formats of its distribution tarballs
>> with the special variable AM_DIST_FORMATS; for example, where once would
>> have been:
>>
>> AM_INIT_AUTOMAKE([dist-bzip2 dist-zip])
>>
>> now it must be:
>>
>> AM_DIST_FORMATS = gzip bzip2 zip
>>
>> and similarly, where once would have been:
>>
>> AUTOMAKE_OPTIONS = no-dist-gzip dist-bzip2 dist-xz
>>
>> now is it simply:
>>
>> AM_DIST_FORMATS = bzip2 xz
>
> This all sounds like goodness to me. Moving to Automake-NG will clearly
> be a "port" for any significant project. Hopefully you are recording
> porting-notes so that people know what to look for and change.
>
Yep; so far, it's in the NG-NEWS file. Eventually, if that file
grows too much, we might want to consider turning it in a real
"porting" or "transition" manual (Texinfo and all). We'll see.
> The old way of dealing with tarballs was broken because it was
> inflexible and therefore not as "free" as it should be.
>
Note that my set of patches doesn't yet offer any public API for
the addition of new distribution format; but the new form of the
codebase should at least make that very easy to add (it's mostly
a matter of changing the name of few so far internal-only
variables, and adding the proper documentation).
> It caused tension among free software developers (e.g. the 'lzip'
> discussion). Automake can not anticipate all of the possible
> output formats that a package may want to create.
>
Heartily agreed.
> For example, my project also wants to be able to produce 'srpm'
> format as well as a '7z' format.
>
That could be a nice test bed for the API, if you want to become
an early Automake-NG adopter ;-)
Regards,
Stefano
- [Automake-NG] [PATCH 0/7] More patches on distribution tarballs support, Stefano Lattarini, 2012/08/12
- [Automake-NG] [PATCH 1/7] [ng] dist: refactor: reduce duplication in the 'dist-*' recipes, Stefano Lattarini, 2012/08/12
- [Automake-NG] [PATCH 2/7] [ng] dist: vars DIST_TARGETS and DIST_ARCHIVES are no more public, Stefano Lattarini, 2012/08/12
- [Automake-NG] [PATCH 3/7] [ng] distcheck: remove stale tarballs with 'rm -f', not 'rm -rf', Stefano Lattarini, 2012/08/12
- [Automake-NG] [PATCH 5/7] [ng] diag: new make function $(am.fatal), Stefano Lattarini, 2012/08/12
- [Automake-NG] [PATCH 4/7] [ng] dist: fixup: add 'dist' and 'dist-all' to AM_RECURSIVE_TARGETS, Stefano Lattarini, 2012/08/12
- [Automake-NG] [PATCH 7/7] [ng] rename: am.dist.uninstallcheck-listfiles -> am.dist.uninstallcheck-listfiles, Stefano Lattarini, 2012/08/12
- [Automake-NG] [PATCH 6/7] [ng] dist: new API to specify formats of distribution tarballs, Stefano Lattarini, 2012/08/12
- Re: [Automake-NG] [PATCH 6/7] [ng] dist: new API to specify formats of distribution tarballs, Paolo Bonzini, 2012/08/21
Re: [Automake-NG] [PATCH 0/7] More patches on distribution tarballs support, Stefano Lattarini, 2012/08/14