Re: Update AROS host detection

2021-01-25 Thread Dmitry V. Levin
On Mon, Jan 25, 2021 at 08:49:51PM +, Kalamatee wrote:
> Please find attached a revised patch, also updating the test data.

> diff --git a/config.guess b/config.guess
> index 3ed3dc7..4d9b979 100755
> --- a/config.guess
> +++ b/config.guess
> @@ -1482,8 +1482,8 @@ EOF
>  i*86:rdos:*:*)
>   echo "$UNAME_MACHINE"-pc-rdos
>   exit ;;
> -i*86:AROS:*:*)
> - echo "$UNAME_MACHINE"-pc-aros
> +*:AROS:*:*)
> + echo "$UNAME_MACHINE"-unknown-aros
>   exit ;;
>  x86_64:VMkernel:*:*)
>   echo "$UNAME_MACHINE"-unknown-esx
> 
> diff --git a/testsuite/config-guess.data b/testsuite/config-guess.data
> index 155e9ce..9e09202 100644
> --- a/testsuite/config-guess.data
> +++ b/testsuite/config-guess.data
> @@ -37,6 +37,7 @@ arc | ignored | Linux | ignored | ignored | 
> arc-unknown-linux-gnu
>  arceb | ignored | Linux | ignored | ignored | arceb-unknown-linux-gnu
>  arm | 12.0 | FreeBSD | ignored | armv6 | armv6-unknown-freebsd12.0-gnueabihf
>  arm | 12.0 | FreeBSD | ignored | armv7 | armv7-unknown-freebsd12.0-gnueabihf
> +arm | 12.1 | AROS | ignored | armv7 | arm-unknown-aros
>  arm | ignored | Linux | ignored | ignored | arm-unknown-linux-gnueabihf
>  arm | ignored | RISCOS | ignored | ignored | arm-unknown-riscos
>  arm | ignored | riscos | ignored | ignored | arm-unknown-riscos
> @@ -66,7 +67,7 @@ hexagon | 1.0 | Linux | ignored | ignored | 
> hexagon-unknown-linux-gnu
>  i386 | 1.0 | MINGW | ignored | ignored | i386-pc-mingw32
>  i386 | 1.0 | Minix | ignored | ignored | i386-unknown-minix
>  i386 | 1.0 | Sortix | ignored | ignored | i386-unknown-sortix
> -i386 | 12.1 | AROS | ignored | ignored | i386-pc-aros
> +i386 | 12.1 | AROS | ignored | ignored | i386-unknown-aros
>  i386 | 14.0 | Darwin | ignored | i386 | i386-apple-darwin14.0
>  i386 | 4.0 | DYNIX/ptx | ignored | ignored | i386-sequent-sysv4
>  i386 | 4.2 | LynxOS | ignored | ignored | i386-unknown-lynxos4.2
> @@ -86,6 +87,7 @@ k1om | 2.6.38 | Linux | ignored | ignored | 
> k1om-unknown-linux-gnu
>  loongarch32 | ignored | Linux | ignored | ignored | 
> loongarch32-unknown-linux-gnu
>  loongarch64 | ignored | Linux | ignored | ignored | 
> loongarch64-unknown-linux-gnu
>  loongarchx32 | ignored | Linux | ignored | ignored | 
> loongarchx32-unknown-linux-gnu
> +m68k | 12.1 | AROS | ignored | ignored | m68k-unknown-aros
>  m88k | 7.0 | CX/UX | ignored | ignored | m88k-harris-cxux7
>  macppc | 1.0 | MirBSD | ignored | ignored | powerpc-unknown-mirbsd1.0
>  mips | 1.0 | OSF1 | ignored | ignored | mips-dec-osf1
> @@ -123,6 +125,7 @@ x86_64 | 1.0 | Sortix | ignored | ignored | 
> x86_64-unknown-sortix
>  x86_64 | 1.0 | Twizzler | ignored | ignored | x86_64-unknown-twizzler
>  x86_64 | 1.1 | Unleashed | ignored | ignored | x86_64-unknown-unleashed1.1
>  x86_64 | 1.5.18(0.132/4/2) | CYGWIN_NT-5.2 | ignored | ignored | 
> x86_64-pc-cygwin
> +x86_64 | 12.1 | AROS | ignored | ignored | x86_64-unknown-aros
>  x86_64 | 14.0 | Darwin | ignored | i386 | x86_64-apple-darwin14.0
>  x86_64 | 2.0.0(0.271/5/3) | MSYS_NT-6.1 | ignored | ignored | x86_64-pc-msys
>  x86_64 | 2.6.32 | Linux | ignored | ignored | x86_64-pc-linux-gnu

Applied, thanks.


-- 
ldv



Re: Update AROS host detection

2021-01-25 Thread Dmitry V. Levin
On Sun, Jan 10, 2021 at 08:09:57PM +, Kalamatee wrote:
> AROS detection has been wrong for a number of years and only detects the
> i386 host.
> Please find attached a patch to correct the AROS case.
> 
>  build-aux/config.guess | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/build-aux/config.guess b/build-aux/config.guess
> index 699b3a10..fa6a27d5 100755
> --- a/build-aux/config.guess
> +++ b/build-aux/config.guess
> @@ -1480,8 +1480,8 @@ EOF
>  i*86:rdos:*:*)
>   echo "$UNAME_MACHINE"-pc-rdos
>   exit ;;
> -i*86:AROS:*:*)
> - echo "$UNAME_MACHINE"-pc-aros
> +*:AROS:*:*)
> + echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-aros
>   exit ;;
>  x86_64:VMkernel:*:*)
>   echo "$UNAME_MACHINE"-unknown-esx

Sorry, but this doesn't look correct:

$ make check
cd testsuite && bash config-guess.sh && rm uname
FAIL: i386-AROS-aros (expected i386-pc-aros)
Unexpected failures.
make: *** [Makefile:10: check-guess] Error 1


-- 
ldv



Re: Update AROS host detection

2021-01-13 Thread Kalamatee
On Sun, 10 Jan 2021 at 20:09, Kalamatee  wrote:

> AROS detection has been wrong for a number of years and only detects the
> i386 host.
> Please find attached a patch to correct the AROS case.
>
>  build-aux/config.guess | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/build-aux/config.guess b/build-aux/config.guess
> index 699b3a10..fa6a27d5 100755
> --- a/build-aux/config.guess
> +++ b/build-aux/config.guess
> @@ -1480,8 +1480,8 @@ EOF
>  i*86:rdos:*:*)
>   echo "$UNAME_MACHINE"-pc-rdos
>   exit ;;
> -i*86:AROS:*:*)
> - echo "$UNAME_MACHINE"-pc-aros
> +*:AROS:*:*)
> + echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-aros
>   exit ;;
>  x86_64:VMkernel:*:*)
>   echo "$UNAME_MACHINE"-unknown-esx
>
>
>
It would be great if someone would let me know what is necessary to get
these changes applied - we have problems compiling on a number of our
target arch's currently because the configure scripts do not correctly
identify them, needing constant patching.


Update AROS host detection

2021-01-10 Thread Kalamatee
AROS detection has been wrong for a number of years and only detects the
i386 host.
Please find attached a patch to correct the AROS case.

 build-aux/config.guess | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/build-aux/config.guess b/build-aux/config.guess
index 699b3a10..fa6a27d5 100755
--- a/build-aux/config.guess
+++ b/build-aux/config.guess
@@ -1480,8 +1480,8 @@ EOF
 i*86:rdos:*:*)
  echo "$UNAME_MACHINE"-pc-rdos
  exit ;;
-i*86:AROS:*:*)
- echo "$UNAME_MACHINE"-pc-aros
+*:AROS:*:*)
+ echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-aros
  exit ;;
 x86_64:VMkernel:*:*)
  echo "$UNAME_MACHINE"-unknown-esx