[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] build: Correctly determine the system type for GNU/Hurd syst
From: |
Ludovic Courtès |
Subject: |
Re: [PATCH] build: Correctly determine the system type for GNU/Hurd systems. |
Date: |
Sun, 26 Jun 2016 23:34:02 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Hi!
Manolis Ragkousis <address@hidden> skribis:
> On 06/19/16 16:57, Ludovic Courtès wrote:
>> I wonder why this is needed though; normally, when building on
>> i586-unknown-gnu*, the next case:
>>
>> --8<---------------cut here---------------start------------->8---
>> case "$host_os" in
>> linux-gnu*)
>> # For backward compatibility, strip the `-gnu' part.
>> guix_system="$machine_name-linux";;
>> *) # ← THIS CASE
>> # Strip the version number from names such as `gnu0.3',
>> # `darwin10.2.0', etc.
>> guix_system="$machine_name-`echo $host_os | "$SED"
>> -e's/[0-9.]*$//g'`";;
>> esac
>> --8<---------------cut here---------------end--------------->8---
>>
>> … should produce “i586-gnu”, no? What did you observe? To put it
>> differently, what does ./build-aux/config.guess return on a GNU/Hurd
>> system?
>
> It produces "i686-gnu0.8" which is problematic and we expect "i586-gnu"
> for our binaries to work.
OK. I can imagine that config.guess cannot distinguish between i686 and
i586; the “0.8” part is fun and much less expected (the last GNU release
that ever happened was called “0.3” :-)).
> I will push the updated patch to core-updates.
Perfect, thanks!
Ludo’.