dfa MT-safe?

2019-12-14 Thread Bruno Haible
Hi Paul, Arnold, Jim, If the 'dfa' module supposed to be multithread-safe? I'm asking because dfa.c invokes setlocale (LC_ALL, NULL), and I've found out that this call is not MT-safe on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin, MSVC. I'm workin

Re: posix_spawn_file_actions_add* functions on musl libc

2019-03-24 Thread Bruno Haible
Hi Rich, > -- it would preclude advance creation of a file actions object which > will open or dup onto high fd numbers at a later time after the rlimit > has been increased. This is a highly theoretical use-case, isn't it? If you think POSIX should not specify things the way it does, please rep

Re: [PATCH] physmem: use sysinfo on linux for physmem_total

2014-04-15 Thread Pádraig Brady
On 04/15/2014 03:43 PM, Natanael Copa wrote: > * lib/physmem.c (physmem_total): Some systems like musl libc does not > (yet) support _SC_PHYS_PAGES. Use the linux syscall sysinfo first and > fallback to sysconf with _SC_PHYS_PAGES and _SC_PAGESIZE. This looks good. I confirmed the value

Re: gnulib portability issues

2012-06-12 Thread Eric Blake
;> has to malloc() some pushback storage, and if the malloc fails then so >> does the ungetc(). > > This is where we (musl vs glibc and perhaps you) have very different > design philosophies. Using a single non-switchable buffer simplifies > all the stdio code paths a lot, and r

Re: Why require SLOW_BUT_NO_HACKS for stubs?

2012-06-25 Thread John Spencer
On 06/25/2012 08:31 AM, Paul Eggert wrote: On 06/24/2012 03:42 PM, John Spencer wrote: anything is better than a failed build. Isn't this discussion moot now, with respect to musl? That is, I thought the problem with musl and gnulib is fixed, so we don't have a failed build now.

lock: Fix cross-compilation guesses

2019-08-29 Thread Bruno Haible
k_rdlock_prefer_writer=yes], [gl_cv_pthread_rwlock_rdlock_prefer_writer=no], - [gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing yes"]) + [case "$host_os" in + # Guess no on glibc systems. + *-gnu* | gnu*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing

Re: gl_{,SN}PRINTF_DIRECTIVE_N wrongly fail on Ubuntu 18.04

2020-03-16 Thread Bruno Haible
ILE_IFELSE( @@ -1434,6 +1433,7 @@ changequote(,)dnl [gl_cv_func_snprintf_directive_n="guessing yes"], [gl_cv_func_snprintf_directive_n="guessing no"]) ;; +changequote(,)dnl

Re: Assertion error when building in Debug mode with MSVC

2022-01-29 Thread Bruno Haible
'' builds (compiler option @samp{-MD}) are +supported, not ``debug'' builds (compiler option @samp{-MDd}). @item @c There is musl-gcc on Ubuntu, and Alpine Linux 3.3.3. musl libc is rarely tested.

Re: namespacing issues with Gnulib

2022-12-08 Thread Eli Zaretskii
> From: Bruno Haible > Cc: gavinsmith0...@gmail.com, s...@gentoo.org, bug-texi...@gnu.org, > bug-gnulib@gnu.org > Date: Thu, 08 Dec 2022 20:00:31 +0100 > > Eli Zaretskii wrote: > > > Attempting to --whole-archive link on that platform grants us: > > > >

ptsname_r: don't expect that this function sets errno

2018-02-24 Thread Bruno Haible
glibc ptsname_r sets errno when it fails, but this is not specified in https://www.gnu.org/software/libc/manual/html_node/Allocation.html and musl libc does not do the same thing. This leads to a test failure of 'test-ptsname_r' on Alpine Linux 3.7.0. This patch fixes it. 2018-02

Re: getcwd replacement + cross compilation

2018-08-23 Thread Bruno Haible
yes > Linux Alpine 3.7 (musl libc) nono, but it is partly working > Linux alpha (Debian 5) nono, but it is partly working > kFreeBSD yes no, but it is partly working > Hurd

Re: While cross compiling, assume the gcc signbit support for the musl as well

2019-03-22 Thread Bruno Haible
Hi, Many people refuse to click on URLs that are hosted on an unknown domain, moreover with the word 'click' and a long identifier in it. This is the kind of URL that is most often used to invade our privacy and steal our secrets. Could you therefore please write a self-contained mail (no URLs)?

setlocale-null: remove need for -lpthread on musl libc, *BSD, Haiku

2019-12-16 Thread Bruno Haible
This patch removes the need to link with -lpthread on several platforms, by using the "weak symbols" trick from lock.h. With this, the only platform on which setlocale-null requires -lpthread is AIX. 2019-12-16 Bruno Haible setlocale-null: Remove need for -lpthread on musl

Re: patch: stdio fiex for UnixWare

2020-10-11 Thread Bruno Haible
nclude -#if HAVE___FPURGE /* glibc >= 2.2, Haiku, Solaris >= 7, Cygwin >= 1.7.10, Android API >= 23 */ -# include +#if HAVE___FPURGE /* glibc >= 2.2, Haiku, Solaris >= 7, Cygwin >= 1.7.10, Android API >= 23, musl libc */ +# if HAVE_

Re: a pthread_cond_timedwait bug

2024-06-29 Thread Bruno Haible
(no failure in 20 runs) The test-pthread-cond, test-cond, test-cnd tests are not the only ones that fail in this VM configuration. test-pthread_sigmask[12] and test-sigprocmask occasionally fail as well. Both in glibc and in musl libc systems. This patch avoids the test failures. 2024-06-29 Br

Re: musl, fdopen test

2012-06-19 Thread Bruno Haible
it test tests/test-fdopen.c it appears that it was not the intent of gnulib to prohibit this behaviour. Rather, musl is the first platform to exhibit this behaviour, and gnulib's intent was to make sure that fdopen(invalid fd, ...) 1. does not crash, 2. sets errno when it fails. Er

Re: [PATCH v2] physmem: use sysinfo on linux for physmem_total

2014-04-18 Thread Pádraig Brady
On 04/18/2014 10:16 AM, Natanael Copa wrote: > * lib/physmem.c (physmem_total): Some systems like musl libc does not > (yet) support _SC_PHYS_PAGES. Use the linux syscall sysinfo as fallback > if _SC_PHYS_PAGES or _SC_PAGESIZE fails. > > Signed-off-by: Natanael Copa > ---

doc: Update target platforms list

2024-04-25 Thread Bruno Haible
ted. @item -@c There is Alpine Linux 3.14, and also musl-gcc on Ubuntu. +@c There is Alpine Linux 3.19, and also musl-gcc on Ubuntu. musl libc on Linux is occasionally tested. @end itemize @item macOS@. In versions 12.5, it's occasionally tested. In version 10.5, it's rarely tested

Re: musl, printf out-of-memory test

2012-06-21 Thread Tom Tromey
> "Jim" == Jim Meyering writes: Jim> That is correct. It is a feature of gdb-7.0 and newer. Jim> You can inspect (watch/break-at/etc.) the same address and expect it Jim> to refer to the same memory location in multiple invocations. Jim> This makes gdb's command-line history even more useful

Re: bool and C23

2022-08-21 Thread Tim Rice
macros > macOS: self-contained > mingw: self-contained > Minix: self-contained > musl: self-contained > NetBSD: self-contained > OpenBSD: self-contained > Solaris 10: #include -> #include , > #include , defines only macros > Solaris 11: #includ

Re: gnulib changes breaks Libtasn1 4.10 build with musl

2017-01-30 Thread Bruno Haible
Maxin B. John wrote: > ./stdint.h:89:5: error: #if with no expression > #if > ... > (Link: http://errors.yoctoproject.org/Errors/Details/123659/ ) > > This appears to be an error introduced by the gnulib commit: > > http://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=5a400b3f5a1f5483dbfd75d38

Re: getusershell tests: Fail if empty lines are returned.

2024-05-18 Thread Bruno Haible
Hi Collin, > I'll submit a bug report on the musl lists now. Thanks. > I don't think this function is used too much Probably no one noticed the bug before, because the typical use of this function is to test whether a given shell string is valid, as in [1], and for this use

another stdio patch for UnixWare

2020-10-01 Thread Tim Rice
/* Return the number of pending (aka buffered, unflushed) bytes on the stream, FP, that is open for writing. */ diff --git a/lib/freadable.c b/lib/freadable.c index 160fc3074..882906175 100644 --- a/lib/freadable.c +++ b/lib/freadable.c @@ -26,7 +26,8 @@ #endif /* This file is not used on

Re: [PATCH] getusershell: Work around musl bugs.

2024-05-19 Thread Collin Funk
Hi Bruno, On 5/19/24 5:03 PM, Bruno Haible wrote: > Perfect. Thanks a lot! Sadly, it looks like this uncovered that the gnulib version is buggy too. Given this etc/shells: # valid login shells /bin/sh # abc /bin/ash # 123 /bin/bash # def ===

Re: [PATCH] getusershell: Work around musl bugs.

2024-05-19 Thread Bruno Haible
Collin Funk wrote: > Sadly, it looks like this uncovered that the gnulib version is buggy > too. You don't need an Alpine Linux machine to debug this. You can debug it on a glibc system like this: 1. create a testdir for the module getusershell, 2. configure through ac_cv_func_getusersh

Re: test-pthread-rwlock failure on Pop!_OS 22.04 LTS

2024-06-28 Thread Bruno Haible
Some more measurements in virtual machines with 8 CPUs: Debian 9 (glibc 2.24) 4 CPUs: 0.33 sec 8 CPUs: 0.34 sec Debian 10 (glibc 2.28) 4 CPUs: 23 sec8 CPUs: 29 sec So, while glibc < 2.25 did not prefer writers (like musl libc, OpenBSD 7.5, AIX), it's only start

Re: [musl] Re: musl bugs found through gnulib

2012-06-21 Thread Paul Eggert
On 06/20/2012 07:21 PM, Rich Felker wrote: >>> Replacement of mktime, because of >>> checking for working mktime... no > > This test is buggy; it goes into an infinite loop due to integer > overflow UB, because the condition to break out of the loop is only > checked when the test does not fail

Re: gnulib portability issues

2012-06-11 Thread Rich Felker
eading until error, and count the bytes read. Then > >> ungetc all the bytes that you read, in reverse order, and restore > >> the file descriptor. Of course ISO C doesn't guarantee this, but > >> it should be fairly portable in practice. > > > > N

fclose: Fix test failure on AIX 7.2

2021-01-05 Thread Bruno Haible
lying file descriptor for fflush() and fclose(), most systems - either do it right for both — like musl libc — - or wrong for both — like glibc (at least up to version 2.32) —, whereas AIX gets it right for fflush() but wrong for fclose(). This patch fixes it. 2021-01-05 Bruno Haible

Re: canonicalize test failures on Cygwin

2021-01-20 Thread Bruno Haible
This function misbehaves on consecutive slashes on some platforms: musl libc 1.2.2, AIX 7. diff --git a/m4/canonicalize.m4 b/m4/canonicalize.m4 index 6821c70..0dfb2da 100644 --- a/m4/canonicalize.m4 +++ b/m4/canonicalize.m4 @@ -1,4 +1,4 @@ -# canonicalize.m4 serial 36 +# canonicalize.m4 serial 37 dnl Co

hard_locale on Android

2023-01-17 Thread Bruno Haible
e; +#endif + + return false; } diff --git a/tests/test-hard-locale.c b/tests/test-hard-locale.c index eb02f4f6e6..6f94e6c3ac 100644 --- a/tests/test-hard-locale.c +++ b/tests/test-hard-locale.c @@ -38,8 +38,10 @@ test_one (const char *name, int failure_bitmask) /* musl libc has special

Re: [PATCH] Add cross-compilation guesses for Midipix

2023-02-16 Thread Ørjan Malde
--- Original Message --- On Thursday, February 16th, 2023 at 10:55 PM, Bruno Haible wrote: > Ørjan Malde wrote: > > > I had no intention of hiding my name:-) > > > OK, we're past step 1 :) > > > we rely on musl for the C library, theoreticall

test-getopt-posix fails on musl

2018-02-24 Thread Bruno Haible
Hi, On Alpine Linux 3.7.0, which uses musl libc, the gnulib test 'test-getopt-posix' fails. To me, this looks like a POSIX compliance bug of musl. Find attached a reduced test case. $ gcc foo.c -Wall $ ./a.out foo.c:134: assertion 'options[0] == ':' || ((optio

doc: Update regarding linear string search

2023-03-28 Thread Bruno Haible
Regarding the run-time complexity of the memmem, strstr, strcasestr, wcsstr implementations: - For memmem: It's interesting to see that after glibc and musl, now also FreeBSD, NetBSD, and OpenBSD have adopted the two-way algorithm for O(n) behaviour. - For strcasestr, on the other

Why require SLOW_BUT_NO_HACKS for stubs?

2012-06-10 Thread Isaac Dunham
Hello, I'm using musl as a libc, and have run into a number of times that gnulib stopped build. By defining SLOW_BUT_NO_HACKS, the software ended up working. This is the documented behavior, but it doesn't seem like the right one: if a stub is usable enough to allow using it, why shoul

Re: new module 'aligned-malloc'

2020-07-22 Thread Bruno Haible
27;s the complete matrix: posix_memalign aligned_alloc memalign glibc Y Y Y musl Y Y Y macOS - - - FreeBSD Y Y - Net

Re: bug#64937: "who" reports funny dates

2023-08-08 Thread Bruno Haible
Robert Pluim wrote: > Thorsten> They don't record at all. > Thorsten> Which means tools like who just don't show anything. And emacs > will > Thorsten> never find out the boot time with the current code. > > What API do you suggest we use inste

Re: hard-locale: make multithread-safe

2019-12-18 Thread Bruno Haible
> Thanks, this change looks fine to me. Thanks. But before I do the rewrite, let me add a unit test first. It's a bit tricky only on musl libc, NetBSD, and OpenBSD. Other than that, there's a test failure on Android 4.3, where - setlocale (category, NULL) always returns NULL.

Re: gnulib portability issues

2012-06-10 Thread Paul Eggert
tnot that they don't need. Instead, wouldn't it be better to change gnulib/lib/stdio-impl.h so that it groks the musl FILE object? Naturally, this would inspect musl's "internals", but that'd be no different from all those other libraries that stdio-impl.h supports.

Re: musl printf bugs

2012-06-17 Thread Rich Felker
On Sun, Jun 17, 2012 at 11:57:05PM +0200, Bruno Haible wrote: > Rich Felker wrote: > > considering printf broken, and replacing printf > > because of this, is a big issue. Replacing printf is non-trivial > > There is also another test that causes musl's printf to be overridden: > > checking whe

Re: stdioext on musl

2012-06-17 Thread Rich Felker
On Mon, Jun 18, 2012 at 02:59:56AM +0200, Bruno Haible wrote: > For 2), the issue is that for a stream opened in write-only mode, > immediately after the fopen() call, gnulib expects fwriting(fp) to be > true: Thanks. I committed a change whereby __freading now returns 1 whenever the stream is rea

Re: musl, printf out-of-memory test

2012-06-20 Thread Jim Meyering
Bruno Haible wrote: > Rich Felker wrote: >> The problem was an obscure pointer-arithmetic overflow ... >> where the stack pointer is near the 4GB boundary. > > This explains also why it occurred only with a certain probability > outside gdb, but with 100% probability from within gdb: Apparently gdb

Re: lib/freadseek.c:69:3: error: #error "Please port gnulib freadseek.c to your platform!

2018-12-29 Thread Assaf Gordon
Hello, On 2018-12-29 7:51 a.m., Necktwi Ozfguah wrote: Its coreutils-8.30 with musl-1.1.20 Linux aarch64, Gentoo. I've untared coreutils-8.30.tar.xz cd coreutils-8.30 ./bootstrap ./configure CFLAGS="-march=armv8-a+crc -mtune=cortex-a53 -mcpu=cortex-a53 -ftree-vectorize -O2 -pipe -f

Re: While cross compiling, assume the gcc signbit support for the musl as well

2019-03-22 Thread Eric Blake
On 3/22/19 12:31 PM, Necktwi Ozfguah wrote: > Please patch the gnulib with > https://u7535577.ct.sendgrid.net/wf/click?upn=S8VPHvg5-2FzxqlLfWXPq42mUxcZDSyC3MqblYskqrUpUxEeXj2ty4PFy2n-2BuTk72hD1MBwWBQhPZQm9-2FjzWfaTam8LAKZgRnJaqW2A7Bwxgbx-2FknGWQJOWHXuaHJTvXOh_xXjksHEkT5Azm40kLn-2F-2BTLbhdQ6JTRXNvW

Re: [PATCH] mountlist/ptsname_r: leverage AC_HEADER_MAJOR

2016-04-16 Thread Mike Frysinger
ers for use and set up some defines. > > > > Does this change fix a compilation problem? You did not say so. > > Context in http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00025.html > glibc-2.23 and musl now need this change it seems. heh, i completely forgot about that thread ;) -mike signature.asc Description: Digital signature

Re: gnulib portability issues

2012-06-11 Thread Rich Felker
s. Since (correct me if I'm wrong on this) the goal of gnulib seems to be making programs that use it extremely portable, there needs to be a portable fallback solution regardless of what solution ends up being best with musl. So far there are the options of the ugly dup/dup2 mess to imple

Re: boot-time: straighten code

2023-08-12 Thread Paul Eggert
| defined __ANDROID__ + +/* Store the uptime counter, as managed by the Linux kernel, in *P_UPTIME. + Return 0 upon success, -1 upon failure. */ +_GL_ATTRIBUTE_MAYBE_UNUSED +static int +get_linux_uptime (struct timespec *p_uptime) +{ + /* The clock_gettime facility returns the uptime with a

doc: Add references to the LSB

2020-11-22 Thread Bruno Haible
Since glibc and musl libc are now two libcs with supposedly the same API, it's useful to be able to reference the common specification behind this API. Beyond POSIX, it is the LSB. Also some of the API (e.g. dl_iterate_phdr) is found on BSD systems as well, but not specified by POSIX. Ther

Re: bug#64937: "who" reports funny dates

2023-08-08 Thread Thorsten Kukuk
On Tue, Aug 08, Bruno Haible wrote: > Thorsten Kukuk wrote: > > On musl libc systems like Alpine, > > you don't have utmp nor wtmp. > > But on Alpine Linux, I don't see a systemd nor a logind daemon. > How are logins meant to be recorded on this system? The

Re: bug#64937: "who" reports funny dates

2023-08-08 Thread Robert Pluim
>>>>> On Tue, 8 Aug 2023 14:29:27 +, Thorsten Kukuk said: Thorsten> On Tue, Aug 08, Bruno Haible wrote: >> Thorsten Kukuk wrote: >> > On musl libc systems like Alpine, >> > you don't have utmp nor wtmp. >> >&

Re: Accommodate non-recursive Automake in a less hacky way

2021-12-17 Thread Bruno Haible
al was in fact not used, since the beginning of the getopt-posix and getopt-gnu modules. Apparently we considered this optimization "not worth it". But this optimization is OK. I verified that it works fine on - Linux/glibc, from CentOS 6 to Ubuntu 20.04 - Linux/musl - Hurd - FreeB

Re: gnulib portability issues

2012-06-11 Thread Paul Eggert
me thing. > They're purposefully opaque so that they can be changed if an > alternate implementation proves better. Dragonfly BSD attacked this problem by supplying a function __sreadahead that returns the value in question. Perhaps musl could do something similar? That would fix the probl

Re: namespacing issues with Gnulib

2022-12-08 Thread Bruno Haible
Eli Zaretskii wrote: > > Attempting to --whole-archive link on that platform grants us: > > > > $ x86_64-linux-musl-gcc -o ginstall-info install-info.o \ > > -Wl,--whole-archive ../gnulib/lib/libgnu.a -Wl,--no-whole-archive > > /usr/libexec/gcc/x86_64-linux-musl/l

Re: [PATCH] Add cross-compilation guesses for Midipix

2023-02-15 Thread Bruno Haible
nce it's too easy to set up fake accounts automatically). So, please use your real name, be it Ørjan Malde, Rumpelstilzchen, or whatever. 2) I understand from [1] that midipix is based on musl libc, with the Linux kernel replaced with a 'psxscl' layer that is based on Windo

modfl: Work around bug on NetBSD 9.3/arm64

2024-01-18 Thread Bruno Haible
+} + ]])], + [gl_cv_func_modfl_works=yes], + [gl_cv_func_modfl_works=no], + [case "$host_os" in + # Guess yes on glibc systems. + *-gnu* | gnu*) gl_cv_func_modfl_works="guessing yes" ;; +

strtol, strtoll, strtoul, strtoull: Make ISO C 23 compliant

2023-03-16 Thread Bruno Haible
uot; ;; +# Guess no on native Windows. + mingw*) gl_cv_func_strtol_works="guessing no" ;; +# Guess no on glibc systems. +*-gnu* | gnu*) gl_cv_func_strtol_works="guessing no" ;; +

Re: bug#39236: [musl] coreutils cp mishandles error return from lchmod

2020-02-12 Thread Florian Weimer
* Paul Eggert: > On 1/22/20 2:05 PM, Rich Felker wrote: >> I think we're approaching a consensus that glibc should fix this too, >> so then it would just be gnulib matching the fix. > > I installed the attached patch to Gnulib in preparation for the upcoming > glibc fix. The patch causes fchmodat

Re: m4 1.4.19 with musl libc 1.2.3 fails test-posix_spawn_file_actions_addclose

2022-04-11 Thread Eric Blake
Forwarding to gnulib, which owns this test. On Mon, Apr 11, 2022 at 12:15:47PM +0200, Natanael Copa wrote: > ncopa-desktop:~/aports/main/m4/src/m4-1.4.19 (master)$ cat > tests/test-suite.log > = >GNU M4 1.4.19: tests/test-suite.log > ==

Re: getcwd replacement + cross compilation

2018-08-23 Thread Bruno Haible
nux CentOS 5 nono, but it is partly working Linux CentOS 6 nono, but it is partly working Linux CentOS 7 noyes Linux Alpine 3.7 (musl libc) nono, but it is partly working Linux alpha (Deb

Re: doc: Mention rand and srand limitations

2023-11-10 Thread Bruno Haible
tithreaded results. > Solaris 11.4 Expected value #55372 not found in multithreaded results. > OpenBSD 7.4 rand() is non-deterministic. > Cygwin 3.4.6 rand() is non-deterministic. And also: musl libc 3.18 Expected value #13730 not found in multithreaded results. (3 failures

Re: [PATCH] mountlist/ptsname_r: leverage AC_HEADER_MAJOR

2016-04-16 Thread Pádraig Brady
d not say so. Context in http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00025.html glibc-2.23 and musl now need this change it seems. I suggested a makedev gnulib module in the thread above as it's not just the headers that are varying, as also some systems use mkdev() and some maked

Re: -Wlto-type-mismatch warning in error()

2022-12-08 Thread Eli Zaretskii
e case is that this unresolved call will be resolved by linking against libc. > I imagine this would result is some very strange runtime failures if > anyone ever observed install-info hit an xalloc_die condition. Not if the reference in xalloc_die was resolved to the libc function by the same

ptsname_r: Work around bug on Android 4.3

2019-01-26 Thread Bruno Haible
correct. * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R is defined, just fix the return value. * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword: The behaviour of musl libc is nothing to be "fixed", since it is

doc: Add more details about O_EXEC and O_SEARCH

2024-08-28 Thread Bruno Haible
- "O_SEARCH: Open directory for search only." does not support an expectation that fchmod() would succeed for a file descriptor opened with one of these flags. Nor does <https://pubs.opengroup.org/onlinepubs/9799919799/functions/fchmod.html>. * musl libc define

localcharset should not use directly GLIBC21 check

2013-07-25 Thread Timo Teras
Currently localcharset uses m4/glibc21.m4 (ac_cv_gnu_library_2_1) to figure out if charset.alias needs to be installed or not. However, a separate ac_cv_iconv_has_standard_charset_names or similar would be better so it can be controlled better. Especially important with musl c library, where

fmaf: Document QEMU bug

2021-01-31 Thread Bruno Haible
gwin 1.5, mingw. Portability problems not fixed by Gnulib: @itemize +@item +This function produces wrong results on some platforms: +musl libc/powerpc64le when emulated by QEMU 5.0.0. +@c https://bugs.launchpad.net/qemu/+bug/1912934 @end itemize

[PATCH] mktime: back in sync with GNUlib

2022-09-08 Thread Paul Eggert
-08 Paul Eggert + + mktime: back in sync with GNUlib + * config/srclist.txt: glibc has synced mktime from Gnulib. + 2022-09-07 Bruno Haible posix_spawn_file_actions_addclose tests: Avoid test failure on musl. diff --git a/config/srclist.txt b/config/srclist.txt index

Re: [PATCH] physmem: use sysinfo on linux for physmem_total

2014-04-16 Thread Pádraig Brady
On 04/15/2014 03:49 PM, Pádraig Brady wrote: > On 04/15/2014 03:43 PM, Natanael Copa wrote: >> * lib/physmem.c (physmem_total): Some systems like musl libc does not >> (yet) support _SC_PHYS_PAGES. Use the linux syscall sysinfo first and >> fallback to sysconf with _SC_PHYS_P

Re: gnulib changes breaks Libtasn1 4.10 build with musl

2017-01-30 Thread Maxin B. John
Hi Bruno, On Mon, Jan 30, 2017 at 3:58 PM, Bruno Haible wrote: > Maxin B. John wrote: >> ./stdint.h:89:5: error: #if with no expression >> #if >> ... >> (Link: http://errors.yoctoproject.org/Errors/Details/123659/ ) >> >> This appears to be an error introduced by the gnulib commit: >> >> http://

Re: Problem building free.c with musl libc

2024-07-09 Thread Bruno Haible
Hi Reuben, Reuben Thomas wrote: > Please see this issue report for the 'mmv' project, which I maintain: > > https://github.com/rrthomas/mmv/issues/23 Since you did not give a "How to reproduce" recipe, I am forced to do guesswork. Building the 'free' module on Alpine Linux works fine, for years

Re: Android NDK r26 and utmpx

2024-01-20 Thread Paul Eggert
ff --git a/lib/boot-time.c b/lib/boot-time.c index c1171e8024..c9dff8de4e 100644 --- a/lib/boot-time.c +++ b/lib/boot-time.c @@ -82,7 +82,7 @@ get_boot_time_uncached (struct timespec *p_boot_time) /* Try to find the boot time in the /var/run/utmp file. */ -# if defined UTMP_NAME_FUNCTION /* g

[PATCH] lib/xstrtol.c: Fix xstrtol() on EINVAL (invalid base)

2024-07-24 Thread Alejandro Colomar
POSIX leaves the value of *endptr unspecified if the base is invalid; it is not unmodified. glibc and musl libc leave the object unmodified. However, the BSDs and Bionic libc modify it to be nptr. That, combined with the fact that POSIX allows implementations of strtol(3) to set EINVAL when no

[PATCH] HACKING: Fix a typo.

2024-04-25 Thread Collin Funk
plaforms: +and test this directory on various platforms: - Linux/glibc systems, - Linux/musl systems, - macOS, -- 2.44.0

Re: doc: Update for glibc 2.39

2024-06-15 Thread Bruno Haible
{wf32}, +@code{wf64}) on some platforms: +glibc 2.38, musl libc, macOS 12.5, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.2, +AIX 7.2, HP-UX 11, Solaris 11.4, Cygwin 2.9.0, mingw, MSVC 14. +@item On Windows platforms (excluding Cygwin), this function does not set @code{errno} upon failure. @item ... etc.

Re: -Wlto-type-mismatch warning in error()

2022-12-08 Thread Arsen Arsenović
a1b0 error in section .text of .../install-info/ginstall-info (gdb) info symbol 0x77eb56c0 error_at_line in section .text of /usr/lib64/libc.so.6 (gdb) # symbol values obtained via p &... And it wouldn't be, since the executable contains: 76: 61b0249 FUN

Make internationalization tests stricter on musl systems

2023-06-13 Thread Bruno Haible
Many i18n tests in gnulib and gettext are not really exercised, because so far all m4/locale-*.m4 tests report that there is no usable French / Turkish / etc. locale on a musl system. This is correct when one looks at all locale categories together and expects e.g. in the French UTF-8 locale a

Re: musl printf bugs

2012-06-17 Thread Bruno Haible
Rich Felker wrote: > considering printf broken, and replacing printf > because of this, is a big issue. Replacing printf is non-trivial There is also another test that causes musl's printf to be overridden: checking whether printf supports the 'ls' directive... no The test program exited with

Re: musl compatibility

2012-06-23 Thread Paolo Bonzini
On Sun, Jun 17, 2012 at 6:15 PM, Bruno Haible wrote: > Paul Eggert wrote: >> On 06/12/2012 04:21 AM, Paolo Bonzini wrote: >> > perhaps we can follow the suggestion and >> > replace "if (freadahead (f))" with "if (freading(f) && !feof(f))" in >> > closein.c. >> >> Yes, thanks, I like this idea the

Re: bug#39236: [musl] coreutils cp mishandles error return from lchmod

2020-02-12 Thread Florian Weimer
* Rich Felker: > Note that in any case, musl's lchmod/fchmodat is not affected since it > always refuses to change symlink modes; I did this because I was > worried that chmod on the magic symlink in /proc might pass through > not just to the symlink it refers to, but to the symlink target if one

Re: openat wrapper assumes that O_RDONLY is disjoint from R_RDWR

2020-03-07 Thread Ben Pfaff
hetical system doesn't exist: > > O_RDONLY O_WRONLY O_RDWR > > AIX > Android > BeOS > Cygwin > FreeBSD > glibc/Linux > Haiku > HP-UX > Interix > IRIX > macOS > mingw, MSVC > Minix > MirBSD > musl > NetBSD > Op

[PATCH] NEWS: Document Automake 1.14 requirement here too.

2022-03-13 Thread Ben Pfaff
musl libc. diff --git a/NEWS b/NEWS index 1a1c21970a..e5a875021e 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,8 @@ Important general notes DateModules Changes +2022-02-20 (all) Automake >= 1.14 and Autoconf >= 2.64 are required. + 2021-06-04 (all) The l

Re: O_PATH

2022-06-12 Thread Bruno Haible
Paul Eggert wrote: > I also installed the 2nd attached patch which is just a doc update. The platforms that have O_PATH are: - Linux (glibc ≥ 2.14, musl, Android) - FreeBSD ≥ 13.1 I'm therefore doing this doc update: 2022-06-12 Bruno Haible doc: Update O_PATH platfo

Re: getcwd replacement + cross compilation

2018-08-23 Thread Sergio Durigan Junior
but it is partly working >> Linux CentOS 7 no yes >> Linux Alpine 3.7 (musl libc) nono, but it is partly working >> Linux alpha (Debian 5) nono, but it is partly working >> kFreeBSD

Re: argp: pass NULL as msgid to dgettext without checks

2019-01-05 Thread Bruno Haible
nd likewise the LSB 3.0 https://refspecs.linuxfoundation.org/LSB_3.0.0/LSB-PDA/LSB-PDA/baselib-dgettext.html > since my libc is musl, tar is using builtin argp implementation, which will > pass NULL as msgid to dgettext without additional checks. > > > could you please check if

Re: [PATCH] mountlist/ptsname_r: leverage AC_HEADER_MAJOR

2016-04-16 Thread Dmitry V. Levin
gt; >>will probe some headers for use and set up some defines. > > > >Does this change fix a compilation problem? You did not say so. > > Context in > http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00025.html > glibc-2.23 and musl now need this change it s

Re: Problem building free.c with musl libc

2024-07-10 Thread Reuben Thomas
On Wed, 10 Jul 2024 at 02:58, Bruno Haible wrote: > > Since you did not give a "How to reproduce" recipe, I am forced to do > guesswork. Building the 'free' module on Alpine Linux works fine, for > years already. > Do feel free to simply ask for more information! I do not want to spend time unne

Re: grantpt test

2012-06-22 Thread Bruno Haible
+ doc/posix-functions/grantpt.texiFri Jun 22 12:33:52 2012 @@ -20,5 +20,5 @@ IRIX 5.3. @item This function reports success for invalid file descriptors on some platforms: -Cygwin 1.7.9. +OpenBSD, Cygwin 1.7.9, musl libc. @end itemize --- lib/grantpt.c.orig Fri Jun 22 12:33:55 2012 +

Re: Why require SLOW_BUT_NO_HACKS for stubs?

2012-06-24 Thread John Spencer
english good enough to contact this list, they probably don't have much interest to discuss with you guys for days until they finally get a gnulib fix upstream (which will be in their software of choice months or years later) or not, unless they know how to apply patches manually. you seem

Re: [PATCH] lib/xstrtol.c: Fix xstrtol() on EINVAL (invalid base)

2024-07-24 Thread Alejandro Colomar
On Wed, Jul 24, 2024 at 09:27:14PM GMT, Alejandro Colomar wrote: > POSIX leaves the value of *endptr unspecified if the base is invalid; > it is not unmodified. > > glibc and musl libc leave the object unmodified. However, the BSDs and > Bionic libc modify it to be nptr. > >

doc: Mark HP-UX as unsupported

2020-05-10 Thread Bruno Haible
. * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported. diff --git a/doc/gnulib-intro.texi b/doc/gnulib-intro.texi index be703a4..f935875 100644 --- a/doc/gnulib-intro.texi +++ b/doc/gnulib-intro.texi @@ -156,8 +156,6 @@ musl libc is rarely tested. @item Minix 3.3.0 is rarely tested

unicodeio: Fix wrong result on FreeBSD

2020-12-07 Thread Bruno Haible
ey cannot convert. */ +# if !defined _LIBICONV_VERSION || (res > 0 && outptr - outbuf == 1 && *outbuf == '?') # endif /* musl libc iconv() inserts a '*' if it cannot convert. */

Re: lib/freadseek.c:69:3: error: #error "Please port gnulib freadseek.c to your platform!

2018-12-29 Thread Bruno Haible
rame-pointer -Wno-error" CXXFLAGS=$CFLAGS > --prefix="/usr" > make -j3 You are on your own when you build a tarball in a way that is different from the one described in the INSTALL file. Namely: - You shouldn't invoke 'bootstrap' when building from a tarball.

Re: bug#64937: "who" reports funny dates

2023-08-08 Thread Robert Pluim
t the boot time with the current code. >> >> What API do you suggest we use instead? Bruno> musl libc runs only on Linux. On Linux, you can use this approach from Gnulib: Bruno> https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob;f=lib/readutmp.c;h=4e1d7ec26bef6cba447443

Re: [PATCH] getusershell: Work around musl bugs.

2024-05-19 Thread Collin Funk
On 5/19/24 7:17 PM, Bruno Haible wrote: > You don't need an Alpine Linux machine to debug this. You can debug it > on a glibc system like this: > 1. create a testdir for the module getusershell, > 2. configure through >ac_cv_func_getusershell=no ./configure > 3. use the unit test, or

Re: bug#39236: [musl] coreutils cp mishandles error return from lchmod

2020-02-12 Thread Rich Felker
On Wed, Feb 12, 2020 at 12:50:19PM +0100, Florian Weimer wrote: > * Paul Eggert: > > > On 1/22/20 2:05 PM, Rich Felker wrote: > >> I think we're approaching a consensus that glibc should fix this too, > >> so then it would just be gnulib matching the fix. > > > > I installed the attached patch to

Re: [platform-testers] new snapshot available: grep-3.4-almost.19-ff30

2020-09-19 Thread Jeffrey Walton
nux-gnu. > > > > ... > > FAIL: test-hard-locale > > FAIL: test-setlocale_null-mt-all > > > > Attached are config.log and test-suite.log. > > The cause of these two failures is the wrong triplet: $host_os is > - on Alpine Linux 3.10: linux-gnu, >

lib/freadseek.c:69:3: error: #error "Please port gnulib freadseek.c to your platform!

2018-12-29 Thread Necktwi Ozfguah
Hi, While I am building coreutils with musl on aarch64 (RaspberryPi 3B), this error is thrown: lib/freadseek.c: In function 'freadptrinc': lib/freadseek.c:69:3: error: #error "Please port gnulib freadseek.c to your platform! Look at the definition of getc, getc_unlocked on yo

Re: *c32*: Inline most functions on glibc and musl libc

2023-04-05 Thread Bruno Haible
I wrote: > * lib/uchar.in.h: Invoke _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END. > (btoc32): Inline if _GL_WCHAR_T_IS_UCS4. > (c32isalnum, c32isalpha, c32isblank, c32iscntrl, c32isdigit, c32isgraph, > c32islower, c32isprint, c32ispunct, c32isspace, c32isupper, > c32

[PATCH] physmem: use sysinfo on linux for physmem_total

2014-04-15 Thread Natanael Copa
* lib/physmem.c (physmem_total): Some systems like musl libc does not (yet) support _SC_PHYS_PAGES. Use the linux syscall sysinfo first and fallback to sysconf with _SC_PHYS_PAGES and _SC_PAGESIZE. Signed-off-by: Natanael Copa --- lib/physmem.c | 13 - m4/physmem.m4 | 2 +- 2 files

Re: netdb: Define NI_MAXHOST and NI_MAXSERV.

2024-06-27 Thread Bruno Haible
_MAXHOST 1025 Bruno [1] https://datatracker.ietf.org/doc/html/rfc2553 [2] https://www.openwall.com/lists/musl/2017/04/23/8

<    1   2   3   4   5   >