{"id":2221095,"url":"http://patchwork.ozlabs.org/api/1.1/covers/2221095/?format=json","web_url":"http://patchwork.ozlabs.org/project/uclibc-ng/cover/20260408190035.2759806-1-cmirabil@redhat.com/","project":{"id":55,"url":"http://patchwork.ozlabs.org/api/1.1/projects/55/?format=json","name":"uClibc NG development","link_name":"uclibc-ng","list_id":"devel.uclibc-ng.org","list_email":"devel@uclibc-ng.org","web_url":"http://www.uclibc-ng.org","scm_url":"","webscm_url":"http://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git"},"msgid":"<20260408190035.2759806-1-cmirabil@redhat.com>","date":"2026-04-08T19:00:28","name":"[uclibc-ng-devel,v1,0/7] Bug fixes discovered trying to build allnoconfig","submitter":{"id":82370,"url":"http://patchwork.ozlabs.org/api/1.1/people/82370/?format=json","name":"Charles Mirabile","email":"cmirabil@redhat.com"},"mbox":"http://patchwork.ozlabs.org/project/uclibc-ng/cover/20260408190035.2759806-1-cmirabil@redhat.com/mbox/","series":[{"id":499191,"url":"http://patchwork.ozlabs.org/api/1.1/series/499191/?format=json","web_url":"http://patchwork.ozlabs.org/project/uclibc-ng/list/?series=499191","date":"2026-04-08T19:00:29","name":"Bug fixes discovered trying to build allnoconfig","version":1,"mbox":"http://patchwork.ozlabs.org/series/499191/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/2221095/comments/","headers":{"Return-Path":"<devel-bounces@uclibc-ng.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=UwwXs6do;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=uclibc-ng.org\n (client-ip=89.238.66.15; helo=helium.openadk.org;\n envelope-from=devel-bounces@uclibc-ng.org; receiver=patchwork.ozlabs.org)","helium.openadk.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=UwwXs6do;\n\tdkim-atps=neutral"],"Received":["from helium.openadk.org (helium.openadk.org [89.238.66.15])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4frXVL2NJsz1xy1\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 09 Apr 2026 05:01:46 +1000 (AEST)","from helium.openadk.org (localhost [127.0.0.1])\n\tby helium.openadk.org (Postfix) with ESMTP id 39DB131E0CF8;\n\tWed, 08 Apr 2026 21:01:41 +0200 (CEST)","from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.129.124])\n\tby helium.openadk.org (Postfix) with ESMTPS id BBFC431E0C64\n\tfor <devel@uclibc-ng.org>; Wed, 08 Apr 2026 21:00:47 +0200 (CEST)","from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-547-TZljU1nqN7-UxS9YMWqt0w-1; Wed,\n 08 Apr 2026 15:00:44 -0400","from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id B6C131956063\n\tfor <devel@uclibc-ng.org>; Wed,  8 Apr 2026 19:00:41 +0000 (UTC)","from cmirabil.redhat.com (unknown [10.2.16.11])\n\tby mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP\n id 2D80A300019F;\n\tWed,  8 Apr 2026 19:00:40 +0000 (UTC)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n\ts=mimecast20190719; t=1775674846;\n\th=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n\t to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n\t content-transfer-encoding:content-transfer-encoding;\n\tbh=6gBqW7klhqGCAZCZQrZpoInfI1GMo/KRy+mNV4obOAk=;\n\tb=UwwXs6do2KzICYpLUyDyBnHtAEFDFQTMohLHEv+Wcy7uYjEIAo7wrOjiKgAXg3aHCkmoxU\n\ttVOw5YHrsxGC0gli+EP4SJuNiZfG9cZZpKKa2GfGiAKZKhr45M5DpTp5dRf/2yNhW57py4\n\tkLY5OfAzKQU8GGtSfU8hXfB9oc+3ONU=","X-MC-Unique":"TZljU1nqN7-UxS9YMWqt0w-1","X-Mimecast-MFC-AGG-ID":"TZljU1nqN7-UxS9YMWqt0w_1775674841","From":"Charles Mirabile <cmirabil@redhat.com>","To":"devel@uclibc-ng.org","Date":"Wed,  8 Apr 2026 15:00:28 -0400","Message-ID":"<20260408190035.2759806-1-cmirabil@redhat.com>","MIME-Version":"1.0","X-Scanned-By":"MIMEDefang 3.4.1 on 10.30.177.4","X-Mimecast-Spam-Score":"0","X-Mimecast-MFC-PROC-ID":"wD5fK2w4-MmbKtCZGfDtgXwIgVtxIWZzQ8hCmktdkCE_1775674841","X-Mimecast-Originator":"redhat.com","Message-ID-Hash":"7YAET7NVNNHSSBB6KHHAHYWXGRUQSUPQ","X-Message-ID-Hash":"7YAET7NVNNHSSBB6KHHAHYWXGRUQSUPQ","X-MailFrom":"cmirabil@redhat.com","X-Mailman-Rule-Misses":"dmarc-mitigation; no-senders; approved; loop;\n banned-address; emergency; member-moderation; nonmember-moderation;\n administrivia; implicit-dest; max-recipients; max-size; news-moderation;\n no-subject; digests; suspicious-header","CC":"Charles Mirabile <cmirabil@redhat.com>","X-Mailman-Version":"3.3.10","Precedence":"list","Subject":"[uclibc-ng-devel] [PATCH v1 0/7] Bug fixes discovered trying to build\n allnoconfig","List-Id":"uClibc-ng Development <devel.uclibc-ng.org>","Archived-At":"\n <https://uclibc-ng.org/mailman3/hyperkitty/list/devel@uclibc-ng.org/message/7YAET7NVNNHSSBB6KHHAHYWXGRUQSUPQ/>","List-Archive":"\n <https://uclibc-ng.org/mailman3/hyperkitty/list/devel@uclibc-ng.org/>","List-Help":"<mailto:devel-request@uclibc-ng.org?subject=help>","List-Owner":"<mailto:devel-owner@uclibc-ng.org>","List-Post":"<mailto:devel@uclibc-ng.org>","List-Subscribe":"<mailto:devel-join@uclibc-ng.org>","List-Unsubscribe":"<mailto:devel-leave@uclibc-ng.org>","Content-Type":"text/plain; charset=\"us-ascii\"; x-default=\"true\"","Content-Transfer-Encoding":"7bit"},"content":"I wanted to build a really trimmed down uClibc-ng for a no-mmu riscv\nsystem, so I wanted to start with allnoconfig and add only those options\nI actually wanted with a small KCONFIG_ALLCONFIG file. Unfortunately it\nseems that no one has really been testing allnoconfig so it bit-rotted\nand I had to fix a bunch of small issues to get it building again.\n\nThat covers the first five patches, the other two are technically not\nrelated to allnoconfig per se, but small issues I encountered while\nactually trying to use uclibc as the main libc on this system. I was\ntrying to develop a new filesystem that happened to use inode zero and\ndiscovered that uclibc was skipping it in the returned values from\ngetdents under the assumption that it represented a deleted file (this\nseems to be a BSDism that is not found in any other linux libc), and\nthe second is just making posix_spawn a bit more fully featured on nommu\nby adding file actions support so that a shell can make use of it\ninstead of the raw clone syscall.\n\nCharles Mirabile (7):\n  pipe: directly invoke pipe2 from kernel when !UCLIBC_LINUX_SPECIFIC\n  Fix  {g,s}ettimeofday when !UCLIBC_HAS_REALTIME\n  Fix build with static-pie but without nptl threads\n  do not remove bits/uClibc_ctype.h when !UCLIBC_HAS_CTYPE_TABLES\n  getopt-susv3: remove call to gettext `_` macro\n  readdir{,_r}: remove loop to skip files with d_ino == 0\n  spawn: allow file actions on no-mmu targets\n\n Makefile.in                              |  2 ++\n libc/misc/dirent/readdir.c               | 32 ++++++++++------------\n libc/misc/dirent/readdir_r.c             | 35 +++++++++++-------------\n libc/misc/internals/reloc_static_pie.c   |  4 +++\n libc/sysdeps/linux/common/gettimeofday.c |  2 ++\n libc/sysdeps/linux/common/pipe.c         |  2 +-\n libc/sysdeps/linux/common/settimeofday.c |  3 ++\n libc/unistd/getopt-susv3.c               |  2 +-\n librt/spawn.c                            |  2 +-\n 9 files changed, 44 insertions(+), 40 deletions(-)"}