From patchwork Mon Nov 30 16:31:37 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 106532 Received: from mail-dl1-f52.google.com (mail-dl1-f52.google.com [74.125.82.52]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.36333.1796056317723621920 for ; Mon, 30 Nov 2026 08:31:57 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20260707 header.b=XwgjcoiI; spf=pass (domain: gmail.com, ip: 74.125.82.52, mailfrom: raj.khem@gmail.com) Received: by mail-dl1-f52.google.com with SMTP id a92af1059eb24-1b546061d58so4530964c88.1 for ; Mon, 30 Nov 2026 08:31:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796056317; x=1796661117; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=gmr/4ipOL8Letu4N25O8IQ9TrpMa0nSODzMR8QJ2QO0=; b=XwgjcoiI+kxDlVDr7A9rAESHnjx9VCL1+dh5wmeM+KZBvTwKJUK2Fx/emJqbNqUqe1 2516hK4UMrLQY4m5fXBh8oWIlTf2KQ0QXQG+NlX8P+hQoMnYrPgXYvrPne5hywrM/PzI uEZa1p2uB1IcJirOSWeZHKlTWb/qGGlJoc26ErYOmkTsuUo0cA/OYG9sU/ckFi3+Dzbc 73xMtxhg8powD1Shgq58lns53uUQsmVYBb9AYFBQuEUHk0X0Maqf+YfB8AMeQwaG7xpU 96y5dv5lflvIHyQq6LKXpphplr1J0TMrQex/pKM8P8z9cTNoYeinbkNKp8CA8djFrqM8 bgLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796056317; x=1796661117; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=gmr/4ipOL8Letu4N25O8IQ9TrpMa0nSODzMR8QJ2QO0=; b=AKgzwGTHcKFtMKn6t6mA2LH8rQLJcFek5uzOBhBE8oK9bxr7/QoqmFfm03g3/YXKaT tQfRbu7Dy75+yZvanPcQnZc259FrQ9wFa/1oyIDxIYQI6zPJ3UPsFv2aFHDN+wHyu1tF kLUOQRhcdxYQ4DHH5GGAFhN3F4ExPVAvggfl2+STWOLfULN4PXAeWmLJi73aQ4FB9vCn pR1rglF+Y4tgqwO16TNoOZQO8O16UoyQjHK3q97KUjfYTybfR4ZnDMVi3wv5Y+FqhF11 qpoYzNB1v948vBNZCCa+e5XqPARvQdaZ/uJKyXJItT0Inbslw1sVq+f7AiNu54XnXHFL mJRg== X-Gm-Message-State: APuU4Z9G7N6yrEQqIwCVQ7ZZZlMhK+fRr3L1MCc+I45USRxAd+K9155p ZWt8D27uRRQBgqP/VESW3wKmjAZCn96luxk0EYVtXYsf7vV4m27u82tk8juA34cp X-Gm-Gg: AZFdTZfS82iG5ybotGJaMstDarR5BeTW7HYUGvCBFGVF01rxJuVf/pz86p7jhdnqywj 5QhdHas55rwZOpEt6oLuUW1DhKN9CZoPhpPq82WZP6lbx6VjUgZNN1hfPIhRGb78HwUD04p5AvR z6UK02273H+IHvjrAkv75Uh2A6Xwir7gJQFDsAdTcdaM7mtDvQSPdyt5o4B5OuEEiYXd+dssJsS UxqqxH1McwiuFeQQm39Y2HAfWXLf16tvTzAXUVQ3Z09VCfNv+Uj/c3lDIg6Znhf9PGCdpS4HuRG 6ti8bDG3LdlE2HEZtJDJ8k4J5HPFLEcSMd2LU1glsLJgCNNn06nlv+7GFFW6/CIsS/lPOovfuhR hQxuNvoJzRG5GIelTGNSeOtj6kfY3fRO6ErfcFF8P8gk7ZSbSuIXaHYjMEn+lAabJdVB69gh4qZ k9IDyaysztb1GzGwYDEH8IFzT3ejVlxgxHVtFRtWWT5JuNebOD3Gs719j5sRXrPJOI8CV2AfoB9 5gIcrMAReyRxpC2G6+b+Ikl7k/zsKheLBHrd1KnuSCgyehMOTdvbxaYRcnIiaua2oWA9UrpBFWG 6Eak/4zt8+alQPop9tdsAlM62cYJ/z0N4N3JdwrgWKxOF4MjGHiKX8awRUUGFj0Zngwx8KK5bY9 j3VGG4K4NEgsvPY+dwh0jv5Mlj4sCaZ3Rs4ZQptmg5CrvLKdsIxtJsPd+XcTOoc8DFoeH7CR24E UsI/jS1QRYdk1zGU/GUefv332jemMfH1DY0dnitNkxoCoYGfZWQRcRBzDQB6kjGB8FWBBZYuMgr tH0YFC6RVslNdMPnE9pALYFLfYbo9/4p7cnlLCB9bLUxKC3yiEwemXCQsObVyFx4vpxyr816ghM oMIb X-Received: by 2002:a05:701b:4546:10b0:1b5:a9e0:7f with SMTP id a92af1059eb24-1b5a9e00254mr5876012c88.6.1796056316771; Mon, 30 Nov 2026 08:31:56 -0800 (PST) Return-Path: Received: from apollo.tail3ccdd3.ts.net ([147.160.63.35]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b556840494sm79143312c88.12.2026.11.30.08.31.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 08:31:56 -0800 (PST) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-networking][PATCH 01/15] libowfat: Fetch from the GitHub mirror and update to master Date: Mon, 30 Nov 2026 08:31:37 -0800 Message-ID: <20261130163151.1629071-2-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261130163151.1629071-1-khem.raj@oss.qualcomm.com> References: <20261130163151.1629071-1-khem.raj@oss.qualcomm.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Mon, 30 Nov 2026 16:31:59 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/133541 www.fefe.de, which served the release tarballs, is not reachable. Fetch from the github.com/gebi/libowfat mirror of the upstream CVS repository instead and update to the tip of master (2025-05-14). It has no release tags; master holds the unreleased 0.35 changes: gcc 15 and C23 fixes to buffer.h, compiler attributes across the code base, ARM fixes for unsigned char and clamp.h. Drop the gcc 15 patch and the -Wno-error=incompatible-pointer-types workaround, which upstream addressed, and the umult64.c dependency patch, as GNUmakefile now lists haveuint128.h. Keep the json helper patch. Track new commits with UPSTREAM_CHECK_COMMITS. The object dependency lists in GNUmakefile miss some of the generated headers, so a parallel build can compile an object before its headers exist, e.g. ./iob.h:16:10: fatal error: 'libowfat/io.h' file not found Create the libowfat/ header links with the headers target first, and make t.o, which has no dependency list, depend on libowfat.a. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- ...epend-on-haveuint128.h-for-umult64.c.patch | 40 ------------- ...-incompatible-type-error-with-gcc-15.patch | 60 ------------------- ...makefile-Build-t.o-after-the-library.patch | 34 +++++++++++ .../ncp/{libowfat_0.34.bb => libowfat_git.bb} | 19 +++--- 4 files changed, 45 insertions(+), 108 deletions(-) delete mode 100644 meta-networking/recipes-support/ncp/libowfat/0001-Depend-on-haveuint128.h-for-umult64.c.patch delete mode 100644 meta-networking/recipes-support/ncp/libowfat/0001-fix-incompatible-type-error-with-gcc-15.patch create mode 100644 meta-networking/recipes-support/ncp/libowfat/0002-GNUmakefile-Build-t.o-after-the-library.patch rename meta-networking/recipes-support/ncp/{libowfat_0.34.bb => libowfat_git.bb} (63%) diff --git a/meta-networking/recipes-support/ncp/libowfat/0001-Depend-on-haveuint128.h-for-umult64.c.patch b/meta-networking/recipes-support/ncp/libowfat/0001-Depend-on-haveuint128.h-for-umult64.c.patch deleted file mode 100644 index d4e609d8b7..0000000000 --- a/meta-networking/recipes-support/ncp/libowfat/0001-Depend-on-haveuint128.h-for-umult64.c.patch +++ /dev/null @@ -1,40 +0,0 @@ -From 7f6a104a682d59f28f7df889129f4467cc45e912 Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Wed, 6 Nov 2019 19:55:42 -0800 -Subject: [PATCH] Depend on haveuint128.h for umult64.c - -This fixes parallel build issue e.g. -mult/umult64.c:9:10: fatal error: 'haveuint128.h' file not found - ^~~~~~~~~~~~~~~ - -Upstream-Status: Pending -Signed-off-by: Khem Raj ---- - GNUmakefile | 2 +- - Makefile | 2 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - -diff --git a/GNUmakefile b/GNUmakefile ---- a/GNUmakefile -+++ b/GNUmakefile -@@ -753,7 +753,7 @@ - range_strinbuf.o: mult/range_strinbuf.c rangecheck.h libowfat/compiler.h - umult16.o: mult/umult16.c uint16.h - umult32.o: mult/umult32.c uint32.h --umult64.o: mult/umult64.c uint64.h -+umult64.o: mult/umult64.c uint64.h haveuint128.h - open_append.o: open/open_append.c open.h libowfat/compiler.h - open_excl.o: open/open_excl.c open.h libowfat/compiler.h - open_read.o: open/open_read.c open.h libowfat/compiler.h -diff --git a/Makefile b/Makefile ---- a/Makefile -+++ b/Makefile -@@ -690,7 +690,7 @@ - range_strinbuf.o: mult/range_strinbuf.c rangecheck.h libowfat/compiler.h - umult16.o: mult/umult16.c uint16.h - umult32.o: mult/umult32.c uint32.h --umult64.o: mult/umult64.c uint64.h -+umult64.o: mult/umult64.c uint64.h haveuint128.h - open_append.o: open/open_append.c open.h libowfat/compiler.h - open_excl.o: open/open_excl.c open.h libowfat/compiler.h - open_read.o: open/open_read.c open.h libowfat/compiler.h diff --git a/meta-networking/recipes-support/ncp/libowfat/0001-fix-incompatible-type-error-with-gcc-15.patch b/meta-networking/recipes-support/ncp/libowfat/0001-fix-incompatible-type-error-with-gcc-15.patch deleted file mode 100644 index 66a6c2c5d2..0000000000 --- a/meta-networking/recipes-support/ncp/libowfat/0001-fix-incompatible-type-error-with-gcc-15.patch +++ /dev/null @@ -1,60 +0,0 @@ -From 397d00cfd672f3782196e927d0a878ab1d800112 Mon Sep 17 00:00:00 2001 -From: "mark.yang" -Date: Fri, 18 Apr 2025 17:30:48 +0900 -Subject: [PATCH] fix incompatible type error with gcc 15 - - * fix following errors: - ./select.h:13:12: error: conflicting types for 'select'; have 'int(void)' - 13 | extern int select(); - | ^~~~~~ - In file included from TOPDIR/tmp/work/core2-64-oe-linux/libowfat/0.32/recipe-sysroot/usr/include/sys/types.h:179, - from ./select.h:6: - ./buffer.h:40:65: error: initialization of 'ssize_t (*)(void)' {aka 'long int (*)(void)'} from incompatible pointer type 'ssize_t (*)(int, char *, size_t)' {aka 'long int (*)(int, char *, long unsigned int)'} [-Wincompatible-pointer-types] - 40 | #define BUFFER_INIT(op,fd,buf,len) { (char*)(buf), 0, 0, (len), (op), NULL, NULL, (fd) } - | ^ -Upstream-Status: Submitted [felix-libowfat@fefe.de] -Signed-off-by: mark.yang ---- - buffer.h | 2 +- - buffer/buffer_frombuf.c | 2 +- - buffer/buffer_tosa.c | 2 +- - 3 files changed, 3 insertions(+), 3 deletions(-) - -diff --git a/buffer.h b/buffer.h -index 54bed5c..eaf7acb 100644 ---- a/buffer.h -+++ b/buffer.h -@@ -37,7 +37,7 @@ typedef struct buffer { - int fd; /* passed as first argument to op */ - } buffer; - --#define BUFFER_INIT(op,fd,buf,len) { (char*)(buf), 0, 0, (len), (op), NULL, NULL, (fd) } -+#define BUFFER_INIT(op,fd,buf,len) { (char*)(buf), 0, 0, (len), (void*)(op), NULL, NULL, (fd) } - #define BUFFER_INIT_FREE(op,fd,buf,len) { (buf), 0, 0, (len), (op), NULL, buffer_free, (fd) } - #define BUFFER_INIT_READ(op,fd,buf,len) BUFFER_INIT(op,fd,buf,len) /*obsolete*/ - #define BUFFER_INSIZE 8192 -diff --git a/buffer/buffer_frombuf.c b/buffer/buffer_frombuf.c -index 0c9d931..2aa27ca 100644 ---- a/buffer/buffer_frombuf.c -+++ b/buffer/buffer_frombuf.c -@@ -14,6 +14,6 @@ void buffer_frombuf(buffer* b,const char* x,size_t l) { - b->n=l; - b->a=l; - b->fd=0; -- b->op=dummyreadwrite; -+ b->op=(void*)dummyreadwrite; - b->deinit=0; - } -diff --git a/buffer/buffer_tosa.c b/buffer/buffer_tosa.c -index a10be4f..99111a9 100644 ---- a/buffer/buffer_tosa.c -+++ b/buffer/buffer_tosa.c -@@ -21,7 +21,7 @@ int buffer_tosa(buffer* b,stralloc* sa) { - b->n=0; - b->a=1024; - b->fd=0; -- b->op=strallocwrite; -+ b->op=(void*)strallocwrite; - b->cookie=sa; - b->deinit=0; - return 0; diff --git a/meta-networking/recipes-support/ncp/libowfat/0002-GNUmakefile-Build-t.o-after-the-library.patch b/meta-networking/recipes-support/ncp/libowfat/0002-GNUmakefile-Build-t.o-after-the-library.patch new file mode 100644 index 0000000000..fd3d56b54d --- /dev/null +++ b/meta-networking/recipes-support/ncp/libowfat/0002-GNUmakefile-Build-t.o-after-the-library.patch @@ -0,0 +1,34 @@ +From 7fbcf8dc9c8c874dd8eac1e49f17532510be9d71 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 28 Nov 2026 13:50:07 -0800 +Subject: [PATCH] GNUmakefile: Build t.o after the library + +t.o has no dependency list, so it is built with the generic %.o rule +as soon as make starts. t.c includes headers that are generated for the +library, such as libowfat/io.h and haveepoll.h, so building t.o alone or +early in a parallel build fails: + + ./iob.h:16:10: fatal error: 'libowfat/io.h' file not found + +Make t.o depend on libowfat.a, which depends on all of them. + +Upstream-Status: Pending +AI-Generated: Uses Claude Code +Signed-off-by: Khem Raj +--- + GNUmakefile | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/GNUmakefile b/GNUmakefile +index 1ecd201..43812e1 100644 +--- a/GNUmakefile ++++ b/GNUmakefile +@@ -667,6 +667,8 @@ CFLAGS_OPT+=-I. + t: t.o libowfat.a libsocket + $(DIET) $(CCC) -g -o $@ t.o libowfat.a `cat libsocket` -lpthread $(LDFLAGS) + ++t.o: libowfat.a ++ + .PHONY: all clean tar install rename + clean: + rm -f *.o *.obj *.a *.lib *.da *.bbg *.bb *.plist core t \ diff --git a/meta-networking/recipes-support/ncp/libowfat_0.34.bb b/meta-networking/recipes-support/ncp/libowfat_git.bb similarity index 63% rename from meta-networking/recipes-support/ncp/libowfat_0.34.bb rename to meta-networking/recipes-support/ncp/libowfat_git.bb index 63782e8865..f3fbacfae8 100644 --- a/meta-networking/recipes-support/ncp/libowfat_0.34.bb +++ b/meta-networking/recipes-support/ncp/libowfat_git.bb @@ -6,16 +6,14 @@ HOMEPAGE = "http://www.fefe.de/libowfat" LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b" -SRC_URI = "http://www.fefe.de/${BPN}/${BP}.tar.xz \ - file://0001-Depend-on-haveuint128.h-for-umult64.c.patch \ - file://0001-fix-incompatible-type-error-with-gcc-15.patch \ +SRC_URI = "git://github.com/gebi/libowfat;branch=master;protocol=https \ file://0001-GNUmakefile-build-json-helper-for-the-build-host.patch \ - " -SRC_URI[sha256sum] = "d4330d373ac9581b397bc24a22ad1f7f5d58a7fe36d9d239fe352ceffc5d304b" + file://0002-GNUmakefile-Build-t.o-after-the-library.patch \ + " +SRCREV = "60da23b00a37fb2a5fff114eee5bb081d70cad62" +PV = "0.34+git" -# GCC 14+ promotes -Wincompatible-pointer-types to an error. libowfat 0.34 -# passes read()/write() directly where a typeless op pointer is expected. -CFLAGS += "-Wno-error=incompatible-pointer-types" +UPSTREAM_CHECK_COMMITS = "1" EXTRA_OEMAKE = "\ DIET= \ @@ -23,6 +21,11 @@ EXTRA_OEMAKE = "\ CCC='${CC}' CFLAGS='${CFLAGS} -I.' CFLAGS_OPT='${CFLAGS} -I.' \ " +# The object dependency lists miss some of the generated libowfat/ headers +do_compile:prepend() { + oe_runmake headers +} + do_install() { make install \ DESTDIR=${D} \