From 06cf2888850c63c59bf75820d2b69159684e6ba3 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Mon, 25 Jan 2021 05:41:00 +0100 Subject: [PATCH] arch: Clarify that the regex columns need to be ordered to match first The entries are used in a first match order, so the regexes need to be listed from most specific to less specific. --- data/cputable | 3 ++- data/ostable | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/data/cputable b/data/cputable index 9f2a8e0e4..505641659 100644 --- a/data/cputable +++ b/data/cputable @@ -11,7 +11,8 @@ # - Column 2 is the GNU name for the CPU, used to output build, host and # target variables in ‘dpkg-architecture’. # - Column 3 is an extended regular expression used to match against the -# CPU part of the output of the GNU config.guess script. +# CPU part of the output of the GNU config.guess script. The order of +# this column is important as it is used in a first match basis. # - Column 4 is the size (in bits) of pointers. # - Column 5 is the endianness (byte ordering in numbers). # diff --git a/data/ostable b/data/ostable index 99c1f889d..055363bb9 100644 --- a/data/ostable +++ b/data/ostable @@ -11,7 +11,8 @@ # - Column 2 is the GNU name for the system, used to output build, host and # target variables in ‘dpkg-architecture’. # - Column 3 is an extended regular expression used to match against the -# system part of the output of the GNU config.guess script. +# system part of the output of the GNU config.guess script. The order of +# this column is important as it is used in a first match basis. # # eabi-uclibc-linux linux-uclibceabi linux[^-]*-uclibceabi -- 2.30.1