Re: ./configure on loongarch64

2024-08-02 Thread Dmitry V. Levin
Hi, On Fri, Aug 02, 2024 at 11:23:24PM +0300, Alexander Pivkin wrote: >Hello, >here ./config.guess cannot guess the system I am trying to compile mc on. >I hope this output will be usefull >  >config.guess timestamp = 2004-03-03 This script (version 2004-03-03) has failed to r

Re: [RFC PATCH 00/15] config.sub bug fixes

2024-07-28 Thread Dmitry V. Levin
On Mon, Jun 03, 2024 at 03:28:29PM -0400, Zack Weinberg wrote: > I applied a coverage analyzer to config.sub trying to find all the > code paths that currently aren't being tested. (Did you know there > are coverage analyzers for shell scripts? I was halfway expecting > it to be impossible!) > >

Re: [PATCH v2 1/4] config.guess: Avoid implicit int in definitions of main.

2024-07-28 Thread Dmitry V. Levin
On Mon, May 13, 2024 at 04:55:28PM -0400, Zack Weinberg wrote: > From: Petr Vorel > > Implicit ‘int’ (e.g. ‘extern foo();’ meaning the same thing as > ‘extern int foo();’) was dropped from the C standard in its 1999 > edition. Twenty-five years later, free C compilers are finally > starting to m

Re: [PATCH] Port config.guess to strict POSIX.1-2024 c17

2024-07-28 Thread Dmitry V. Levin
On Sat, Jul 27, 2024 at 10:41:28PM -0700, Paul Eggert wrote: > * config.guess (set_cc_for_build): > Try the c17 compiler, standardized in POSIX.1-2024. See: > https://pubs.opengroup.org/onlinepubs/9799919799/utilities/c17.html > While we're at it, prefer c99 to c89. Applied, thanks. -- ldv

Re: [PATCH] Revise the diagnostic output produced when config.guess fails.

2024-05-14 Thread Dmitry V. Levin
On Tue, May 14, 2024 at 01:26:03PM -0400, Zack Weinberg wrote: > On Tue, May 14, 2024, at 12:31 PM, Dmitry V. Levin wrote: > >> > On Tue, May 14, 2024 at 10:34:11AM -0400, Zack Weinberg wrote: > >> >> --- /dev/null 2024-05-14 09:16:42.181936154 -0400 > >&

Re: [PATCH] Revise the diagnostic output produced when config.guess fails.

2024-05-14 Thread Dmitry V. Levin
On Tue, May 14, 2024 at 10:34:11AM -0400, Zack Weinberg wrote: > On Tue, May 14, 2024, at 9:51 AM, Alyssa Ross wrote: > >> Turns out /software/config is under our control, in the same way that > >> /software/autoconf is. It should be sufficient to apply this patch to the > >> config-web CVS reposi

Re: Request for HarmonyOS Support in Libsodium Build Process

2024-01-12 Thread Dmitry V. Levin
On Thu, Jan 11, 2024 at 04:15:48PM +0800, 熊安 wrote: > Dear Config Support Team, > > I am reaching out as a developer working with HarmonyOS. Currently, I am > attempting to build the Libsodium library for HarmonyOS, an operating system > based on Linux and similar to Android. However, I have enc

Re: [PATCH] config.sub: Accept LLVM-style $cpu-$vendor-windows-cygnus

2023-09-21 Thread Dmitry V. Levin
On Wed, Sep 20, 2023 at 09:59:22AM -0400, John Ericson wrote: > On Wed, Sep 20, 2023, at 6:01 AM, Dmitry V. Levin wrote: > > The issue with adding new names duplicating already supported ones is that > > every piece of software that handles the old name would have to be patched &g

Re: [PATCH] config.sub: Accept LLVM-style $cpu-$vendor-windows-cygnus

2023-09-20 Thread Dmitry V. Levin
On Tue, Sep 19, 2023 at 09:31:13PM -0400, John Ericson wrote: > On 9/19/23 20:19, Dmitry V. Levin wrote: > > On Wed, Aug 16, 2023 at 10:46:26AM -0400, John Ericson wrote: > > > >> In 91f6a7f616b161c25ba2001861a40e662e18c4ad I supported `windows-gnu` > >> and `wind

Re: [PATCH] config.sub: Accept LLVM-style $cpu-$vendor-windows-cygnus

2023-09-19 Thread Dmitry V. Levin
On Wed, Aug 16, 2023 at 10:46:26AM -0400, John Ericson wrote: > In 91f6a7f616b161c25ba2001861a40e662e18c4ad I supported `windows-gnu` > and `windows-msvc`, but I forgot about the last one: `windows-cygnus`. Is windows-cygnus a new name for something already supported by config.sub, or is it a new

Re: Rethinking configuration tuples

2023-09-19 Thread Dmitry V. Levin
On Thu, Sep 14, 2023 at 12:55:06AM -0400, John Ericson wrote: > OK here we go: > > 1. https://github.com/ericson2314/gnu-config/commit/windows-mingnu.patch > 2. https://github.com/ericson2314/gnu-config/commit/windows-mingw.patch > 3. https://github.com/ericson2314/gnu-config/commit/no-windows-

Re: [PATCH] config.sub allow arch64c-unknown-freebsd

2023-09-19 Thread Dmitry V. Levin
On Wed, Aug 23, 2023 at 09:47:38PM +0200, Urs Janßen wrote: > config.guess says aarch64c-unknown-freebsd14.0 > (cfarm240.cfarm.net, an Arm Morello SoC, quad-core aarch64 > Neoverse N1-based CPU implementing CHERI) > but config.sub aarch64c-unknown-freebsd14.0 fails > the fixes it: Applied and adde

Re: [PATCH] config.guess: Detect Android (as opposed to GNU/Linux)

2023-09-19 Thread Dmitry V. Levin
On Thu, Aug 17, 2023 at 11:49:32AM +0200, Bruno Haible wrote: > Hi, > > Here's a patch to recognize Android environments. > > Such environments are "apps" with POSIX-like tools. Today, the most frequently > used one is Termux [1][2][3]; on devices with Android versions before 5.0 > one can use Te

Re: [PATCH] config.sub: add javascript-unknown-ghcjs

2023-09-19 Thread Dmitry V. Levin
On Wed, Aug 16, 2023 at 04:59:26AM -0700, Adam Joseph wrote: > GHC has been using a custom triple "javascript-unknown-ghcjs" for > their (non asm.js, non wasm) javascript-emitting kernel-less target. > > > https://gitlab.haskell.org/ghc/ghc/-/commit/6636b670233522f01d002c9b97827d00289dbf5c > >

Re: [PATCH] testsuite: add coverage for vendor-clobbering

2023-09-19 Thread Dmitry V. Levin
On Mon, Aug 14, 2023 at 01:30:08AM -0700, Adam Joseph wrote: > While reimplementing config.sub for use in a situation where no bash > interpreter was available, I discovered several oddities about > config.sub's behavior. > > One such oddity was the fact that an explicitly-provided vendor will > b

Re: [PATCH] Systematize parsing of machine code formats

2023-09-19 Thread Dmitry V. Levin
On Mon, Aug 07, 2023 at 02:20:40PM -0400, John Ericson wrote: > Instead of treating them as OSes, we treat them as their own category. > This is modeled on what LLVM does with its `ObjectFormatType` enum [1], > advancing my long-running project of trying to nudge GNU config and LLVM > towards each

Re: Rethinking configuration tuples

2023-09-11 Thread Dmitry V. Levin
Hi, On Mon, Sep 11, 2023 at 10:11:39AM +0800, Po Lu wrote: > Where are the config maintainers? Karl Barry and company? > (I don't remember his e-mail nor do I have it at hand.) > > I would expect them to be actively reading this list, but instead my > original request has been left twisting in t

Re: [PATCH] config.sub: Handle arbitrary MIPS CPU names

2023-08-01 Thread Dmitry V. Levin
On Mon, Jul 31, 2023 at 11:00:55AM +0100, Maciej W. Rozycki wrote: > GNU binutils support the selection of the default MIPS subtarget via the > configuration triplet, e.g. `mips64octeon+el-unknown-linux-gnu' builds a > Linux/GNU 64-bit MIPS (n32 ABI) little-endian configuration with the CPU > set

Re: [PATCH] Adapt Linux x86_64 i686 test for Linux aarch64

2023-08-01 Thread Dmitry V. Levin
On Thu, Jul 20, 2023 at 08:09:03PM +0100, David Allsopp wrote: > In the spirit of f56a7140, this patch uses the same idea to detect > 32-bit Raspberry Pi OS (which is a 64-bit kernel with 32-bit > userland). Before this patch, config.guess gives > aarch64-unknown-linux-gnu; with this patch it gives

Re: Add KVX MPPA detection

2023-08-01 Thread Dmitry V. Levin
On Wed, Jul 19, 2023 at 05:30:30PM +0200, Paul Iannetta wrote: > Hi, > > We are planning to upstream our toolchain (binutils-gdb, gcc and > newlib), and would like to be properly detected by the autotools. > > Below is patch which adds support for the KVX MPPA. Applied, thanks. -- ldv

Re: [PATCH] Add Apple tvOS and watchOS

2023-08-01 Thread Dmitry V. Levin
On Thu, Jul 13, 2023 at 12:29:18PM +0100, Luis Campos wrote: > These are distinct from "ios". They are also technically Darwin, so while > something like "aarch64-apple-darwin" could be used when targeting these, > on Apple-silicon based systems there could be cases where `--host` and > `--build` h

Re: [PATCH] Accept $cpu-$vendor-none-{coff,elf}

2023-08-01 Thread Dmitry V. Levin
On Tue, Jul 04, 2023 at 06:52:51PM -0400, John Ericson wrote: > These are not real OSes, they are object file formats. There is a > longstanding tradition of using them for embedded/freestanding > programming, so it makes sense to parse them with `kernel=none`. > > (I have a WIP future patch that

Re: [PATCH] config.sub: Accept LLVM-style `$cpu-$vendor-windows-{gnu, mingw}`

2023-07-03 Thread Dmitry V. Levin
On Mon, Jun 26, 2023 at 07:56:57PM -0400, John Ericson wrote: > In older times, MinGW (GCC toolchain with modified windows headers) was > the only free software toolchain for Windows. But now, LLVM has > excellent support both for MinGW ABI and Microsoft's own. (The > distinction matters for C++ mo

Re: [PATCH] Quote 'like this', not `like this'.

2023-06-23 Thread Dmitry V. Levin
On Fri, Jun 23, 2023 at 09:55:10AM -0700, Paul Eggert wrote: > In 2012 the GNU Coding Standards changed to recommend quoting > 'like this' or "like this" instead of `like this'. > Alter diagnostics and comments accordingly. > Use a more-consistent quoting style in config.sub diagnostics, > preferri

Re: [PATCH] Fix config.sub spelling typo for "athlon"

2023-01-21 Thread Dmitry V. Levin
On Sat, Jan 21, 2023 at 12:15:01AM -0600, Paul Eggert wrote: > This typo was introduced in commit > fc14426403b6106981d2b3a4666835df29203043 > dated Tue Aug 28 09:59:08 2018 +1000. > --- > config.sub | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/config.sub b/config.

Re: [PATCH v2 3/3] config.sub: add linux-mlibc targets

2022-10-07 Thread Dmitry V. Levin
On Sat, Sep 17, 2022 at 11:34:48PM +0200, Arsen Arsenović wrote: > Note: currently, there's no detection method for linux-mlibc in > config.guess, since there's no decided way to detect mlibc. > > Signed-off-by: Arsen Arsenović > --- > config.sub| 2 +- > testsuite/config-sub.dat

Re: [PATCH v2 1/3] config.sub: add managarm-{mlibc,kernel} targets

2022-10-07 Thread Dmitry V. Levin
On Sat, Sep 17, 2022 at 11:34:46PM +0200, Arsen Arsenović wrote: > To achieve this, the `kernel' pseudo-OS value was added, intended to > identify targets requiring a kernel-specific compiler and base system. > > Signed-off-by: Arsen Arsenović > --- > Evening, > > This is version 2 of the config

Re: [PATCH v2 2/3] config.guess: support running on Managarm systems

2022-10-07 Thread Dmitry V. Levin
On Sat, Sep 17, 2022 at 11:34:47PM +0200, Arsen Arsenović wrote: > Signed-off-by: Arsen Arsenović > --- > config.guess| 6 ++ > testsuite/config-guess.data | 3 +++ > 2 files changed, 9 insertions(+) > > diff --git a/config.guess b/config.guess > index a419d86..a392bc1 100755

Re: [PATCH] config.guess: Update Haiku guesses; add test suites

2022-05-25 Thread Dmitry V. Levin
On Wed, May 25, 2022 at 03:43:13PM -0500, Alexander von Gluck IV wrote: > --- > config.guess| 7 +-- > testsuite/config-guess.data | 4 > 2 files changed, 9 insertions(+), 2 deletions(-) Applied, thanks. -- ldv

Re: [PATCH] build-aux/config.guess: Add current Haiku targets arm, arm64, riscv64

2022-05-24 Thread Dmitry V. Levin
On Tue, May 24, 2022 at 10:32:53PM +, Alexander von Gluck IV wrote: > May 24, 2022 5:02 PM, Dmitry V. Levin wrote: > > > > OK, could you post the final patch, please? > > Can do. > These evaluate in order right? Yes, they do. -- ldv

Re: [PATCH] build-aux/config.guess: Add current Haiku targets arm, arm64, riscv64

2022-05-24 Thread Dmitry V. Levin
On Tue, May 24, 2022 at 09:14:50PM +, Alexander von Gluck IV wrote: > Dmitry V. Levin wrote: > > > What do you think about the following patch instead: > > > > diff --git a/config.guess b/config.guess > > index 160ecf0..b07202e 100755 > > --- a

Re: [PATCH] build-aux/config.guess: Add current Haiku targets arm, arm64, riscv64

2022-05-23 Thread Dmitry V. Levin
On Mon, May 23, 2022 at 12:46:52PM -0500, Alexander von Gluck IV wrote: > --- > build-aux/config.guess | 9 + > 1 file changed, 9 insertions(+) > > diff --git a/build-aux/config.guess b/build-aux/config.guess > index 1972fda8..7b36c8a9 100755 > --- a/build-aux/config.guess > +++ b/build-a

Re: config.guess returns bogus triple on Linux/x86_64 bi-arch system

2022-05-08 Thread Dmitry V. Levin
On Sun, May 08, 2022 at 10:59:13PM +0200, Bruno Haible wrote: > Dmitry V. Levin wrote: > > I'd prefer to be on the safe side and have ABI=64 assigned by default > > somewhere before the eval. > > You're right, that is safer. > > > >

Re: config.guess returns bogus triple on Linux/x86_64 bi-arch system

2022-05-08 Thread Dmitry V. Levin
On Sun, May 08, 2022 at 09:55:09PM +0200, Bruno Haible wrote: > Dmitry V. Levin wrote: > > Thanks, I agree with this approach in general, but could you rewrite the > > test to invoke the compiler just once, please? You can use cc_set_libc > > and cc_set_vars cases as example

Re: testsuite: Add one more testcase

2022-05-08 Thread Dmitry V. Levin
On Sun, May 08, 2022 at 07:23:18PM +0200, Bruno Haible wrote: > I was surprised to see that there is no test case for i686-pc-linux-gnu. > Here's a proposed patch to add one. Applied, thanks. -- ldv

Re: config.guess returns bogus triple on Linux/x86_64 bi-arch system

2022-05-08 Thread Dmitry V. Levin
On Sun, May 08, 2022 at 07:25:34PM +0200, Bruno Haible wrote: > On Linux/x86_64, there are three ABIs that the kernel understands directly > (without qemu user): > - 64-bit, as produced by "gcc -m64", > - 32-bit (i686 code), as produced by "gcc -m32", > - 64-bit instructions with 32-bit point

Re: license: comma or semicolon?

2022-01-17 Thread Dmitry V. Levin
On Tue, Jan 04, 2022 at 12:28:34AM +0100, Bernhard Voelker wrote: > On 1/3/22 01:17, Mike Frysinger wrote: > > according to gnu.org, it should be a comma. > > https://www.gnu.org/licenses/gpl-3.0.html#howto > > The attached would change it, and shows how the change was done: > > Subject: [PATCH

Re: [PATCH] config.guess: Add support for SerenityOS

2022-01-09 Thread Dmitry V. Levin
On Sun, Jan 09, 2022 at 11:53:25PM +0200, Idan Horowitz wrote: > From: Idan Horowitz > > --- > config.guess| 3 +++ > testsuite/config-guess.data | 2 ++ > 2 files changed, 5 insertions(+) > > diff --git a/config.guess b/config.guess > index b7806a8..c145d9c 100755 > --- a/confi

Re: Proposed patch: add aarch64le to config.sub

2021-12-24 Thread Dmitry V. Levin
or it. > On Fri, 24 Dec 2021 at 11:51, Dmitry V. Levin wrote: > > On Fri, Dec 24, 2021 at 07:49:44AM -0500, Elad Lahav wrote: > > > QNX reports the architecture as aarch64le (on little-endian machines), > > > which matches neither aarch64 nor aarch64_be. > > >

Re: Proposed patch: add aarch64le to config.sub

2021-12-24 Thread Dmitry V. Levin
On Fri, Dec 24, 2021 at 07:49:44AM -0500, Elad Lahav wrote: > QNX reports the architecture as aarch64le (on little-endian machines), > which matches neither aarch64 nor aarch64_be. > I don't know how standardized these architecture names are supposed to > be. This may be a trivial change to add or

Re: config.guess (i*86:Fiwix:*:*): New

2021-12-13 Thread Dmitry V. Levin
On Mon, Dec 13, 2021 at 08:23:21AM +0100, Jordi Sanfeliu wrote: > Hello Dmitry, > > I've just detected a typo in my patch: > > - In 'config.guess' it says: > > timestamp='2021-20-27' > > but it should say: > > timestamp='2021-10-27' Indeed. Fixed, thanks. -- ldv

Re: config.guess: x86_64-pc-solaris2.11 is not properly recognized

2021-12-12 Thread Dmitry V. Levin
On Tue, Nov 30, 2021 at 09:18:10PM +0100, Andreas F. Borchert wrote: > Hi, > > config.guess guesses Solaris 11 to run on a 32-bit platform > despite Solaris 11 no longer supporting any 32-bit platform. > > See the following code at lines 434 to 445: > > | SUN_ARCH=i386 > | # If there is a compil

Re: config.guess (i*86:Fiwix:*:*): New

2021-12-12 Thread Dmitry V. Levin
Hi, On Wed, Oct 27, 2021 at 04:35:57PM +0200, Jordi Sanfeliu wrote: > > Hello, > > Please, add this new OS. Thanks, applied with some unessential edits. -- ldv

Re: [patch for GNU config] config.sub: Fix typo in comment.

2021-12-12 Thread Dmitry V. Levin
Hi, On Mon, Oct 18, 2021 at 03:35:23PM +0530, kinshuk dua wrote: > Hi Dmitry, > I was going through the config.sub file in GCC and found a typo in the > comments, turns out the typo originated upstream in the config project. > I've attached a small patch for the same. I couldn't find a mailing lis

Re: [PATCH] config.sub: add Managarm support

2021-12-08 Thread Dmitry V. Levin
Hi, On Thu, Nov 18, 2021 at 04:39:55PM +0100, Dennis Bonke via Patches for the config.guess and config.sub scripts wrote: [...] > @@ -1748,7 +1752,8 @@ case $os in >| skyos* | haiku* | rdos* | toppers* | drops* | es* \ >| onefs* | tirtos* | phoenix* | fuchsia* | redox* | b

Re: [PATCH v2] config.sub: Work around command assignment bug in some shells.

2021-08-20 Thread Dmitry V. Levin
On Sat, Aug 14, 2021 at 12:20:38PM -0400, Nick Bowler wrote: > When combining variable assignments with a shell command, some older > shells (notably heirloom-sh and presumably also Solaris 10 /bin/sh) > have a bug which causes the assignment to alter the current execution > environment whenever th

Re: Add Linux Relibc Target

2021-08-20 Thread Dmitry V. Levin
On Wed, Aug 04, 2021 at 07:32:46AM -0600, Jeremy Soller wrote: > diff --git a/config.sub b/config.sub > index d80c5d7..35bc4bc 100755 > --- a/config.sub > +++ b/config.sub > @@ -1697,7 +1697,7 @@ fi > # Now, validate our (potentially fixed-up) OS. > case $os in > # Sometimes we do "kernel

Re: [PATCH] config.sub: Add Zephyr RTOS support

2021-08-20 Thread Dmitry V. Levin
On Tue, Jul 06, 2021 at 11:09:09PM +0900, Stephanos Ioannidis wrote: > This adds the Zephyr RTOS targets in preparation for implementing the > Zephyr RTOS-specific toolchain support. > > $ make check > cd testsuite && bash config-guess.sh && rm uname > PASS: config.guess checks (136 tests) > cd te

Re: Support Tachyum's processor in config.guess and config.sub

2021-07-29 Thread Dmitry V. Levin
On Thu, Jul 29, 2021 at 10:59:51AM -0600, Jeff Law wrote: > This is a minor patch to config.guess and config.sub to allow them to > properly identify the Tachyum processor. > > config.guess will report "tachy-unknown-linux-gnu" on our standard glibc > linux configuration.  It presumably would wo

Re: [PATCH] config.sub: go back to backtick substitutions

2021-07-04 Thread Dmitry V. Levin
On Sat, Jul 03, 2021 at 11:52:18AM +0300, Ozkan Sezer wrote: > On 7/3/21, Jacob Bachmeyer wrote: > > Ozkan Sezer wrote: > >> The attached patch replaces a handful of POSIX $(xx) with classic `xx` > >> in config.sub. This is in line with the recent config.guess change i.e. > >> commit d70c4fa934de:

Re: [PATCH] Recognize arc32

2021-06-30 Thread Dmitry V. Levin
On Thu, Jun 03, 2021 at 09:01:25PM -0700, Vineet Gupta wrote: > This is the 32-bit variant of ARCv3 ISA (which is not compatible with the > 32-bit ARCv2 ISA) > > | make check > | cd testsuite && bash config-guess.sh && rm uname > | PASS: config.guess checks (136 tests) > | cd testsuite && bash con

Re: [PATCH v2 0/8] restore compatibility with pre-POSIX shells in config.guess

2021-06-30 Thread Dmitry V. Levin
On Wed, Jun 23, 2021 at 12:57:01AM -0400, Jacob Bachmeyer wrote: > "Dmitry V. Levin" writes: > > On Wed, May 26, 2021 at 09:26:02PM -0400, Jacob Bachmeyer wrote: > >> This patch series tidies config.guess and reverts to classic backtick > >> command subst

Re: [PATCH v2 0/8] restore compatibility with pre-POSIX shells in config.guess

2021-06-23 Thread Dmitry V. Levin
On Wed, Jun 23, 2021 at 12:57:01AM -0400, Jacob Bachmeyer wrote: > "Dmitry V. Levin" writes: > > On Wed, May 26, 2021 at 09:26:02PM -0400, Jacob Bachmeyer wrote: > >> This patch series tidies config.guess and reverts to classic backtick > >> command subst

Re: [PATCH v2 0/8] restore compatibility with pre-POSIX shells in config.guess

2021-06-22 Thread Dmitry V. Levin
On Wed, May 26, 2021 at 09:26:02PM -0400, Jacob Bachmeyer wrote: > This patch series tidies config.guess and reverts to classic backtick > command substitutions. This is a respin after the earlier series > proved difficult to properly review. The series looks good to me, but since GNU config is c

Re: [PATCH 2/6] config.guess: use intermediate variable with uname results

2021-05-24 Thread Dmitry V. Levin
On Fri, May 21, 2021 at 10:39:49PM -0500, Jacob Bachmeyer wrote: > This will allow quoting to be significantly simplified in another > pass through the file. > > This was done with some manual cleanup after running this Emacs Lisp: No, please don't do it this way, let it be either a manual or an

Re: How to handle a new operating system?

2021-05-05 Thread Dmitry V. Levin
Hi, On Thu, Apr 29, 2021 at 03:25:22PM +0200, Arsenij Solovjev wrote: > Hi dear GNU Team, > > I’m part of a team that creates our own distribution of FreeBSD called > CROSSOS. > I’ve currently run into the problem that I cannot compile certain third party > sofware (python gevent). > The proble

Re: config.sub: Handle MIPS R3 and R5 ISA levels with CPU names

2021-05-05 Thread Dmitry V. Levin
On Sat, May 01, 2021 at 01:15:08AM +0200, Maciej W. Rozycki wrote: > Complement binutils commit ae52f4830604 ("Add MIPS r3 and r5 support.") > and recognize MIPS CPU patterns for the R3 and R5 ISA levels, used by > GAS to set defaults. > > * config.sub (mipsisa32r3, mipsisa32r3el, mipsisa32r5, m

Re: [PATCH] Recognize arc64

2021-05-05 Thread Dmitry V. Levin
On Wed, Apr 21, 2021 at 12:51:18PM -0700, Vineet Gupta wrote: > This paves way for setting up arc64 software ecosystem. > > $ make check > cd testsuite && bash config-guess.sh && rm uname > PASS: config.guess checks (135 tests) > cd testsuite && bash config-sub.sh > PASS: config.sub checks (852 te

Re: PATCH FIXED: config.guess 2021-04-16

2021-05-05 Thread Dmitry V. Levin
On Fri, Apr 16, 2021 at 10:26:32PM +, Purple Rain wrote: > Hi GNU friends! > > I attached a patch for config.guess and info of my OS. > > uname -m = amd64 > uname -r = 1.0 > uname -s = SecBSD > uname -v = GENERIC.MP#1 > > /usr/bin/uname -p = amd64 > /bin/uname -X = > > hostinfo = > /bin/uni

Re: PATCH: config.sub 2021-04-16

2021-05-05 Thread Dmitry V. Levin
On Fri, Apr 16, 2021 at 10:11:33PM +, Purple Rain wrote: > Hi GNU friends! > > I attached a patch for config.sub and info of my OS. > > uname -m = amd64 > uname -r = 1.0 > uname -s = SecBSD > uname -v = GENERIC.MP#1 > > /usr/bin/uname -p = amd64 > /bin/uname -X = > > hostinfo = > /bin/unive

Re: [PATCH] config.guess: Fix aarch64 macOS detection with GNU uname

2021-03-21 Thread Dmitry V. Levin
On Sun, Mar 21, 2021 at 09:23:45AM -0400, m...@diatr.us wrote: > From: Hayden > > --- > config.guess | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/config.guess b/config.guess > index 1972fda..7a74216 100755 > --- a/config.guess > +++ b/config.guess > @@ -1362,6 +1362,7 @@ EOF >

Re: [PATCH] config.sub: Add support for SerenityOS

2021-03-10 Thread Dmitry V. Levin
On Wed, Mar 10, 2021 at 05:27:49PM +0200, Idan Horo wrote: > I noticed i was missing a test case in my earlier patch, so attached is a new > patch that includes an appropriate test case. Applied, thanks. -- ldv

Re: config.sub/config.guess using nonportable $(...) substitutions

2021-03-08 Thread Dmitry V. Levin
Hi, On Mon, Mar 08, 2021 at 01:21:57PM -0500, Nick Bowler wrote: > Hi, > > I noticed that config.sub (and config.guess) scripts were very recently > changed to use the POSIX $(...) form for command substitutions. [...] > What was the motivation for this change? Backquotes work fine and are > mor

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:*:*) >

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(-) > > d

Re: config.sub patch: recognize four-part configuration name for VxWorks OS

2021-01-25 Thread Dmitry V. Levin
On Fri, Jan 08, 2021 at 03:20:30AM +, Xin, Peixing wrote: > Hi John, > > Thanks much for your solution and info. I made some slight changes so that > things can be correct and more clear. If this one can be merged, appreciated. > > Thanks, > Peixing Applied, thanks! -- ldv

Re: bug: shell variable quoting in config.guess

2021-01-25 Thread Dmitry V. Levin
On Tue, Jan 19, 2021 at 08:49:34AM -0500, mlevins--- via Patches for the config.guess and config.sub scripts wrote: > After commit 827c77253b396c07306927b2a4b794a3251c48eb in the GNU config > repository, word splitting is no longer performed on the $sysctl shell > variable in config.guess: > >

Re: commit 5e531d391852 broke powerpc-eabivle

2021-01-06 Thread Dmitry V. Levin
On Thu, Jan 07, 2021 at 10:25:28AM +1030, Alan Modra wrote: > $ ./config.sub powerpc-eabivle > Invalid configuration `powerpc-eabivle': OS `eabivle' not recognized > > Also powerpc-eabisim and probably some arm configurations. > > * config.sub: Accept OS of eabi* and gnueabi*. > * tes

Re: config.sub update broke powerpc-eabivle

2021-01-06 Thread Dmitry V. Levin
On Thu, Jan 07, 2021 at 09:02:34AM +1030, Alan Modra wrote: > $ ./config.sub powerpc-eabivle > Invalid configuration `powerpc-eabivle': OS `eabivle' not recognized > $ ./config.sub powerpc-unknown-eabivle > Invalid configuration `powerpc-unknown-eabivle': OS `eabivle' not recognized > > Also power

Re: When running "config.guess" it fails to recognize the operating system. See output in the mail body.

2021-01-04 Thread Dmitry V. Levin
On Fri, Jan 01, 2021 at 01:37:32PM -0500, Zack Weinberg wrote: > On Fri, Jan 1, 2021 at 1:00 PM Alfred M. Szmidt wrote: > > Markus Fischer wrote: > >> I had downloaded from > >> "http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess"; > ... > > That doesn't correspond to t

Re: [PATCH] Recognize riscv32be, and riscv64be

2021-01-04 Thread Dmitry V. Levin
On Thu, Dec 31, 2020 at 03:27:52PM +0800, Kito Cheng wrote: > Recently RISC-V community got patches big-endian support for binutils, > and we'd like to accept that, however before accept that I think it > would be better to upstream config.sub and config.guess change here :) > > It's my check resu

Re: [PATCH] Loongarch support

2020-12-22 Thread Dmitry V. Levin
On Mon, Dec 21, 2020 at 03:16:10PM +0800, 武校田 wrote: > 在 2020年12月21日 01:06, Dmitry V. Levin 写道: > > Hi, > > > > Sorry, your patch fails to apply because it's corrupted, > > could you submit a patch that does apply, please? > > It's the new patch based

Re: Config.guess Documentation Bug Report

2020-12-20 Thread Dmitry V. Levin
On Fri, Dec 18, 2020 at 12:26:44AM -0700, Kyle J. McKay wrote: > Typo in config.guess help file "config.guess.x". > > See: > > https://git.savannah.gnu.org/cgit/config.git/tree/doc/config.guess.x > #n9 > > It should not say "is `CC' is", it should say "if `CC' is". > > The first "is" shou

Re: [PATCH] Loongarch support

2020-12-20 Thread Dmitry V. Levin
Hi, On Thu, Dec 10, 2020 at 08:25:37PM +0800, 武校田 wrote: > Hello! > > This patch add support for recognizing LoongArch as a valid cpu in > config.sub and config.guess. > > I added test cases, and they all passed. > > $ make check > cd testsuite && bash config-guess.sh && rm uname > cd testsuit

Re: PATCH: eliminate backtick substitution

2020-12-02 Thread Dmitry V. Levin
Hi Karl, I'm Cc'ing Ben who is the author of this change in hope he would be able to comment. On Wed, Dec 02, 2020 at 04:19:10PM -0700, Karl Berry wrote: > Solaris 10 > > Well, it is true that Solaris 10 /bin/sh does not understand $(...). > > "Configure scripts will automatically locat

Re: PATCH: eliminate backtick substitution

2020-12-01 Thread Dmitry V. Levin
Hi Karl, On Tue, Dec 01, 2020 at 04:40:07PM -0700, Karl Berry wrote: > Hi Dmitry, > > It's time to join the 1990s and replace the backtick substitutions in > config.guess and config.sub with the $(..) command substitution > > I admit I don't understand the reason behind this last change

Re: [kola...@mail.ru: Re: thumbv7[arm] support]

2020-12-01 Thread Dmitry V. Levin
Hi Karl, On Tue, Dec 01, 2020 at 04:40:08PM -0700, Karl Berry wrote: > Hi Dmitry, > > > + | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | > armv7[arm] | thumbv7[arm] \ > > thumbv7[arm] means thumbv7a | thumbv7r | thumbv7m - did you mean that? > > Yes, evidently that is

[PATCH] Update URLs of the latest version of config.guess and config.sub scripts

2020-11-19 Thread Dmitry V. Levin
-- ChangeLog| 5 + config.guess | 8 config.sub | 4 ++-- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 665054d..835617a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2020-11-19 Dmitry V. Levin + + * config.guess: Prefer c

Re: [PATCH] config.guess: combine two heuristics to detect musl libc

2020-11-19 Thread Dmitry V. Levin
, 2020, 5:41 PM -0800, Dmitry V. Levin , wrote: > > Apparently, this is needed to correctly detect musl libc in different > > versions of Alpine Linux. > > > > According to > > https://lists.gnu.org/archive/html/config-patches/2020-09/msg2.html, > > the ldd base

Re: Citadel email server install failure

2020-11-18 Thread Dmitry V. Levin
On Tue, Nov 10, 2020 at 10:14:43PM -0700, Stan Anderton wrote: > I have previously installed this successfully on a Raspberry Pi 3 which > recently died. I have tried unsuccessfully to install on my new Pi 4 4GB a > few times. I have updated, upgraded, did a dist-upgrade, and I get the > same res

Re: thumbv7[arm] support

2020-11-18 Thread Dmitry V. Levin
On Wed, Nov 18, 2020 at 03:03:54PM -0700, Karl Berry wrote: > We received this report on automake from Kolanich (thanks): > (https://debbugs.gnu.org/cgi/bugreport.cgi?bug=43945): > > Hello. When I crosscompiled some app I had to patch some file > generated by autoreconf -i, where I have to

[PATCH] config.guess: combine two heuristics to detect musl libc

2020-11-05 Thread Dmitry V. Levin
give a definitive answer. Reported-by: Cheng XU Signed-off-by: Dmitry V. Levin --- ChangeLog| 4 config.guess | 22 +- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 06a7553..8e97a97 100644 --- a/ChangeLog +++ b

Re: config.guess returns incorrect platform for alpine

2020-11-04 Thread Dmitry V. Levin
musl or GNU, then the compiler based check shouldn't be performed at all. Thanks, > Lastly, I merely restore the old behavior, which has never shown any issue on > non-musl systems. > > Best Regards, > > Cheng > On Nov 4, 2020, 4:45 PM -0800, Dmitry V. Levin , wrot

Re: config.guess returns incorrect platform for alpine

2020-11-04 Thread Dmitry V. Levin
t of the ldd based check. This means that you treat the ldd based check as the most trustworthy of these two. Thanks, > On Nov 4, 2020, 4:08 PM -0800, Dmitry V. Levin , wrote: > > On Wed, Nov 04, 2020 at 02:57:08PM -0800, Cheng XU wrote: > > > Please find the patch in the attachme

Re: config.guess returns incorrect platform for alpine

2020-11-04 Thread Dmitry V. Levin
On Wed, Nov 04, 2020 at 02:57:08PM -0800, Cheng XU wrote: > Please find the patch in the attachment. Thanks. > > Best Regards, > > Cheng If you're about to reintroduce the ldd check, please make sure the most trustworthy of these checks (whatever it is) is attempted first and its result is not d

Re: OS detection wrong on Alpine Linux 3.10

2020-09-20 Thread Dmitry V. Levin
On Sat, Sep 19, 2020 at 03:30:54PM +0200, Bruno Haible wrote: > The value of $host_os, determined by the current config.guess, is: > - On Alpine Linux 3.9: linux-musl > - On Alpine Linux 3.10: linux-gnu > - On Alpine Linux 3.12: linux-musl > > The reason is that config.guess tests 'ldd --ver

[PATCH] Add Elbrus 2000 support

2015-03-03 Thread Dmitry V. Levin
++-- testsuite/config-guess.data | 1 + testsuite/config-sub.data | 1 + 5 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c37095f..5275815 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2015-03-03 Dmitry V. Levin + + * config.guess (e2k:Linux