From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 1/2] package/Config.in: fix alphabetical order
Date: Sun, 14 Jul 2019 21:05:01 +0200 [thread overview]
Message-ID: <64500993-4908-3f86-8b73-2355ac75edab@mind.be> (raw)
In-Reply-To: <20190714123415.GB18236@scaer>
On 14/07/2019 14:34, Yann E. MORIN wrote:
> On 2019-06-11 22:49 +0200, Jerzy Grzegorek spake thusly:
>> Signed-off-by: Jerzy Grzegorek <jerzy.m.grzegorek@gmail.com>
>> ---
>> Changes v1 -> v2:
>> - swap patches 1 and 2 (Arnout)
>> - change alphabetical order (Arnout)
>> real alphabetical order: '-', digits, capitals, '_', lowercase
>> order after change: '-', '_', digits, capitals, lowercase
>> ---
>>
>> package/Config.in | 30 +++++++++++++++---------------
>> 1 file changed, 15 insertions(+), 15 deletions(-)
>>
>> diff --git a/package/Config.in b/package/Config.in
>> index f61009410d..fcb61c61e0 100644
>> --- a/package/Config.in
>> +++ b/package/Config.in
>> @@ -288,10 +288,10 @@ comment "Graphic libraries"
>> source "package/directfb/Config.in"
>> source "package/directfb-examples/Config.in"
>> source "package/efl/Config.in"
>> + source "package/fb-test-app/Config.in"
>> source "package/fbdump/Config.in"
>> source "package/fbgrab/Config.in"
>> source "package/fbset/Config.in"
>> - source "package/fb-test-app/Config.in"
> Actually, I am not a fan of this ordering.
>
> I am a human, not a machine, so when I try to find something in an
> ordered list in my head, I definitely do not run qsort() using the
> C locale. Instead, I just ignore '-' or '_' when sorting; I just
> sort on the letters and numbers, and anything else is silently
> ignored.
>
> So, again, this is a mechanical sort suited for machines, not humans.
> This is sad... :-(
The intention was to go to a consistent ordering, not necessarily 'suited for
machines' (i.e. ascii ordering). See Jerzy's comment in the patch changelog
about ordering: _ is ordered before digits and letters instead of between
capital and lowercase.
We could indeed do something similar for -, or replace - by nothing. However,
it's not as if things were ordered like that everywhere before this patch.
So feel free to suggest an alternative ordering, and of course contribute a
patch to change it :-)
BTW, I don't really agree that - or _ should be ignored while sorting. For me,
the following order looks wrong:
aaa
a-ba
abr
"a-ba" to me sounds like two words, and for me it feels more natural to order
"a ba" before "aaa".
But this, obviously, is bikeshedding :-)
Regards,
Arnout
next prev parent reply other threads:[~2019-07-14 19:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-11 20:49 [Buildroot] [PATCH v2 1/2] package/Config.in: fix alphabetical order Jerzy Grzegorek
2019-06-11 20:49 ` [Buildroot] [PATCH v2 2/2] checkpackagelib/lib_config.py: check packages alphabetical order in {Config.in, Config.in.host} Jerzy Grzegorek
2019-07-13 22:27 ` Arnout Vandecappelle
2019-07-14 10:04 ` Yann E. MORIN
2019-07-14 20:12 ` Jerzy Grzegorek
2019-07-14 12:34 ` [Buildroot] [PATCH v2 1/2] package/Config.in: fix alphabetical order Yann E. MORIN
2019-07-14 19:05 ` Arnout Vandecappelle [this message]
2019-07-15 7:25 ` Jerzy Grzegorek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=64500993-4908-3f86-8b73-2355ac75edab@mind.be \
--to=arnout@mind.be \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.