[packages/rpm/arlib] convert cpu-os-macros to ar archive instead of untracked .tar.gz

Elan Ruusamäe glen at pld-linux.org
Wed Jan 7 18:12:00 CET 2015


On 07.01.2015 18:34, Jakub Bogusz wrote:
>> >+++ b/README.cpu-os-macros
>> >@@ -0,0 +1,12 @@
>> >+In order to more easily cope with merges and avoid issues with binary formats,
>> >+we're now using the ar format which will give us a pure ascii archive that'll
>> >+make it possible to track & merge individual changes like with other text files.
>> >+Unfortunately the format doesn't support paths..
>> >+
>> >+recommended way of making changes and updating archive:
>> >+rm -rf foo
>> >+cd foo
>> >+ar x ../cpu-os-macros.a
>> >+<perform your changes>
>> >+cd -
>> >+ar cDr cpu-os-macros.a foo/*macros
> Isn't diff -Nur more readable (paths!) and easier to maintain?

maybe,

however, diff -Nur is probably ordered by filesystem, but foo/*macros is 
ordered by locale. as all files are lowercase it's consistent with C, 
en_US, or pl_PL or whatever some other friend uses (few locales like 
et_EE have problem with a-z excluding t-u-v, but that's minimal impact)

and ar is probably easier to create than patch (just redo whole 
archive), with patch have to update patch with a patch. neh...

-- 
glen



More information about the pld-devel-en mailing list