From patchwork Mon Aug 29 06:56:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 12031 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 47053ECAAD4 for ; Mon, 29 Aug 2022 06:56:54 +0000 (UTC) Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) by mx.groups.io with SMTP id smtpd.web12.67754.1661756212992908185 for ; Sun, 28 Aug 2022 23:56:53 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=APDLwUPN; spf=pass (domain: gmail.com, ip: 209.85.210.174, mailfrom: raj.khem@gmail.com) Received: by mail-pf1-f174.google.com with SMTP id 142so7299176pfu.10 for ; Sun, 28 Aug 2022 23:56:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=fXzxST30ALsGhZ0x0FcxjQmvnNMi2SHgWVaWCsCiVlY=; b=APDLwUPNUEr3Qc0Z3FcuQ/ZOaTrVBdp9ouN1VoUbXVpeF5vha2+Pn6kCUvwtkYjR6/ JRKIFWiLNKTZX4+DTFPBD9Q4nlFPzIpIhER38NJ/j+JYtygQjDtsHLen0QQ3bY4/9X4x zfovVXjnwdh+okiSovSk+9DYbfugyg89pTImWcO+37HOclaScG8H4/XK3la3sZ/2WVFh vrVS1o7K/nXstQ0zwtof2YqWXTn3/79XX7vu29tLUy1j3xdvheVPWa2ijLAm+x/KFCdI H9itchtYQQtWPgpn6J/yTqfGjxZnj0Hsy8fXCON5Yv2yRgj+SAblbynWmPlM/JphWlNN YlaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=fXzxST30ALsGhZ0x0FcxjQmvnNMi2SHgWVaWCsCiVlY=; b=z32eTBKXYOP+7uaMOY4EV+k9sipITZwsWlC3QeQGShd11JhTfD5AAU6sqwT11O9KNo o0qS9bft1RLOFj6X/QWNohF2VH/r4F2WVwXZD2Dj1AlKFHR32noVdcX+FE08AIVjLvWK 2C0wT9eoWDre/VusXfx009AEBFWGYjxEsrgSFXt/uTyr5lEsFWGa+qS+/VvHRoyclMGY n/RTe3IGzDIzynQ1qcYt3V3fVPY7tWuMglADyTqmLTvMuAAi3vEpvAaw6wCL5j+gyAGI B1mUZNj2iy3luGonRqrfXZicYAP7JZRcqV7Q6jv7WI5DufpyXZD9TpIyp0H0nlxml7qg CzIw== X-Gm-Message-State: ACgBeo1eegKTikEv6eCWIY9PpikpFFLGRwBUZl/71loUkxgTKfgis3jh Uf3ZoWOQ8NZk22jdScXIzDzAqepfJWOVAw== X-Google-Smtp-Source: AA6agR5hyODCnVsCwVVQ2fvDfcc6l0kJFlc2YKg8ousGKfGI0bHMo5BY+p344NPwRaWANgsnDOR4Gg== X-Received: by 2002:a05:6a00:1496:b0:52f:734f:9122 with SMTP id v22-20020a056a00149600b0052f734f9122mr15411248pfu.85.1661756212041; Sun, 28 Aug 2022 23:56:52 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:a0f0::24e6]) by smtp.gmail.com with ESMTPSA id p10-20020a170902e74a00b0016d5b7fb02esm505489plf.60.2022.08.28.23.56.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Aug 2022 23:56:51 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-python][PATCH 1/7] python3-netifaces: Fix build with python3 and musl Date: Sun, 28 Aug 2022 23:56:43 -0700 Message-Id: <20220829065649.808556-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 29 Aug 2022 06:56:54 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/98512 Signed-off-by: Khem Raj --- ...-initialize-msghdr-in-a-portable-way.patch | 49 +++++++++++++++++++ .../python/python3-netifaces_0.11.0.bb | 6 ++- 2 files changed, 53 insertions(+), 2 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python3-netifaces/0001-netifaces-initialize-msghdr-in-a-portable-way.patch diff --git a/meta-python/recipes-devtools/python/python3-netifaces/0001-netifaces-initialize-msghdr-in-a-portable-way.patch b/meta-python/recipes-devtools/python/python3-netifaces/0001-netifaces-initialize-msghdr-in-a-portable-way.patch new file mode 100644 index 0000000000..7ff86cc8be --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-netifaces/0001-netifaces-initialize-msghdr-in-a-portable-way.patch @@ -0,0 +1,49 @@ +From cbcd19f38ae4b31c57c57ce3619b8d2674defb68 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sun, 28 Aug 2022 08:11:27 -0700 +Subject: [PATCH] netifaces: initialize msghdr in a portable way + +musl has padding bytes inside the msghdr struct which means initializing +full structure will cause wrong assignments, doing partial assignment is +more portable and assign the elements after that + +Fixes +netifaces.c:1808:9: error: incompatible pointer to integer conversion initializing 'int' with an expression of type 'void *' [-Wint-conversion] + NULL, + ^~~~ + +Upstream-Status: Inappropriate [Upstream Repo is read-only] +Signed-off-by: Khem Raj +--- + netifaces.c | 15 ++++++--------- + 1 file changed, 6 insertions(+), 9 deletions(-) + +diff --git a/netifaces.c b/netifaces.c +index 839c42c..7da78e7 100644 +--- a/netifaces.c ++++ b/netifaces.c +@@ -1800,15 +1800,12 @@ gateways (PyObject *self) + do { + struct sockaddr_nl sanl_from; + struct iovec iov = { msgbuf, bufsize }; +- struct msghdr msghdr = { +- &sanl_from, +- sizeof(sanl_from), +- &iov, +- 1, +- NULL, +- 0, +- 0 +- }; ++ struct msghdr msghdr = { 0 }; ++ ++ msghdr.msg_name = &sanl_from; ++ msghdr.msg_namelen = sizeof(sanl_from); ++ msghdr.msg_iov = &iov; ++ msghdr.msg_iovlen = 1; + int nllen; + + ret = recvmsg (s, &msghdr, 0); +-- +2.37.2 + diff --git a/meta-python/recipes-devtools/python/python3-netifaces_0.11.0.bb b/meta-python/recipes-devtools/python/python3-netifaces_0.11.0.bb index 09e54b0baa..f211c69543 100644 --- a/meta-python/recipes-devtools/python/python3-netifaces_0.11.0.bb +++ b/meta-python/recipes-devtools/python/python3-netifaces_0.11.0.bb @@ -4,6 +4,8 @@ SECTION = "devel/python" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=a53cbc7cb75660694e138ba973c148df" -SRC_URI[sha256sum] = "043a79146eb2907edf439899f262b3dfe41717d34124298ed281139a8b93ca32" - inherit pypi setuptools3 + +SRC_URI += "file://0001-netifaces-initialize-msghdr-in-a-portable-way.patch" + +SRC_URI[sha256sum] = "043a79146eb2907edf439899f262b3dfe41717d34124298ed281139a8b93ca32" From patchwork Mon Aug 29 06:56:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 12035 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33BADECAAD2 for ; Mon, 29 Aug 2022 06:57:04 +0000 (UTC) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mx.groups.io with SMTP id smtpd.web08.67932.1661756213897612762 for ; Sun, 28 Aug 2022 23:56:54 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=oxvN0Bvf; spf=pass (domain: gmail.com, ip: 209.85.214.173, mailfrom: raj.khem@gmail.com) Received: by mail-pl1-f173.google.com with SMTP id l3so7080154plb.10 for ; Sun, 28 Aug 2022 23:56:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=FxgHlczSpNE4DsnSP56QtqQ80o6QymKpdAYVfRI6xaE=; b=oxvN0Bvf0bMezGQI7ckXqnemhKIw6k8x3uO/rL8QqJt7rQ203+cd2w8vaCUj797jbC NkXqEIeDHxAb6sWH647L29mMMyy/wjHseY+/Xj3Vx83vQ8hguYFA/pvS2oyA0jPr/2XB PpgbSlLcuMP+nTYXksabXMTpXLwfLKMrVE9xSPR1WtydN2+GAg9PQ9LhU8pdTQkoL3KV zTomQzNapBfnVhjEB+jAKHmUeeGKojAf0/WpRRcLeVKIa5CAmdigX/eumty9CcakUWYy Z/xjEW0wHFlJjc2+Auba3LdFiz9heCKiVTTmRuV6Jpp9OchOReK3YIxh3ppWECvohNlk 8l7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=FxgHlczSpNE4DsnSP56QtqQ80o6QymKpdAYVfRI6xaE=; b=PqNspw3Kht18dXaF+3166Fy7nmLBBkJEmBCrdvgmjvd41nssjHq/1N7EDuEhlfDv66 RrT0lKb0c8kJZ7qYG7XS3beIxWA0t8DiP+N5DxUFinvPhFiCbr+lLncnmJz7clLcqpc0 5ilAALbZMpWQwTghybIs5gNOiovEs/BD9DImC2rf5U6Aa2TEjAHW4q1PANWV4y2O/u9m Ze7z5M50u5ESbqCWVTMKIiK29OfhQpJZh1SOlimhOP0XipSMkdiVHSxXoOGk+80WwlQn TjRrSxMgNB3K1cfWs46TnPFwDcPSH6aUTv2ZHfLw0nVqNg4Gfzp/NkGQJOLwulDnvf7A j2bQ== X-Gm-Message-State: ACgBeo1Ubqsu+mhJyjfEGj1Va19QaaSW5taBIuP6CsyCjFBH9taWKUDC bvHQpBg7EiOaj2uO5canX/Dz4kgzimgBwQ== X-Google-Smtp-Source: AA6agR4de3ZWIgJ+4T2JgUXCNdPQG33CqddkC9nrgGeHbVfC1/RoZd5gU+6o4wJe7SRhIBiRt0Sbnw== X-Received: by 2002:a17:90b:3b8d:b0:1fb:72f5:2d1e with SMTP id pc13-20020a17090b3b8d00b001fb72f52d1emr16529859pjb.135.1661756212972; Sun, 28 Aug 2022 23:56:52 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:a0f0::24e6]) by smtp.gmail.com with ESMTPSA id p10-20020a170902e74a00b0016d5b7fb02esm505489plf.60.2022.08.28.23.56.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Aug 2022 23:56:52 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-python][PATCH 2/7] python3-pyephem: Fix build with python3 and musl Date: Sun, 28 Aug 2022 23:56:44 -0700 Message-Id: <20220829065649.808556-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220829065649.808556-1-raj.khem@gmail.com> References: <20220829065649.808556-1-raj.khem@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 29 Aug 2022 06:57:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/98513 Signed-off-by: Khem Raj --- .../0001-Don-t-set-tp_print-on-Python-3.patch | 44 +++++++++++++++++++ .../python-pyephem/python3-pyephem_4.1.3.bb | 1 + 2 files changed, 45 insertions(+) create mode 100644 meta-python/recipes-extended/python-pyephem/python3-pyephem/0001-Don-t-set-tp_print-on-Python-3.patch diff --git a/meta-python/recipes-extended/python-pyephem/python3-pyephem/0001-Don-t-set-tp_print-on-Python-3.patch b/meta-python/recipes-extended/python-pyephem/python3-pyephem/0001-Don-t-set-tp_print-on-Python-3.patch new file mode 100644 index 0000000000..a84d852fb0 --- /dev/null +++ b/meta-python/recipes-extended/python-pyephem/python3-pyephem/0001-Don-t-set-tp_print-on-Python-3.patch @@ -0,0 +1,44 @@ +From 866f7560034e8b7a604432611b3cb2c92e76def9 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sun, 28 Aug 2022 11:03:39 -0700 +Subject: [PATCH] Don't set tp_print on Python 3. + +In 3.8 it produces a compilation warning, in earlier versions it is ignored. + +Upstream-Status: Submitted [https://github.com/brandon-rhodes/pyephem/pull/245] +Signed-off-by: Khem Raj +--- + extensions/_libastro.c | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/extensions/_libastro.c b/extensions/_libastro.c +index ce07d93..c9ef1e6 100644 +--- a/extensions/_libastro.c ++++ b/extensions/_libastro.c +@@ -372,7 +372,11 @@ static PyTypeObject AngleType = { + sizeof(AngleObject), + 0, + 0, /* tp_dealloc */ ++#if PY_MAJOR_VERSION < 3 + Angle_print, /* tp_print */ ++#else ++ 0, /* reserved in 3.x */ ++#endif + 0, /* tp_getattr */ + 0, /* tp_setattr */ + 0, /* tp_compare */ +@@ -669,7 +673,11 @@ static PyTypeObject DateType = { + sizeof(PyFloatObject), + 0, + 0, /* tp_dealloc */ ++#if PY_MAJOR_VERSION < 3 + Date_print, /* tp_print */ ++#else ++ 0, /* tp_print slot is reserved and unused in Python 3 */ ++#endif + 0, /* tp_getattr */ + 0, /* tp_setattr */ + 0, /* tp_compare */ +-- +2.37.2 + diff --git a/meta-python/recipes-extended/python-pyephem/python3-pyephem_4.1.3.bb b/meta-python/recipes-extended/python-pyephem/python3-pyephem_4.1.3.bb index 29697bc251..8c4f0eb405 100644 --- a/meta-python/recipes-extended/python-pyephem/python3-pyephem_4.1.3.bb +++ b/meta-python/recipes-extended/python-pyephem/python3-pyephem_4.1.3.bb @@ -4,6 +4,7 @@ HOMEPAGE = "http://rhodesmill.org/pyephem/" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=9c930b395b435b00bb13ec83b0c99f40" +SRC_URI += "file://0001-Don-t-set-tp_print-on-Python-3.patch" SRC_URI[sha256sum] = "7fa18685981ba528edd504052a9d5212a09aa5bf15c11a734edc6a86e8a8b56a" PYPI_PACKAGE = "ephem" From patchwork Mon Aug 29 06:56:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 12037 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 54A52C3DA6B for ; Mon, 29 Aug 2022 06:57:04 +0000 (UTC) Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) by mx.groups.io with SMTP id smtpd.web09.67684.1661756214817469019 for ; Sun, 28 Aug 2022 23:56:54 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=VI8AxxiF; spf=pass (domain: gmail.com, ip: 209.85.215.172, mailfrom: raj.khem@gmail.com) Received: by mail-pg1-f172.google.com with SMTP id 12so6904649pga.1 for ; Sun, 28 Aug 2022 23:56:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=/pM4c8XngoSfaYn3XkJtfofYdSIj1w4zfYzA740OD4U=; b=VI8AxxiFZkg6mx+N6QPkENv6CEWyxw2H/6EW78DJJI8xoqkIhEjt0352FYRn/WmVQa RG4c5ErFjlKkWnoaJdxK+2U4vAW0q8/XR0lsNdAHcl81zqRVXy9VOG0tvWGn0LQo00Wg 0N2Uyfp/N0DQTYgM0Il4KBvkbI/c3ylYlrCqTeKE8RfqjcVU5lWFELA7iqkGgEQk8yCn ZH79nkb3eVRZ7yinI9VSPsvQPFZU86qDVs0cKAkBgs89Yfh6OelpJblMomNkxuWZtQAT 2UiRgDIwY8lapgqqa0itQksGMS97WRe0KkFQalZpHzD1KK8lTIXvaDKTdXeFTm0ZJEz7 QY+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=/pM4c8XngoSfaYn3XkJtfofYdSIj1w4zfYzA740OD4U=; b=pHYSmMBGtk2SKLZjYQMibmsIN3JqRNt8Zib2flq4MuqDN9+Dmz9WKcwhIvZjLbhHSX 1Unxltl4QDtJeNLqZhh+KdaKGJPIinCp0zY7+olj8cQv67ifXArIuuGU/icdbGNcgNFK ER25yDqPEniQ03OwDM5IgB8Zay+D7NEzxD8mTUhJfRCT2E/Eom4YtOaw+PQLh1dLR8gU qumZpocexlQ9JWCtJY9TZm3Q9VopYnxsbIwr5e6blRqDDYyrsCqkkTDBegUYOnKQ54gf fgeHzfjI4Dd7T/7iovuOKZxkZn0A1g3cTPC5EWn2nIwzvGTmzFY5UTag7W4ddEty2JKH i4cQ== X-Gm-Message-State: ACgBeo3Nw3aa3Nv2XHRWMEcibhcHxT4pLg0bX9xN9aPd37ygsj/IJt+8 mr8H4X1nXFnWSkji3f7FR/HJ977QIC/05Q== X-Google-Smtp-Source: AA6agR7W1hjVkPGzcdMyaqmFIbM1vMGDp0cEVofIpSmeTlQwL19N9J35f+iskgk02D1NW/55ZFz6sA== X-Received: by 2002:a63:5a1a:0:b0:42b:52f0:4134 with SMTP id o26-20020a635a1a000000b0042b52f04134mr12431427pgb.164.1661756214003; Sun, 28 Aug 2022 23:56:54 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:a0f0::24e6]) by smtp.gmail.com with ESMTPSA id p10-20020a170902e74a00b0016d5b7fb02esm505489plf.60.2022.08.28.23.56.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Aug 2022 23:56:53 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-networking][PATCH 3/7] samba: Fix warnings in configure tests for rpath checks Date: Sun, 28 Aug 2022 23:56:45 -0700 Message-Id: <20220829065649.808556-3-raj.khem@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220829065649.808556-1-raj.khem@gmail.com> References: <20220829065649.808556-1-raj.khem@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 29 Aug 2022 06:57:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/98514 Add a patch to avoid implicit-function-declaration warnings, they will soon become errors with clang 15+ set path for privatelibdir Signed-off-by: Khem Raj --- ...ith-Werror-implicit-function-declara.patch | 32 +++++++++++++++++++ .../samba/samba_4.14.14.bb | 3 ++ 2 files changed, 35 insertions(+) create mode 100644 meta-networking/recipes-connectivity/samba/samba/0001-waf-Fix-errors-with-Werror-implicit-function-declara.patch diff --git a/meta-networking/recipes-connectivity/samba/samba/0001-waf-Fix-errors-with-Werror-implicit-function-declara.patch b/meta-networking/recipes-connectivity/samba/samba/0001-waf-Fix-errors-with-Werror-implicit-function-declara.patch new file mode 100644 index 0000000000..4a89f76782 --- /dev/null +++ b/meta-networking/recipes-connectivity/samba/samba/0001-waf-Fix-errors-with-Werror-implicit-function-declara.patch @@ -0,0 +1,32 @@ +From 28ec4c9323e67cd114a0465015c9f3c2e64e6829 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 27 Aug 2022 13:05:26 -0700 +Subject: [PATCH] waf: Fix errors with Werror=implicit-function-declaration + turned on + +Clang-15 turns this option into errors by default, and it results in +rpath check failures + +Upstream-Status: Pending + +Signed-off-by: Khem Raj +--- + buildtools/wafsamba/samba_waf18.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/buildtools/wafsamba/samba_waf18.py b/buildtools/wafsamba/samba_waf18.py +index 7a0a08e..c0d2c3e 100644 +--- a/buildtools/wafsamba/samba_waf18.py ++++ b/buildtools/wafsamba/samba_waf18.py +@@ -209,7 +209,7 @@ def CHECK_LIBRARY_SUPPORT(conf, rpath=False, version_script=False, msg=None): + lib_node.parent.mkdir() + lib_node.write('int lib_func(void) { return 42; }\n', 'w') + main_node = bld.srcnode.make_node('main.c') +- main_node.write('int main(void) {return !(lib_func() == 42);}', 'w') ++ main_node.write('int lib_func(void); int main(void) {return !(lib_func() == 42);}', 'w') + linkflags = [] + if version_script: + script = bld.srcnode.make_node('ldscript') +-- +2.37.2 + diff --git a/meta-networking/recipes-connectivity/samba/samba_4.14.14.bb b/meta-networking/recipes-connectivity/samba/samba_4.14.14.bb index 53526a26b6..f88dee6175 100644 --- a/meta-networking/recipes-connectivity/samba/samba_4.14.14.bb +++ b/meta-networking/recipes-connectivity/samba/samba_4.14.14.bb @@ -22,6 +22,7 @@ SRC_URI = "${SAMBA_MIRROR}/stable/samba-${PV}.tar.gz \ file://0005-samba-build-dnsserver_common-code.patch \ file://0001-Fix-pyext_PATTERN-for-cross-compilation.patch \ file://0001-smbtorture-skip-test-case-tfork_cmd_send.patch \ + file://0001-waf-Fix-errors-with-Werror-implicit-function-declara.patch \ " SRC_URI:append:libc-musl = " \ @@ -113,9 +114,11 @@ EXTRA_OECONF += "--enable-fhs \ --with-piddir=/run \ --with-sockets-dir=/run/samba \ --with-modulesdir=${libdir}/samba \ + --with-privatelibdir=${libdir}/samba \ --with-lockdir=${localstatedir}/lib/samba \ --with-cachedir=${localstatedir}/lib/samba \ --disable-rpath-install \ + --disable-rpath \ --with-shared-modules=${SAMBA4_MODULES} \ --bundled-libraries=${SAMBA4_LIBS} \ ${@oe.utils.conditional('TARGET_ARCH', 'x86_64', '', '--disable-glusterfs', d)} \ From patchwork Mon Aug 29 06:56:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 12034 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3FC3CC0502C for ; Mon, 29 Aug 2022 06:57:04 +0000 (UTC) Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) by mx.groups.io with SMTP id smtpd.web09.67684.1661756214817469019 for ; Sun, 28 Aug 2022 23:56:55 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=R6BUtPSV; spf=pass (domain: gmail.com, ip: 209.85.215.172, mailfrom: raj.khem@gmail.com) Received: by mail-pg1-f172.google.com with SMTP id 12so6904671pga.1 for ; Sun, 28 Aug 2022 23:56:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=nf9sW6lDwh4P8elur+0wsHFRNpc2D4pwHjI1kMwoutg=; b=R6BUtPSVjs6N9L+6sDdz20F+aPWWcojwF65Bu2p8+fhTC7S4y3dPq88hAfi/sgq5dS D66UMuP7dw2My1/v+Tfaqgm4vBtDxYSUiGt9MVsEro5TFSMSZzfP04YNwhMdcmzEXR0O l4SefPTOVF3SAp4HaCXXLKLtEZwRSwVwmLPzfyLP8vD7eoBZ2jCdFk73hWh9tQ/nwEh2 xtCjFuEZcgPscF0zbA3xK05PuaNj4QXbkyz10HFDJDlVU67Bxmc7njBXQttYDNODNvso LXL7hXPVwjVabRwMtMPWCUXNvT6AZIQBtXpZOwg85CQwyeKqVvnawfhIYlp3XwXnfZFQ u7/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=nf9sW6lDwh4P8elur+0wsHFRNpc2D4pwHjI1kMwoutg=; b=prqEk+WHofWrYs5O85TMogTE8fiPkHqJDHxG6qAoix7US77faNLIuJTcaRUZvHXOhB N6Rx2XGpu1zIhZwie+KCYa5x3JZDqBGvhQlB37Vadf4hpt2fl0J8BCKbTcmLosCzHLCu SHiUAiEQW+7DKSz0Zw+ObKaD2/nXASZhwoWTnWltJIV4cs7q2J3D114WYhAnIVY7HhSJ c90w4XN5JYIKV4yo/wfPLSTcKv3O8tnXImjf0utnvwZbIlvQ5K7PnJACZIHl8P75lHPZ cjc97U9+wzf28CC4Fq6GM7t4IykFGKRYL2E9YKEBBWtiwqYEkhbjgarkxbxRJo36uSpU x/VQ== X-Gm-Message-State: ACgBeo2O8BtT1dzLgt223BtP9gQH32kpgOqJEg1VmijfqeuQ7PALHqWU HZ/G9yMjMX5g/64QoLf+ZPnFiWTZt55ZpQ== X-Google-Smtp-Source: AA6agR5sx+g8ev1ii6nSrM6Wp6IA4N4ZEVeVZ0SvJP6b3Ojoxe4eP5YqZ3Vki30mo5Oc1I3XSh742w== X-Received: by 2002:a05:6a00:2409:b0:534:98c0:e53a with SMTP id z9-20020a056a00240900b0053498c0e53amr15399724pfh.11.1661756214927; Sun, 28 Aug 2022 23:56:54 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:a0f0::24e6]) by smtp.gmail.com with ESMTPSA id p10-20020a170902e74a00b0016d5b7fb02esm505489plf.60.2022.08.28.23.56.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Aug 2022 23:56:54 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 4/7] lirc: Fix build on musl Date: Sun, 28 Aug 2022 23:56:46 -0700 Message-Id: <20220829065649.808556-4-raj.khem@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220829065649.808556-1-raj.khem@gmail.com> References: <20220829065649.808556-1-raj.khem@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 29 Aug 2022 06:57:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/98515 Signed-off-by: Khem Raj --- .../lirc/0001-mplay-Fix-build-with-musl.patch | 44 +++++++++++++++++++ .../recipes-connectivity/lirc/lirc_0.10.1.bb | 1 + 2 files changed, 45 insertions(+) create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-mplay-Fix-build-with-musl.patch diff --git a/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-mplay-Fix-build-with-musl.patch b/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-mplay-Fix-build-with-musl.patch new file mode 100644 index 0000000000..48cf7a355c --- /dev/null +++ b/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc/0001-mplay-Fix-build-with-musl.patch @@ -0,0 +1,44 @@ +From e9e9027d7a324e1ce5e0cb06d4eb51847262a09d Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sun, 28 Aug 2022 12:26:52 -0700 +Subject: [PATCH] mplay: Fix build with musl + +pthread_t is an opaque type, therefore typecast it to avoid warnings on +musl + +Fixes +mplay.c:200:12: error: incompatible integer to pointer conversion initializing 'pthread_t' (aka 'struct __pthread *') with an expression of type 'int' [-Wint-conversion] +| .tid = -1 +| ^~ + +Upstream-Status: Submitted [https://sourceforge.net/p/lirc/git/merge-requests/47/] +Signed-off-by: Khem Raj +--- + plugins/mplay.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/plugins/mplay.c b/plugins/mplay.c +index d6d9619..5b9eb4b 100644 +--- a/plugins/mplay.c ++++ b/plugins/mplay.c +@@ -197,7 +197,7 @@ static struct { + .latest_button = MPLAY_CODE_ERROR, + .fd = -1, + .pipefd = { -1, -1 }, +- .tid = -1 ++ .tid = (pthread_t)-1 + }; + + /** +@@ -788,7 +788,7 @@ int mplayfamily_deinit(void) + return 0; + } + pthread_join(mplayfamily_local_data.tid, NULL); +- mplayfamily_local_data.tid = -1; ++ mplayfamily_local_data.tid = (pthread_t)-1; + } + if (mplayfamily_local_data.pipefd[0] != -1) { + close(mplayfamily_local_data.pipefd[0]); +-- +2.37.2 + diff --git a/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.1.bb b/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.1.bb index fe9685924b..467e10b658 100644 --- a/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.1.bb +++ b/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.1.bb @@ -13,6 +13,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" SRC_URI = "http://prdownloads.sourceforge.net/lirc/lirc-${PV}.tar.bz2 \ file://0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch \ file://fix_build_errors.patch \ + file://0001-mplay-Fix-build-with-musl.patch \ file://lircd.service \ file://lircd.init \ file://lircexec.init \ From patchwork Mon Aug 29 06:56:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 12036 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 40738C54EE9 for ; Mon, 29 Aug 2022 06:57:04 +0000 (UTC) Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) by mx.groups.io with SMTP id smtpd.web12.67755.1661756216819083456 for ; Sun, 28 Aug 2022 23:56:56 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=g2g6zijQ; spf=pass (domain: gmail.com, ip: 209.85.210.182, mailfrom: raj.khem@gmail.com) Received: by mail-pf1-f182.google.com with SMTP id t129so7305513pfb.6 for ; Sun, 28 Aug 2022 23:56:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=/o6i4TGPns0n3gKakh5Bt8lKYxACLwcVUSjxWfZ5ucM=; b=g2g6zijQypUCilC5vSxtC/dOJweTtHx+rY+e++A1K7tpSYZDYprX1ltwK2Q8GOftyQ 3sCsOf0QeJ3gp57K+OMsuvA+L/y5UqK8VJMEivESIWarfoGcJrlLu6KX1AVZes0EShpW 3QtptOA6MusVtB1vSlea70Qo5SwXEYDFXv6FiINpYtGv3NqBelMy2Wptgbd1n5ZQCPYP iIGyHiyWkkHXT3s8hSXKPJZUJam7Af0wuO2ckmm8DRTg7ezERIzqrczuQ9FNrebhiVKu XjbxX/oFd6uZhbsrNHfc5j4IfbqloHnZbl47gSg/DAcCRJDybXWIxO4yguTaahsEqvFN Bp4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=/o6i4TGPns0n3gKakh5Bt8lKYxACLwcVUSjxWfZ5ucM=; b=OcelsOmEJix7uMsBkZc0SQQV0VAcSSnMZX1EL+5OKQyPXz4wcY9P8Lv/D3Q54femM+ byhKnbBXjE9/ZcnrYbZgNugnp/TqfBveWZPPnrn2BoltbgtmrKvtlwaiWWkzLuDa/qcP 6B7h0YZ+z73zDn3fVwklKdOigW/NCPWaxbTBbAz5Se/Cmk81eqG2n0cU151OjBnVLLvS OTzvOH4ePLiHw6WW63hzG10DJq8yRPFmxdy8Z1seDhAzHU6RjCE811ZPcVgwS+qakvdp R0yWcZ14EJFeB8ek+4OJVYnZg1bSLJQ315HcXfCS699/UWD6Y2Vc6gWU8Gck+PlEn78B YWhg== X-Gm-Message-State: ACgBeo0TvOqi/fWIdufVYkw5+c2tqRvuVf+WVabSqPsSdLSGqo6G7OE+ 2YCsrhkcMlXAk+jwXG4pmXAuEiJiVVIfiw== X-Google-Smtp-Source: AA6agR4NodnYC9N5Rabail78THWFF2yR0amvJOOlRLcSyxZtC4GKVpodADj9urbM516dSLRg3GhZTg== X-Received: by 2002:a63:134d:0:b0:42a:9680:29d7 with SMTP id 13-20020a63134d000000b0042a968029d7mr12619544pgt.249.1661756216031; Sun, 28 Aug 2022 23:56:56 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:a0f0::24e6]) by smtp.gmail.com with ESMTPSA id p10-20020a170902e74a00b0016d5b7fb02esm505489plf.60.2022.08.28.23.56.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Aug 2022 23:56:55 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 5/7] mongodb: Fix boost build with clang-15 Date: Sun, 28 Aug 2022 23:56:47 -0700 Message-Id: <20220829065649.808556-5-raj.khem@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220829065649.808556-1-raj.khem@gmail.com> References: <20220829065649.808556-1-raj.khem@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 29 Aug 2022 06:57:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/98516 Signed-off-by: Khem Raj --- ...y-binary_function-base-classes-are-d.patch | 40 +++++++++++++++++++ .../recipes-dbs/mongodb/mongodb_git.bb | 1 + 2 files changed, 41 insertions(+) create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-The-std-lib-unary-binary_function-base-classes-are-d.patch diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-The-std-lib-unary-binary_function-base-classes-are-d.patch b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-The-std-lib-unary-binary_function-base-classes-are-d.patch new file mode 100644 index 0000000000..4594bec81a --- /dev/null +++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-The-std-lib-unary-binary_function-base-classes-are-d.patch @@ -0,0 +1,40 @@ +From f9b55f5a1fab85bf73c95e6372779d6f50f75e84 Mon Sep 17 00:00:00 2001 +From: jzmaddock +Date: Mon, 11 Jul 2022 18:26:07 +0100 +Subject: [PATCH] The std lib unary/binary_function base classes are + deprecated/removed from libcpp15. Fixes + https://github.com/boostorg/container_hash/issues/24. + +Upstream-Status: Backport [https://github.com/boostorg/config/pull/440/commits/f0af4a9184457939b89110795ae2d293582c5f66] +Signed-off-by: Khem Raj +--- + src/third_party/boost-1.70.0/boost/config/stdlib/libcpp.hpp | 9 +++++++++ + 1 file changed, 9 insertions(+) + +--- a/src/third_party/boost-1.70.0/boost/config/stdlib/libcpp.hpp ++++ b/src/third_party/boost-1.70.0/boost/config/stdlib/libcpp.hpp +@@ -140,4 +140,13 @@ + # define BOOST_NO_CXX14_HDR_SHARED_MUTEX + #endif + ++#if _LIBCPP_VERSION >= 15000 ++// ++// Unary function is now deprecated in C++11 and later: ++// ++#if __cplusplus >= 201103L ++#define BOOST_NO_CXX98_FUNCTION_BASE ++#endif ++#endif ++ + // --- end --- +--- a/src/third_party/boost-1.70.0/boost/container_hash/hash.hpp ++++ b/src/third_party/boost-1.70.0/boost/container_hash/hash.hpp +@@ -118,7 +118,7 @@ namespace boost + { + namespace hash_detail + { +-#if defined(_HAS_AUTO_PTR_ETC) && !_HAS_AUTO_PTR_ETC ++#if defined(BOOST_NO_CXX98_FUNCTION_BASE) + template + struct hash_base + { diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb index ff4a16e9f2..d040ab160b 100644 --- a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb +++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb @@ -32,6 +32,7 @@ SRC_URI = "git://github.com/mongodb/mongo.git;branch=v4.4;protocol=https \ file://PTHREAD_STACK_MIN.patch \ file://0001-add-explict-static_cast-size_t-to-maxMemoryUsageByte.patch \ file://0001-server-Adjust-the-cache-alignment-assumptions.patch \ + file://0001-The-std-lib-unary-binary_function-base-classes-are-d.patch \ " SRC_URI:append:libc-musl ="\ file://0001-Mark-one-of-strerror_r-implementation-glibc-specific.patch \ From patchwork Mon Aug 29 06:56:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 12032 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 35A15ECAAD5 for ; Mon, 29 Aug 2022 06:57:04 +0000 (UTC) Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) by mx.groups.io with SMTP id smtpd.web09.67685.1661756218055212429 for ; Sun, 28 Aug 2022 23:56:58 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QY6yj6E+; spf=pass (domain: gmail.com, ip: 209.85.215.179, mailfrom: raj.khem@gmail.com) Received: by mail-pg1-f179.google.com with SMTP id c24so6872166pgg.11 for ; Sun, 28 Aug 2022 23:56:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=0WQDQg83fa0D+dSVqPo3UHz0d8hxTypR8n/U6RIIbnM=; b=QY6yj6E+I3s87DTfRiU57ZsSBu5cuk9Q36vPojUyc7xCrouWF8iWd+zos2bbt67uLw QTxkVoxYLGXPRjqZQ+PkIX0K0+rQa1aMTLFCaCKhP0DiOJPTcUeWUTUlFK2D5+iX1iC+ eAUoPT3ttlagzATsyERAd9Gks1Nr77Uw43uo7KIG9HyiWYKpXNGUckdRvPTmlZ6YGe9A z4Bzy1ZErmoZsCZxEgSoAdrQYFQbqHbwSXwDX7F6vGwiDfFwsMzAPazwW4FBeyUmfnVV R7PyTxS5x668LZnb0PlXQ2/0cH3raJOT0JA5Jwgj02nsyHWScu+WuB0qUhxJdmYoGpP3 rzAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=0WQDQg83fa0D+dSVqPo3UHz0d8hxTypR8n/U6RIIbnM=; b=dFeUuSn3iC7CFGKNPJPQ8ZVblByHih4tY+93elF47lSHfn1eD+vtWGwRMXjWHmV3+t T3PCPUOzRO3t6bcJrNou7EriVEXn6JpH6EFbtzuY81kKU5dPHvtosW7il/ctU9Ev1GOM 0RhBCKpzJXu7aa9x/hJ4lpgttCuqhPVbynvvRed/Y/taHn/GKsQ1SA5tFazQmpaS/Won i8Xv2m7PDFywfd9C7p23xgYFBcw3LVClxBJ3oN82eP5paExtdnJ/KmRFtfe4sGJy5Nbm 5JuZyS4NNoxZAs/p/LrF2G3O/Gg3CKg49oF1p15NImnpTiDtkeLoqLQT6rzTo/YLBaEo PFtw== X-Gm-Message-State: ACgBeo0+snehnFkjb56WUHpuYnEsVAuapPwPawPqiDssIp7DfnSPGRjy EFROvgT0H9tZ3/s2XdKLMg1ubiC/eIOlUA== X-Google-Smtp-Source: AA6agR5vGSBS/97t+YlzPoQX4gt2HZi1PHqmLZFR+jkZBQmnxsCmJOqnoEECiym3+GIevSP/G0kP1g== X-Received: by 2002:aa7:8a0b:0:b0:537:f5f1:fd91 with SMTP id m11-20020aa78a0b000000b00537f5f1fd91mr9239472pfa.41.1661756217159; Sun, 28 Aug 2022 23:56:57 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:a0f0::24e6]) by smtp.gmail.com with ESMTPSA id p10-20020a170902e74a00b0016d5b7fb02esm505489plf.60.2022.08.28.23.56.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Aug 2022 23:56:56 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-networking][PATCH 6/7] crda: Fix build with clang-15 Date: Sun, 28 Aug 2022 23:56:48 -0700 Message-Id: <20220829065649.808556-6-raj.khem@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220829065649.808556-1-raj.khem@gmail.com> References: <20220829065649.808556-1-raj.khem@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 29 Aug 2022 06:57:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/98517 Signed-off-by: Khem Raj --- .../0001-reglib-Remove-unused-variables.patch | 59 +++++++++++++++++++ .../recipes-connectivity/crda/crda_3.18.bb | 1 + 2 files changed, 60 insertions(+) create mode 100644 meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/0001-reglib-Remove-unused-variables.patch diff --git a/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/0001-reglib-Remove-unused-variables.patch b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/0001-reglib-Remove-unused-variables.patch new file mode 100644 index 0000000000..c6c3c53f19 --- /dev/null +++ b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda/0001-reglib-Remove-unused-variables.patch @@ -0,0 +1,59 @@ +From 1bd6ff9d10c83afbc9954fc38b953e9167e6d4a9 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sun, 28 Aug 2022 14:01:55 -0700 +Subject: [PATCH] reglib: Remove unused variables + +These counters are not used anywhere therefore delete them +Fixes +reglib.c:1015:15: error: variable 'i' set but not used [-Werror,-Wunused-but-set-variable] + unsigned int i = 0; + ^ +reglib.c:1062:15: error: variable 'lines' set but not used [-Werror,-Wunused-but-set-variable] + unsigned int lines = 0; + ^ + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + reglib.c | 4 ---- + 1 file changed, 4 deletions(-) + +diff --git a/reglib.c b/reglib.c +index 8565a0b..6c62c2c 100644 +--- a/reglib.c ++++ b/reglib.c +@@ -1012,7 +1012,6 @@ static int reglib_find_next_country_stream(FILE *fp) + { + fpos_t prev_pos; + int r; +- unsigned int i = 0; + + while(1) { + char line[1024]; +@@ -1030,7 +1029,6 @@ static int reglib_find_next_country_stream(FILE *fp) + line_p = fgets(line, sizeof(line), fp); + if (line_p == line) { + if (strspn(line, "\n") == strlen(line)) { +- i++; + continue; + } + if (strncmp(line, "country", 7) != 0) +@@ -1059,7 +1057,6 @@ struct ieee80211_regdomain *reglib_parse_country(FILE *fp) + + FILE *reglib_create_parse_stream(FILE *f) + { +- unsigned int lines = 0; + FILE *fp; + + fp = tmpfile(); +@@ -1076,7 +1073,6 @@ FILE *reglib_create_parse_stream(FILE *f) + if (line_p == line) { + if (strchr(line, '#') == NULL) { + fputs(line, fp); +- lines++; + } + continue; + } else +-- +2.37.2 + diff --git a/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda_3.18.bb b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda_3.18.bb index a616557e7c..2f4d4dac99 100644 --- a/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda_3.18.bb +++ b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/crda/crda_3.18.bb @@ -16,6 +16,7 @@ SRC_URI = "https://www.kernel.org/pub/software/network/${BPN}/${BP}.tar.xz \ file://fix-issues-when-USE_OPENSSL-1.patch \ file://crda-4.14-python-3.patch \ file://0001-Make-alpha2-to-be-3-characters-long.patch \ + file://0001-reglib-Remove-unused-variables.patch \ " SRC_URI[md5sum] = "0431fef3067bf503dfb464069f06163a" SRC_URI[sha256sum] = "43fcb9679f8b75ed87ad10944a506292def13e4afb194afa7aa921b01e8ecdbf" From patchwork Mon Aug 29 06:56:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 12033 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34835ECAAD4 for ; Mon, 29 Aug 2022 06:57:04 +0000 (UTC) Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) by mx.groups.io with SMTP id smtpd.web09.67684.1661756214817469019 for ; Sun, 28 Aug 2022 23:56:59 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=EEOuPeJx; spf=pass (domain: gmail.com, ip: 209.85.215.172, mailfrom: raj.khem@gmail.com) Received: by mail-pg1-f172.google.com with SMTP id 12so6904763pga.1 for ; Sun, 28 Aug 2022 23:56:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=d0XfFHihTLC5GrC/wnD5JQH+FZG0f5swEPPTsXn/Dq8=; b=EEOuPeJxbVXvxFeHtRnQnz7MlqL60N4/12YPgOXYTH34nIQBz7qs3KvvD2gXLgLOTg 8Ts0bEUE1+4piP8pHr2BBrr2k5Hz4u4faSMP1NbIr5yshI5krA6HnpNK3Fpq5d9lJcDZ RVX/2vNX2u7pz4mqEpTMT4/IenCeBrS9czOiHLwAl2UqJbqqIz6qRruIFup/hOyOa9+p K6+K33jDz9+byd6+8+yRWBH1eQRSWhULTPUqlsyGQ4QdhRkyqLDnGb0v7v5Is03IOmYS kc8yaIwQLVwXybq2jG4F+RSRzjR0H6ddqFnSP0kfr6rZ34RSobLvNzq4I5tswyPKgM0F mtQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=d0XfFHihTLC5GrC/wnD5JQH+FZG0f5swEPPTsXn/Dq8=; b=O6KaQvbk4mq26n1kW5Tyh+rHFwDhGCuZuS/qpjB7Wrt7t/os0/p8LJj0LyaJuHVu0m 755VCdbs5Bve2ergFi42Bm3Xi2WrLSbfY4Z48wSLl1/gD4BvWXDud798jHNoOry8VT1f y3kROnp3YekoQvXLa9x8i8sI3IzHzSB6RoxntYRe7/2Q7LhTMlRG5HHbr31V1HTt4fni Z+NeWBG40Y0dSIhLJMxz/paTWbrb9YXSHmA7DwdF9k8Ha5R2mlPkwname4a8rwglXE8+ Z6S8dMN5Iho5vId28uBDk6qr9jlxL+alIS5A6UbeSwFeu291t5BW1yfAWrV0aDv7AY5b R81w== X-Gm-Message-State: ACgBeo25YjhQYZEFHCrQDBKggphG3cMLdgnPaZ6H3A2zpe9dvkaJUp7S uiZhShycgCt7DuuWsiu4i+lCAG1Yc3IvqA== X-Google-Smtp-Source: AA6agR6gUYfi6lKG8MbBkv0S+p7q28CuXDzO4FyiDsFR7Q9Rpe0ZfN7CMNKUxSAfcxAkNwAqbxwS/g== X-Received: by 2002:a63:4f10:0:b0:426:9c61:5e48 with SMTP id d16-20020a634f10000000b004269c615e48mr12552856pgb.360.1661756218196; Sun, 28 Aug 2022 23:56:58 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:a0f0::24e6]) by smtp.gmail.com with ESMTPSA id p10-20020a170902e74a00b0016d5b7fb02esm505489plf.60.2022.08.28.23.56.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Aug 2022 23:56:57 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-webserver][PATCH 7/7] monkey: Fix build with musl Date: Sun, 28 Aug 2022 23:56:49 -0700 Message-Id: <20220829065649.808556-7-raj.khem@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220829065649.808556-1-raj.khem@gmail.com> References: <20220829065649.808556-1-raj.khem@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 29 Aug 2022 06:57:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/98518 Signed-off-by: Khem Raj --- ...alue-instead-of-address-of-sin6_port.patch | 30 +++++++++++++++++++ .../recipes-httpd/monkey/monkey_1.6.9.bb | 1 + 2 files changed, 31 insertions(+) create mode 100644 meta-webserver/recipes-httpd/monkey/files/0001-fastcgi-Use-value-instead-of-address-of-sin6_port.patch diff --git a/meta-webserver/recipes-httpd/monkey/files/0001-fastcgi-Use-value-instead-of-address-of-sin6_port.patch b/meta-webserver/recipes-httpd/monkey/files/0001-fastcgi-Use-value-instead-of-address-of-sin6_port.patch new file mode 100644 index 0000000000..f4bab49aa7 --- /dev/null +++ b/meta-webserver/recipes-httpd/monkey/files/0001-fastcgi-Use-value-instead-of-address-of-sin6_port.patch @@ -0,0 +1,30 @@ +From 7f724bbafbb1e170401dd5de201273ab8c8bc75f Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sun, 28 Aug 2022 14:24:02 -0700 +Subject: [PATCH] fastcgi: Use value instead of address of sin6_port + +This seems to be wrongly assigned where ipv4 sin_port is +equated to address of sin6_port and not value of sin6_port + +Upstream-Status: Submitted [https://github.com/monkey/monkey/pull/375] +Signed-off-by: Khem Raj +--- + plugins/fastcgi/fcgi_handler.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/plugins/fastcgi/fcgi_handler.c b/plugins/fastcgi/fcgi_handler.c +index 9e095e3c..e8e1eec1 100644 +--- a/plugins/fastcgi/fcgi_handler.c ++++ b/plugins/fastcgi/fcgi_handler.c +@@ -245,7 +245,7 @@ static inline int fcgi_add_param_net(struct fcgi_handler *handler) + struct sockaddr_in *s4 = (struct sockaddr_in *)&addr4; + memset(&addr4, 0, sizeof(addr4)); + addr4.sin_family = AF_INET; +- addr4.sin_port = &s->sin6_port; ++ addr4.sin_port = s->sin6_port; + memcpy(&addr4.sin_addr.s_addr, + s->sin6_addr.s6_addr + 12, + sizeof(addr4.sin_addr.s_addr)); +-- +2.37.2 + diff --git a/meta-webserver/recipes-httpd/monkey/monkey_1.6.9.bb b/meta-webserver/recipes-httpd/monkey/monkey_1.6.9.bb index fff406a3f2..5b7e32733c 100644 --- a/meta-webserver/recipes-httpd/monkey/monkey_1.6.9.bb +++ b/meta-webserver/recipes-httpd/monkey/monkey_1.6.9.bb @@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93" SECTION = "net" SRC_URI = "http://monkey-project.com/releases/1.6/monkey-${PV}.tar.gz \ + file://0001-fastcgi-Use-value-instead-of-address-of-sin6_port.patch \ file://monkey.service \ file://monkey.init"