From patchwork Tue Aug 16 03:30:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 11431 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 CC152C25B0E for ; Tue, 16 Aug 2022 03:30:15 +0000 (UTC) Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) by mx.groups.io with SMTP id smtpd.web08.11704.1660620609381524746 for ; Mon, 15 Aug 2022 20:30:09 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JmMhwjlg; spf=pass (domain: gmail.com, ip: 209.85.215.170, mailfrom: raj.khem@gmail.com) Received: by mail-pg1-f170.google.com with SMTP id 24so8180719pgr.7 for ; Mon, 15 Aug 2022 20:30:09 -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=r4uBnhxG3n+arh0PG+jN1R/G5EDDbe9j9nWk5xshwyc=; b=JmMhwjlgXKc2Xz32gCUSjvgP0+T5KOKFpKyNRtRj5547tEPOem2Im+AbleBKBE2wu2 WK62r8LYehIzrMVeCUc/coz/tRZTXiRv2gewhMVwQH06/daWb0NsMoDQIlBBUiG0hOUo lFnddkxm0TMzLYsA1yalU5e+F1yXuIwqgWoY30xLIQvE4zxJph2dMxCXZ1cmv/XCDybg xQQHOPCmG31NEBtg8VE7TKiokYBqTxdG9nmPp9klA+akZTKDmPQe46jYVGdBsjWaadne UoqBEHXPGcEFKQdzBIosBGbNGIKzrrHA+vrHJ2dwN7cUXqZrmaFBvFbxxkN4LVbuccgC 6ZjA== 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=r4uBnhxG3n+arh0PG+jN1R/G5EDDbe9j9nWk5xshwyc=; b=2od8T1Fb51TY0TD/lnokmzxiJkdblGSmEiOb8JLZSUPa5LNFTUqZXXpPV5QtuzW6tX 3CYSbgbgQoe4wxTqCTkW7Ycp4hhOQgLhd1xB5qEcux0Afsl/3akFhzmZWWk7X3CPpUjG pHxgmELUFK84UN4IyJRXFXWueE/3acY0eMl4FwYgvWuhnq/DqRgQf86sjl5/EQeNHCYQ +fcx/Zo2VlqymKEP2Z7SsCuWerOyg9r8nZDtSY01BFFi8J7iYJ23yNG8pfpT5TP0L+cH 6+TigvfTB6axszejqFznMjtKfaWvmCXMrWUNOCGpuU6IPp6QRvyPMRsVOPz3fRc4Y2At yv9g== X-Gm-Message-State: ACgBeo3SU6RIpIV5zxOP2KbpPUMYymz/DbNebZM2jIxLoJF7zFbCq7BC qStDjmRhL44U/vQ2UFYRiZbTwmjB1jxxPA== X-Google-Smtp-Source: AA6agR6yU6yImn06qzWON2KX1ZmCVBKIxGYB0ZRhvmqXubN892Hf1LuPCnjwxFZwCAvxLgoTI85xKg== X-Received: by 2002:a63:d0:0:b0:41b:c075:acb5 with SMTP id 199-20020a6300d0000000b0041bc075acb5mr15890676pga.480.1660620608387; Mon, 15 Aug 2022 20:30:08 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:a0f0::bb7a]) by smtp.gmail.com with ESMTPSA id b190-20020a621bc7000000b0052d87b76d12sm7218807pfb.68.2022.08.15.20.30.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Aug 2022 20:30:07 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Cc: Khem Raj Subject: [PATCH 1/6] time: Add missing include for memset Date: Mon, 15 Aug 2022 20:30:00 -0700 Message-Id: <20220816033005.2700801-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 ; Tue, 16 Aug 2022 03:30:15 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/169415 Signed-off-by: Khem Raj --- .../0001-include-string.h-for-memset.patch | 27 +++++++++++++++++++ meta/recipes-extended/time/time_1.9.bb | 4 ++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-extended/time/time/0001-include-string.h-for-memset.patch diff --git a/meta/recipes-extended/time/time/0001-include-string.h-for-memset.patch b/meta/recipes-extended/time/time/0001-include-string.h-for-memset.patch new file mode 100644 index 00000000000..f6ea212667e --- /dev/null +++ b/meta/recipes-extended/time/time/0001-include-string.h-for-memset.patch @@ -0,0 +1,27 @@ +From c8deae54f92d636878097063b411af9fb5262ad3 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 15 Aug 2022 07:24:24 -0700 +Subject: [PATCH] include string.h for memset() + +Fixes implicit function declaration warning e.g. + +resuse.c:103:3: error: call to undeclared library function 'memset' with type 'void *(void *, int, unsigned long)' + +Upstream-Status: Submitted [https://lists.gnu.org/archive/html/bug-time/2022-08/msg00001.html] +Signed-off-by: Khem Raj +--- + src/resuse.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/resuse.c b/src/resuse.c +index cf5a08c..9d3d18a 100644 +--- a/src/resuse.c ++++ b/src/resuse.c +@@ -22,6 +22,7 @@ + */ + + #include "config.h" ++#include + #include + #include + #include diff --git a/meta/recipes-extended/time/time_1.9.bb b/meta/recipes-extended/time/time_1.9.bb index 706605fe065..8364210e61c 100644 --- a/meta/recipes-extended/time/time_1.9.bb +++ b/meta/recipes-extended/time/time_1.9.bb @@ -13,7 +13,9 @@ ALTERNATIVE_PRIORITY = "100" BBCLASSEXTEND = "native nativesdk" -SRC_URI = "${GNU_MIRROR}/time/time-${PV}.tar.gz" +SRC_URI = "${GNU_MIRROR}/time/time-${PV}.tar.gz \ + file://0001-include-string.h-for-memset.patch \ + " SRC_URI[md5sum] = "d2356e0fe1c0b85285d83c6b2ad51b5f" SRC_URI[sha256sum] = "fbacf0c81e62429df3e33bda4cee38756604f18e01d977338e23306a3e3b521e" From patchwork Tue Aug 16 03:30:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 11432 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 DFEE4C25B0D for ; Tue, 16 Aug 2022 03:30:15 +0000 (UTC) Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) by mx.groups.io with SMTP id smtpd.web08.11704.1660620609381524746 for ; Mon, 15 Aug 2022 20:30:10 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bVFkDTuE; spf=pass (domain: gmail.com, ip: 209.85.215.170, mailfrom: raj.khem@gmail.com) Received: by mail-pg1-f170.google.com with SMTP id 24so8180755pgr.7 for ; Mon, 15 Aug 2022 20:30:10 -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=z1afqLnQhqllfmpYCc0P2HFLvFN29PUrQNPwN0sGb5c=; b=bVFkDTuEasqwBuR8vp7y/TmJfo7b+LCvh2tsifrNCOmqac9/jtrR+GGgzwdG/CyB6F IaTako+fjkXu3JHnvIFmU/Dd8fTo72pg+irpnzZTrJp4Pzi8J+eyUZIZMv2MlLiw5zrD qYeyslBJpHFuJ49t3xTOhnABfcpD9lsO3dB5IVizT5UVs7RPyblqiHhBcGYcQW7n6rNU /9PRz8FYoFwqZZLYkQt9qqLkZlzfoz4sMgr0PZKBkqwzhGJR+yjzXicL7VxFQ1pJmHDw 6ttK9lFpOSJsvzzqoLCUw3mF3lFPEbXYPBZFOO0lvEnqLRdwOOGhVHo06/6wCmhev0QE hwrg== 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=z1afqLnQhqllfmpYCc0P2HFLvFN29PUrQNPwN0sGb5c=; b=w3rtSZOxcW91dDEmpK8LoRy1US6PCvdTzanNSpj8ghwq4wWSs6oyRzGNsL5K8l1oAQ hhczE20Eoy4KVTkHTVsnECol6yuva21C7zCkmWlR0bpoYm6574RfPQqQeaLrgNOgEwC3 Cg7dUv7Os7ff+9xMkVsGzyVxT9VnBzzcNvps24vPfVb2HgkyqoEdtkdTbEa1zKzWR59i pHFEvz+BjmtFiwF5pGoiPVedf4odGebtsMxWGCZfsCRWjB6GZmkTccfHmzChIILKcwL7 +Ixuuv7EbA+SsR3pluTUIaisizJ/YgYgcNF6gd13WX1MgpplDRNJpZqgO+YcaGnvuPYs +efA== X-Gm-Message-State: ACgBeo3oG5Tv9dYw8KXmoCWNgsCAURsI9HBmRf7DZ3BzIjSIDZDgfmax RbCpv1SKUBVXFEuF17S7Oa1wOOUVXeEdKA== X-Google-Smtp-Source: AA6agR70Ii5EHEIuJPT6wbK8fZ/XrZodKFob7v+iy4zip/KYTxKJjiPpbfnA29vCjc7yET008hvxZQ== X-Received: by 2002:a63:6b06:0:b0:41b:79c9:7313 with SMTP id g6-20020a636b06000000b0041b79c97313mr16169425pgc.409.1660620609624; Mon, 15 Aug 2022 20:30:09 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:a0f0::bb7a]) by smtp.gmail.com with ESMTPSA id b190-20020a621bc7000000b0052d87b76d12sm7218807pfb.68.2022.08.15.20.30.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Aug 2022 20:30:08 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Cc: Khem Raj Subject: [PATCH 2/6] screen: Add missing include files in configure checks Date: Mon, 15 Aug 2022 20:30:01 -0700 Message-Id: <20220816033005.2700801-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220816033005.2700801-1-raj.khem@gmail.com> References: <20220816033005.2700801-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 ; Tue, 16 Aug 2022 03:30:15 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/169416 Fixes builds with -Werror Signed-off-by: Khem Raj --- ...-Add-needed-system-headers-in-checks.patch | 151 ++++++++++++++++++ meta/recipes-extended/screen/screen_4.9.0.bb | 3 +- 2 files changed, 153 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-extended/screen/screen/0001-configure-Add-needed-system-headers-in-checks.patch diff --git a/meta/recipes-extended/screen/screen/0001-configure-Add-needed-system-headers-in-checks.patch b/meta/recipes-extended/screen/screen/0001-configure-Add-needed-system-headers-in-checks.patch new file mode 100644 index 00000000000..80659942c73 --- /dev/null +++ b/meta/recipes-extended/screen/screen/0001-configure-Add-needed-system-headers-in-checks.patch @@ -0,0 +1,151 @@ +From 4e102de2e6204c1d8e8be00bb5ffd4587e70350c Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 15 Aug 2022 10:35:53 -0700 +Subject: [PATCH] configure: Add needed system headers in checks + +Newer compilers throw warnings when a funciton is used with implicit +declaration and enabling -Werror can silently fail these tests and +result in wrong configure results. Therefore add the needed headers in +the AC_TRY_LINK macros + + * configure.ac: Add missing system headers in AC_TRY_LINK. + +Upstream-Status: Submitted [https://lists.gnu.org/archive/html/screen-devel/2022-08/msg00000.html] +Signed-off-by: Khem Raj +--- + configure.ac | 57 +++++++++++++++++++++++++++++++++++++++------------- + 1 file changed, 43 insertions(+), 14 deletions(-) + +diff --git a/configure.ac b/configure.ac +index c0f02df..d308079 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -233,6 +233,7 @@ AC_CHECKING(BSD job jontrol) + AC_TRY_LINK( + [#include + #include ++#include + ], [ + #ifdef POSIX + tcsetpgrp(0, 0); +@@ -250,12 +251,16 @@ dnl + dnl **** setresuid(), setreuid(), seteuid() **** + dnl + AC_CHECKING(setresuid) +-AC_TRY_LINK(,[ +-setresuid(0, 0, 0); ++AC_TRY_LINK([ ++#include ++],[ ++return setresuid(0, 0, 0); + ], AC_DEFINE(HAVE_SETRESUID)) + AC_CHECKING(setreuid) +-AC_TRY_LINK(,[ +-setreuid(0, 0); ++AC_TRY_LINK([ ++#include ++],[ ++return setreuid(0, 0); + ], AC_DEFINE(HAVE_SETREUID)) + dnl + dnl seteuid() check: +@@ -274,7 +279,9 @@ seteuid(0); + + dnl execvpe + AC_CHECKING(execvpe) +-AC_TRY_LINK(,[ ++AC_TRY_LINK([ ++ #include ++],[ + execvpe(0, 0, 0); + ], AC_DEFINE(HAVE_EXECVPE) + CFLAGS="$CFLAGS -D_GNU_SOURCE") +@@ -284,10 +291,18 @@ dnl **** select() **** + dnl + + AC_CHECKING(select) +-AC_TRY_LINK(,[select(0, 0, 0, 0, 0);],, ++AC_TRY_LINK([ ++ #include ++],[ ++ select(0, 0, 0, 0, 0); ++],, + LIBS="$LIBS -lnet -lnsl" + AC_CHECKING(select with $LIBS) +-AC_TRY_LINK(,[select(0, 0, 0, 0, 0);],, ++AC_TRY_LINK([ ++ #include ++],[ ++ select(0, 0, 0, 0, 0); ++],, + AC_MSG_ERROR(!!! no select - no screen)) + ) + dnl +@@ -624,11 +639,19 @@ dnl + dnl **** termcap or terminfo **** + dnl + AC_CHECKING(for tgetent) +-AC_TRY_LINK(,tgetent((char *)0, (char *)0);,, ++AC_TRY_LINK([ ++ #include ++ #include ++],[ ++ tgetent((char *)0, (char *)0); ++],, + olibs="$LIBS" + LIBS="-lcurses $olibs" + AC_CHECKING(libcurses) +-AC_TRY_LINK(,[ ++AC_TRY_LINK([ ++ #include ++ #include ++],[ + #ifdef __hpux + __sorry_hpux_libcurses_is_totally_broken_in_10_10(); + #else +@@ -871,7 +894,7 @@ test -f /usr/lib/libutil.a && LIBS="$LIBS -lutil" + fi + + AC_CHECKING(getloadavg) +-AC_TRY_LINK(,[getloadavg((double *)0, 0);], ++AC_TRY_LINK([#include ],[getloadavg((double *)0, 0);], + AC_DEFINE(LOADAV_GETLOADAVG) load=1, + if test "$cross_compiling" = no && test -f /usr/lib/libkvm.a ; then + olibs="$LIBS" +@@ -1109,10 +1132,10 @@ AC_CHECKING(IRIX sun library) + AC_TRY_LINK(,,,LIBS="$oldlibs") + + AC_CHECKING(syslog) +-AC_TRY_LINK(,[closelog();], , [oldlibs="$LIBS" ++AC_TRY_LINK([#include ],[closelog();], , [oldlibs="$LIBS" + LIBS="$LIBS -lbsd" + AC_CHECKING(syslog in libbsd.a) +-AC_TRY_LINK(, [closelog();], AC_NOTE(- found.), [LIBS="$oldlibs" ++AC_TRY_LINK([#include ], [closelog();], AC_NOTE(- found.), [LIBS="$oldlibs" + AC_NOTE(- bad news: syslog missing.) AC_DEFINE(NOSYSLOG)])]) + + AC_EGREP_CPP(YES_IS_DEFINED, +@@ -1149,7 +1172,7 @@ AC_CHECKING(getspnam) + AC_TRY_LINK([#include ], [getspnam("x");],AC_DEFINE(SHADOWPW)) + + AC_CHECKING(getttyent) +-AC_TRY_LINK(,[getttyent();], AC_DEFINE(GETTTYENT)) ++AC_TRY_LINK([#include ],[getttyent();], AC_DEFINE(GETTTYENT)) + + AC_CHECKING(fdwalk) + AC_TRY_LINK([#include ], [fdwalk(NULL, NULL);],AC_DEFINE(HAVE_FDWALK)) +@@ -1204,7 +1227,13 @@ main() { + AC_SYS_LONG_FILE_NAMES + + AC_MSG_CHECKING(for vsprintf) +-AC_TRY_LINK([#include ],[va_list valist; vsprintf(0,0,valist);], AC_MSG_RESULT(yes);AC_DEFINE(USEVARARGS), AC_MSG_RESULT(no)) ++AC_TRY_LINK([ ++ #include ++ #include ++],[ ++ va_list valist; ++ vsprintf(0,0,valist); ++], AC_MSG_RESULT(yes);AC_DEFINE(USEVARARGS), AC_MSG_RESULT(no)) + + AC_HEADER_DIRENT + diff --git a/meta/recipes-extended/screen/screen_4.9.0.bb b/meta/recipes-extended/screen/screen_4.9.0.bb index b36173b8dee..77e8000bf3b 100644 --- a/meta/recipes-extended/screen/screen_4.9.0.bb +++ b/meta/recipes-extended/screen/screen_4.9.0.bb @@ -21,7 +21,8 @@ SRC_URI = "${GNU_MIRROR}/screen/screen-${PV}.tar.gz \ file://0002-comm.h-now-depends-on-term.h.patch \ file://0001-fix-for-multijob-build.patch \ file://0001-Remove-more-compatibility-stuff.patch \ - " + file://0001-configure-Add-needed-system-headers-in-checks.patch \ + " SRC_URI[sha256sum] = "f9335281bb4d1538ed078df78a20c2f39d3af9a4e91c57d084271e0289c730f4" From patchwork Tue Aug 16 03:30:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 11428 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 C9096C25B08 for ; Tue, 16 Aug 2022 03:30:15 +0000 (UTC) Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) by mx.groups.io with SMTP id smtpd.web11.11496.1660620612036479944 for ; Mon, 15 Aug 2022 20:30:12 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=a9/ATeje; spf=pass (domain: gmail.com, ip: 209.85.215.169, mailfrom: raj.khem@gmail.com) Received: by mail-pg1-f169.google.com with SMTP id 12so8190155pga.1 for ; Mon, 15 Aug 2022 20:30:11 -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=wbp+i9FxWZplj3M65vQ+HyogWfMrCQWAnbAvb2uJRr4=; b=a9/ATejealkv0CoHHHSJjc/RAVh7hVzNlPtbvbGD9UZeNOdk+gCCdLWB+jPNyQRzIn YFY3aEf5VX+ynUHKPfu3TKcaR70D0axCKaxECDOejIJhS+Dsv1eVokmZ7iZ4o/IlvZ/A 2XHRDOVfCw8kUwCqQgkYG5T3yxbYndzbMJwX2DdEkdmVHJsp3W9M6siezbIs5o8kmjvo sYt0+y1WzcwX4j0kH+NmzwGXVVlpoB1lDLwu+NdDgQllHdcAYyCky6aOfBLIQZzk0Ayc QBXEvPgmeLXBbz5DMw2GsEb3WGNKY4qpowTjzNtSPrGJXoMJCG3+v7ZrfAuioeDGEhe7 R5Bw== 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=wbp+i9FxWZplj3M65vQ+HyogWfMrCQWAnbAvb2uJRr4=; b=uNEQzH12gwAs1gReO5P/0bvUiSio8Z/A1YC5BZglbeThFz/LxSaVGUs+vVtBlRfO/K BDys7J/SUktjNfCc00VFTDvzYE9obE2a2M7NMVWdKEyceoVXe1RDNau8oycbjyspMuYN G7CowzNi2DwNtUH1ctFUQLKUBBCr7S5btMmNbeeQb6FJe947hZ4/8hBSCj9HU2aTFWXH NB0QrUggP2S+6FmA0saFo9YasJ3pdOmrEkC5cytxBK42NsPz/fRDbRrL0l25lU0szGx1 4yJC6OtTrXSV76e/6Vs4k+XAbmriKViJX/NuD7rCj5sV8Us0tK2iWEy7AWTrb/6u+fLy /I0g== X-Gm-Message-State: ACgBeo3nbCvNLjGKReYTjSDRvnUbZaqe9ZG+fJqqIgQY5s9mSvB+rT/w ksuh/Bzzdd65psGBJ5uWrExxL3+9gqSiPA== X-Google-Smtp-Source: AA6agR7EPwvXnpWDO8couRcl6XtfEv2gIEoKheS6bzoeHat9oYrOz7HzCMXqZuHQhYdEjVII+nml4Q== X-Received: by 2002:a63:874a:0:b0:422:8585:2e3f with SMTP id i71-20020a63874a000000b0042285852e3fmr13902548pge.567.1660620611042; Mon, 15 Aug 2022 20:30:11 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:a0f0::bb7a]) by smtp.gmail.com with ESMTPSA id b190-20020a621bc7000000b0052d87b76d12sm7218807pfb.68.2022.08.15.20.30.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Aug 2022 20:30:10 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Cc: Khem Raj Subject: [PATCH 3/6] setserial: Fix build with clang Date: Mon, 15 Aug 2022 20:30:02 -0700 Message-Id: <20220816033005.2700801-3-raj.khem@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220816033005.2700801-1-raj.khem@gmail.com> References: <20220816033005.2700801-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 ; Tue, 16 Aug 2022 03:30:15 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/169417 Signed-off-by: Khem Raj --- ...needed-system-headers-for-ioctl-and-.patch | 41 +++++++++++++++++++ meta/recipes-bsp/setserial/setserial_2.17.bb | 3 +- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-bsp/setserial/setserial/0001-setserial.c-Add-needed-system-headers-for-ioctl-and-.patch diff --git a/meta/recipes-bsp/setserial/setserial/0001-setserial.c-Add-needed-system-headers-for-ioctl-and-.patch b/meta/recipes-bsp/setserial/setserial/0001-setserial.c-Add-needed-system-headers-for-ioctl-and-.patch new file mode 100644 index 00000000000..10c6ae881be --- /dev/null +++ b/meta/recipes-bsp/setserial/setserial/0001-setserial.c-Add-needed-system-headers-for-ioctl-and-.patch @@ -0,0 +1,41 @@ +From 9bbb342f5d9ad5dc75486fd35ada8e287ba19299 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 15 Aug 2022 13:03:17 -0700 +Subject: [PATCH] setserial.c: Add needed system headers for ioctl() and + close() calls + +Add int return type for main() function + +Fixes +error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] +error: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declarat +ion] + +Upstream-Status: Submitted [https://sourceforge.net/p/setserial/discussion/7060/thread/95d874c12c/] +Signed-off-by: Khem Raj +--- + setserial.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/setserial.c b/setserial.c +index bfda8fd..6a95513 100644 +--- a/setserial.c ++++ b/setserial.c +@@ -16,6 +16,8 @@ + #include + #include + #include ++#include ++#include + + #ifdef HAVE_ASM_IOCTLS_H + #include +@@ -715,7 +717,7 @@ fprintf(stderr, "\t* port\t\tset the I/O port\n"); + exit(1); + } + +-main(int argc, char **argv) ++int main(int argc, char **argv) + { + int get_flag = 0, wild_intr_flag = 0; + int c; diff --git a/meta/recipes-bsp/setserial/setserial_2.17.bb b/meta/recipes-bsp/setserial/setserial_2.17.bb index 5b31cd183b5..e46aeb90cb7 100644 --- a/meta/recipes-bsp/setserial/setserial_2.17.bb +++ b/meta/recipes-bsp/setserial/setserial_2.17.bb @@ -15,7 +15,8 @@ inherit autotools-brokensep SRC_URI = "${SOURCEFORGE_MIRROR}/setserial/${BPN}-${PV}.tar.gz \ file://add_stdlib.patch \ file://ldflags.patch \ - " + file://0001-setserial.c-Add-needed-system-headers-for-ioctl-and-.patch \ + " SRC_URI[md5sum] = "c4867d72c41564318e0107745eb7a0f2" SRC_URI[sha256sum] = "7e4487d320ac31558563424189435d396ddf77953bb23111a17a3d1487b5794a" From patchwork Tue Aug 16 03:30:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 11430 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 DFF23C3F6B0 for ; Tue, 16 Aug 2022 03:30:15 +0000 (UTC) Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by mx.groups.io with SMTP id smtpd.web12.11503.1660620613907395542 for ; Mon, 15 Aug 2022 20:30:14 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QWTnT+vm; spf=pass (domain: gmail.com, ip: 209.85.210.173, mailfrom: raj.khem@gmail.com) Received: by mail-pf1-f173.google.com with SMTP id 130so8011670pfy.6 for ; Mon, 15 Aug 2022 20:30:13 -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=8ZIM7jBKLSUoxuhilUvdfiqkKQBVfrVnTEPtSOw0gyU=; b=QWTnT+vm0On/yDieHnvKtTQFP+Sal876YNewp3EybVY3sSGdOsjkv+p13+cPUjKsoQ defW13bczH7ERmiCFRWAO0V61dx4MC0s9wy+LvjhVsQDiOmu3/LfOyJF+fB0od5FqKjC xkH/Tm9I5A7QGVm9p6WlFSm2bUjF2BBuX5KGGgvISiyjHVCjZKD0cFXqbl2Hq3dTlI8O SAeJLQDy6xVVD7syGA2z1Am1F3rUl6BX20awSYvLFct2tCs46D5ZAb3jdgAvs21E28XF uL+19HHxowG2cBLGjNgXVNcQE8i1KXv4FOMZXYN3JAuE4V415mDZAggRMjd2b/Qq/Yx6 /WTg== 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=8ZIM7jBKLSUoxuhilUvdfiqkKQBVfrVnTEPtSOw0gyU=; b=WPMm39yQTwuxSCP8izxoykqEU9ZqysO0yQmpqyWtiug1kA5hFI9u4rgWHp8EDTNsgq NbabaeLOBH1xwG7hLE2WdW7AMqXjTbgXQQ36DYjglK8BmTkEWG5Aexw+0KrzAJuiTE/X eAF7xV0FV+wNWR9faBK0yM/Pr3BDsxCZP0yebKQxqiruyJShD0HwS10ydkbOiLXETDUC SN1EYVsBWjxS/l7A9MszrfqPS1fi5pqBCJd5RUMu3gSMV2C2yNm4lj8E+SIm+mzRSk1S 2ckY5TunwUPvJ5psIxf1yMQqINpAHxcsBMSi58HbIj5Hl2ZAj+WpeTgNaEwEwGn2bLgJ WcyA== X-Gm-Message-State: ACgBeo28Wq8Jmdiih/s6CJ7mk+HytdDOcnheL3j8E+T9NbB0rQ79RDtc vur4ooZ+W6/EMfyb6sdF/aFcHM7X0jqVcA== X-Google-Smtp-Source: AA6agR7yK6AWTrm10tt2lyH2p6oBYq8sE+oRm8QrOsDRLcz42CcBAtTwfBYv2IPJU1OosiDzie805A== X-Received: by 2002:a63:68c2:0:b0:421:9e8f:35c4 with SMTP id d185-20020a6368c2000000b004219e8f35c4mr16184496pgc.363.1660620612803; Mon, 15 Aug 2022 20:30:12 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:a0f0::bb7a]) by smtp.gmail.com with ESMTPSA id b190-20020a621bc7000000b0052d87b76d12sm7218807pfb.68.2022.08.15.20.30.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Aug 2022 20:30:11 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Cc: Khem Raj Subject: [PATCH 4/6] expect: Fix implicit-function-declaration warnings Date: Mon, 15 Aug 2022 20:30:03 -0700 Message-Id: <20220816033005.2700801-4-raj.khem@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220816033005.2700801-1-raj.khem@gmail.com> References: <20220816033005.2700801-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 ; Tue, 16 Aug 2022 03:30:15 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/169418 Signed-off-by: Khem Raj --- ...dd-prototype-to-function-definitions.patch | 113 ++++++++++++++++++ meta/recipes-devtools/expect/expect_5.45.4.bb | 3 +- 2 files changed, 115 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-devtools/expect/expect/0001-Add-prototype-to-function-definitions.patch diff --git a/meta/recipes-devtools/expect/expect/0001-Add-prototype-to-function-definitions.patch b/meta/recipes-devtools/expect/expect/0001-Add-prototype-to-function-definitions.patch new file mode 100644 index 00000000000..7d211b3dff6 --- /dev/null +++ b/meta/recipes-devtools/expect/expect/0001-Add-prototype-to-function-definitions.patch @@ -0,0 +1,113 @@ +From 904c7cf6647594939ce1e398468bca3c885f0622 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 15 Aug 2022 18:25:23 -0700 +Subject: [PATCH] Add prototype to function definitions + +Compilers like clang has started erroring out on implicit-function-declaration +therefore arrange the relevant include files where needed. + +Upstream-Status: Submitted [https://sourceforge.net/p/expect/patches/24/] +Signed-off-by: Khem Raj +--- + exp_chan.c | 5 +++-- + exp_clib.c | 4 +++- + exp_main_sub.c | 5 +++++ + pty_termios.c | 4 ++++ + 4 files changed, 15 insertions(+), 3 deletions(-) + +diff --git a/exp_chan.c b/exp_chan.c +index 79f486c..50375d3 100644 +--- a/exp_chan.c ++++ b/exp_chan.c +@@ -35,6 +35,7 @@ + #include "exp_prog.h" + #include "exp_command.h" + #include "exp_log.h" ++#include "exp_event.h" /* exp_background_channelhandler */ + #include "tcldbg.h" /* Dbg_StdinMode */ + + extern int expSetBlockModeProc _ANSI_ARGS_((int fd, int mode)); +@@ -631,7 +632,7 @@ expWaitOnOne() { + } + + void +-exp_background_channelhandlers_run_all() ++exp_background_channelhandlers_run_all(void) + { + ThreadSpecificData *tsdPtr = TCL_TSD_INIT(&dataKey); + ExpState *esPtr; +@@ -760,7 +761,7 @@ expCreateChannel(interp,fdin,fdout,pid) + } + + void +-expChannelInit() { ++expChannelInit(void) { + ThreadSpecificData *tsdPtr = TCL_TSD_INIT(&dataKey); + + tsdPtr->channelCount = 0; +diff --git a/exp_clib.c b/exp_clib.c +index b21fb5d..8f31fc3 100644 +--- a/exp_clib.c ++++ b/exp_clib.c +@@ -9,13 +9,14 @@ would appreciate credit if this program or parts of it are used. + + #include "expect_cf.h" + #include ++#include + #include + #ifdef HAVE_INTTYPES_H + # include + #endif + #include + #include +- ++#include + #ifdef TIME_WITH_SYS_TIME + # include + # include +@@ -1738,6 +1739,7 @@ int exp_getptyslave(); + #define sysreturn(x) return(errno = x, -1) + + void exp_init_pty(); ++void exp_init_tty(); + + /* + The following functions are linked from the Tcl library. They +diff --git a/exp_main_sub.c b/exp_main_sub.c +index bf6c4be..f53b89e 100644 +--- a/exp_main_sub.c ++++ b/exp_main_sub.c +@@ -61,6 +61,11 @@ int exp_cmdlinecmds = FALSE; + int exp_interactive = FALSE; + int exp_buffer_command_input = FALSE;/* read in entire cmdfile at once */ + int exp_fgets(); ++int exp_tty_cooked_echo( ++ Tcl_Interp *interp, ++ exp_tty *tty_old, ++ int *was_raw, ++ int *was_echo); + + Tcl_Interp *exp_interp; /* for use by signal handlers who can't figure out */ + /* the interpreter directly */ +diff --git a/pty_termios.c b/pty_termios.c +index c605b23..80ed5e7 100644 +--- a/pty_termios.c ++++ b/pty_termios.c +@@ -7,6 +7,7 @@ would appreciate credit if you use this file or parts of it. + + */ + ++#include /* openpty */ + #include + #include + +@@ -15,6 +16,9 @@ would appreciate credit if you use this file or parts of it. + #endif + + #include "expect_cf.h" ++#include "tclInt.h" ++ ++extern char * expErrnoMsg _ANSI_ARGS_((int)); + + /* + The following functions are linked from the Tcl library. They diff --git a/meta/recipes-devtools/expect/expect_5.45.4.bb b/meta/recipes-devtools/expect/expect_5.45.4.bb index e22fa140d52..6cb46f334cf 100644 --- a/meta/recipes-devtools/expect/expect_5.45.4.bb +++ b/meta/recipes-devtools/expect/expect_5.45.4.bb @@ -26,7 +26,8 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/expect/Expect/${PV}/${BPN}${PV}.tar.gz \ file://0001-expect-Fix-segfaults-if-Tcl-is-built-with-stubs-and-.patch \ file://0001-exp_main_sub.c-Use-PATH_MAX-for-path.patch \ file://0001-fixline1-fix-line-1.patch \ - " + file://0001-Add-prototype-to-function-definitions.patch \ + " SRC_URI[md5sum] = "00fce8de158422f5ccd2666512329bd2" SRC_URI[sha256sum] = "49a7da83b0bdd9f46d04a04deec19c7767bb9a323e40c4781f89caf760b92c34" From patchwork Tue Aug 16 03:30:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 11429 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 C83E5C00140 for ; Tue, 16 Aug 2022 03:30:15 +0000 (UTC) Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by mx.groups.io with SMTP id smtpd.web12.11503.1660620613907395542 for ; Mon, 15 Aug 2022 20:30:15 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pxMj4f/K; spf=pass (domain: gmail.com, ip: 209.85.210.173, mailfrom: raj.khem@gmail.com) Received: by mail-pf1-f173.google.com with SMTP id 130so8011705pfy.6 for ; Mon, 15 Aug 2022 20:30:14 -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=DGfv2rPFB1aAAJn5woSApxd9Cx2STBWXnqoo15HEBgc=; b=pxMj4f/Klij5fh7rfZJK1U7ax6ECNroFNU2bI2kxHxXr0xqLn3wDYF4qhzy4fT982o d6lUAk06i8Et7kgEKF3lqplJgLn9xA1vorFqD1lUk9uh5zdR2uOajJQPv4THr+lEUHpd WmFMzrcTPZZEqztUb/EL/7XUxAXWbtwUobbIaspEVT3Dvsl9xCF9gy1IRaEpqHtnnhHp cn82BnvDahzz39AYJGo6/RcXSdFWUEsRABsDBin0FRR8Jxx62TNKC2LqURCW3mtjNJps TKzYbY1sQpOwTgwPSDiq7UESlZEgdnMt7W2x+qW60P7dRLIWFAiEKI6AJ+vJdT30+P7B 0//A== 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=DGfv2rPFB1aAAJn5woSApxd9Cx2STBWXnqoo15HEBgc=; b=ukG4yv7X+wkU0jixqcg+3m0vyWkdK381QyBq8dXSalts+J6h5PrMABO0fP1ev99od/ M+1FkKpheD1oXRm1Uc2mBzVqIwH//67q7EJu5/DWOxKADCDClDVon48dkhNm40I46e96 G6HcJW6FXei8YyLRO0NxjA/9DWKh3rzPDZHD7whcXJDCeWr3jnxKCBEoBJlCzfu/zwJx XJB26ImcIHuY/R/mnEgdwsXH3taB4bZWNtaQA/sIBAeKfvyImI50XCtdQx8rmnH+qGZP sHljUoExppfHMFxJ9Ysw42rrMMna7dRrz8Ss6P7FCrKljliYzP0vMMjBBweB6/Hvpoou +9cg== X-Gm-Message-State: ACgBeo3V2Pdzern3v9Hi0YEqMTt1hu7TqpXze8H19HUsq90q/zWPbvE2 r7EP00tRBp4oIhCf2h1IL7KY3dASsuFMhQ== X-Google-Smtp-Source: AA6agR7kVCSCVDZis3j/3MyobKWJug6XrbUgqNdVFnCwp9J58KwkZwFeULiA74AxyfFPraA2uz427A== X-Received: by 2002:a63:8942:0:b0:429:a15b:4cfa with SMTP id v63-20020a638942000000b00429a15b4cfamr1673892pgd.202.1660620614067; Mon, 15 Aug 2022 20:30:14 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:a0f0::bb7a]) by smtp.gmail.com with ESMTPSA id b190-20020a621bc7000000b0052d87b76d12sm7218807pfb.68.2022.08.15.20.30.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Aug 2022 20:30:13 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Cc: Khem Raj Subject: [PATCH 5/6] spirv-tools,spirv-headers: Update to 1.3.224.0 Date: Mon, 15 Aug 2022 20:30:04 -0700 Message-Id: <20220816033005.2700801-5-raj.khem@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220816033005.2700801-1-raj.khem@gmail.com> References: <20220816033005.2700801-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 ; Tue, 16 Aug 2022 03:30:15 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/169419 Signed-off-by: Khem Raj --- .../{spirv-headers_1.3.216.0.bb => spirv-headers_1.3.224.0.bb} | 0 .../spir/{spirv-tools_1.3.216.0.bb => spirv-tools_1.3.224.0.bb} | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename meta/recipes-graphics/spir/{spirv-headers_1.3.216.0.bb => spirv-headers_1.3.224.0.bb} (100%) rename meta/recipes-graphics/spir/{spirv-tools_1.3.216.0.bb => spirv-tools_1.3.224.0.bb} (96%) diff --git a/meta/recipes-graphics/spir/spirv-headers_1.3.216.0.bb b/meta/recipes-graphics/spir/spirv-headers_1.3.224.0.bb similarity index 100% rename from meta/recipes-graphics/spir/spirv-headers_1.3.216.0.bb rename to meta/recipes-graphics/spir/spirv-headers_1.3.224.0.bb diff --git a/meta/recipes-graphics/spir/spirv-tools_1.3.216.0.bb b/meta/recipes-graphics/spir/spirv-tools_1.3.224.0.bb similarity index 96% rename from meta/recipes-graphics/spir/spirv-tools_1.3.216.0.bb rename to meta/recipes-graphics/spir/spirv-tools_1.3.224.0.bb index eb907326c43..cfea28a6efe 100644 --- a/meta/recipes-graphics/spir/spirv-tools_1.3.216.0.bb +++ b/meta/recipes-graphics/spir/spirv-tools_1.3.224.0.bb @@ -7,7 +7,7 @@ SECTION = "graphics" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" -SRCREV = "c94501352d545e84c821ce031399e76d1af32d18" +SRCREV = "5e61ea2098220059e89523f1f47b0bcd8c33b89a" SRC_URI = "git://github.com/KhronosGroup/SPIRV-Tools.git;branch=master;protocol=https" PE = "1" UPSTREAM_CHECK_GITTAGREGEX = "sdk-(?P\d+(\.\d+)+)" From patchwork Tue Aug 16 03:30:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 11433 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 AB865C25B0D for ; Tue, 16 Aug 2022 03:30:25 +0000 (UTC) Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by mx.groups.io with SMTP id smtpd.web12.11504.1660620616445578598 for ; Mon, 15 Aug 2022 20:30:16 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Mp13O7yo; spf=pass (domain: gmail.com, ip: 209.85.216.43, mailfrom: raj.khem@gmail.com) Received: by mail-pj1-f43.google.com with SMTP id gp7so8626675pjb.4 for ; Mon, 15 Aug 2022 20:30:16 -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=Dw9EUbkldv4rxJUZhjeMadpR2vheJAU1gjjO4gWauhE=; b=Mp13O7yo2+z1dtnyPBBQJ3JVGi2DryGbNZlA8QZHbVcDykJ800zW8kkOZDvbtcup+v yeJTyDD0EDz54et0gk17WXdGcvltRJs0WgUlEAef9cZB9zA/pqqUnXpMDLGzwWwJIpyZ G8RKJSDNSBQ9qb7YgJWR1SAL0KxJMfZ5lW/mO70rJs+1tddIc4kBRgegIfuhnFdfqgMZ YYZ68Opvn+jTTcCDA2fIRohZvBPV7iPvIyzB7qAp10O0l7MrRHVsDmIS4gtVxwaDTZSS +vWHeiB5gKNHsQYOGrolv/xZ9SLWx9CObtc7D2Rx29ARJ0jXOaTT12xjT5WFsrB0t/tP 081Q== 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=Dw9EUbkldv4rxJUZhjeMadpR2vheJAU1gjjO4gWauhE=; b=BSko4nstpubjIeChPVcYhVff1D1L7eQY1kRJofa9WbLZfijsi4s9PbV9vX57YYlSIE UT76178VjGmFL0QpLocBIr+jevPnKRDfBDGCagSQJB18exyRPPwCh+06IUSDuh37/Tq0 MYRtkSTalTlTmOBal2kUi/KHq3VZz6JuPqWbgRXaLixfUOFDercMiUMfNTWB7oREORGc BrN4hMXdB9XHeui3k0QMbUKxHZ6ZoRjMQZdEHElPJoTh3RhrT0OSDN9wy/TlTSNkkKWt KSFp+e2AKlRSmMRntTu0cOheh16MrMfAUVIaXbOn9X+5PjzEyqiXuORQI9a2287pmDVB UwBQ== X-Gm-Message-State: ACgBeo33wY2jj2dB/UmNp436X586smkKYoOiNgJ9BV5kGoLAh8Vtixn6 PrEHsdx/w7CC42jDcF9JJmN1GmFGcqNvSw== X-Google-Smtp-Source: AA6agR7JFrRcMZaCL7MWudzTRBlXXN470ZgmtsTgzhAbWgIq67lDBSXtqJDppKYyYT0fmpo7c9+H8A== X-Received: by 2002:a17:90b:1b05:b0:1f7:3ac7:f044 with SMTP id nu5-20020a17090b1b0500b001f73ac7f044mr20858413pjb.214.1660620615523; Mon, 15 Aug 2022 20:30:15 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:a0f0::bb7a]) by smtp.gmail.com with ESMTPSA id b190-20020a621bc7000000b0052d87b76d12sm7218807pfb.68.2022.08.15.20.30.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Aug 2022 20:30:14 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Cc: Khem Raj Subject: [PATCH v2 6/6] xmlto: Update to use upstream tip of trunk Date: Mon, 15 Aug 2022 20:30:05 -0700 Message-Id: <20220816033005.2700801-6-raj.khem@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220816033005.2700801-1-raj.khem@gmail.com> References: <20220816033005.2700801-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 ; Tue, 16 Aug 2022 03:30:25 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/169420 There are several fixes which are done to fix builds with newer compilers after 0.0.28 was releases in 2015 a long time ago. Add a patch to fix manpages builds not trying to access network during build Regenerate xmlif from lex files, before configuring the build Add UPSTREAM_CHECK_COMMITS = "1" Signed-off-by: Khem Raj --- v2: - Update patch status - Add UPSTREAM_CHECK_COMMITS .../0001-Skip-validating-xmlto-output.patch | 29 +++++++++++++++++++ ...rop-the-test-of-xmllint-and-xsltproc.patch | 6 ++-- meta/recipes-devtools/xmlto/xmlto_0.0.28.bb | 16 +++++++--- 3 files changed, 44 insertions(+), 7 deletions(-) create mode 100644 meta/recipes-devtools/xmlto/xmlto/0001-Skip-validating-xmlto-output.patch rename meta/recipes-devtools/xmlto/{xmlto-0.0.28 => xmlto}/configure.in-drop-the-test-of-xmllint-and-xsltproc.patch (91%) diff --git a/meta/recipes-devtools/xmlto/xmlto/0001-Skip-validating-xmlto-output.patch b/meta/recipes-devtools/xmlto/xmlto/0001-Skip-validating-xmlto-output.patch new file mode 100644 index 00000000000..c6857a9da51 --- /dev/null +++ b/meta/recipes-devtools/xmlto/xmlto/0001-Skip-validating-xmlto-output.patch @@ -0,0 +1,29 @@ +From 3deb7a0eded04ab08a9cb2d88526cb1c7b440061 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sun, 14 Aug 2022 00:23:29 -0700 +Subject: [PATCH] Skip validating xmlto output + +Avoids network access + +Upstream-Status: Submitted [https://pagure.io/xmlto/pull-request/11] +Signed-off-by: Khem Raj +--- + Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile.am b/Makefile.am +index 50fa279..6a2da62 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -68,7 +68,7 @@ EXTRA_DIST = xmlto.spec \ + doc/xmlif.xml \ + xmlto.mak + +-GEN_MANPAGE = FORMAT_DIR=$(top_srcdir)/format $(BASH) ./xmlto -o $(@D) man $< ++GEN_MANPAGE = FORMAT_DIR=$(top_srcdir)/format $(BASH) ./xmlto --skip-validation -o $(@D) man $< + man/man1/xmlto.1: doc/xmlto.xml ; $(GEN_MANPAGE) + man/man1/xmlif.1: doc/xmlif.xml ; $(GEN_MANPAGE) + +-- +2.37.2 + diff --git a/meta/recipes-devtools/xmlto/xmlto-0.0.28/configure.in-drop-the-test-of-xmllint-and-xsltproc.patch b/meta/recipes-devtools/xmlto/xmlto/configure.in-drop-the-test-of-xmllint-and-xsltproc.patch similarity index 91% rename from meta/recipes-devtools/xmlto/xmlto-0.0.28/configure.in-drop-the-test-of-xmllint-and-xsltproc.patch rename to meta/recipes-devtools/xmlto/xmlto/configure.in-drop-the-test-of-xmllint-and-xsltproc.patch index 6d547a6c994..7cc3cbe0fb2 100644 --- a/meta/recipes-devtools/xmlto/xmlto-0.0.28/configure.in-drop-the-test-of-xmllint-and-xsltproc.patch +++ b/meta/recipes-devtools/xmlto/xmlto/configure.in-drop-the-test-of-xmllint-and-xsltproc.patch @@ -9,9 +9,9 @@ Signed-off-by: Hongxu Jia configure.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -diff --git a/configure.in b/configure.in ---- a/configure.in -+++ b/configure.in +diff --git a/configure.ac b/configure.ac +--- a/configure.ac ++++ b/configure.ac @@ -42,10 +42,10 @@ AC_ARG_VAR([LOCALE], [Name and path of the `locale' program.]) AC_PATH_PROG([LOCALE], [locale], [locale]) diff --git a/meta/recipes-devtools/xmlto/xmlto_0.0.28.bb b/meta/recipes-devtools/xmlto/xmlto_0.0.28.bb index 5cb9a4c57be..1913dd2833d 100644 --- a/meta/recipes-devtools/xmlto/xmlto_0.0.28.bb +++ b/meta/recipes-devtools/xmlto/xmlto_0.0.28.bb @@ -6,17 +6,21 @@ LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" -SRC_URI = "https://releases.pagure.org/xmlto/xmlto-${PV}.tar.gz \ +SRCREV = "6fa6a0e07644f20abf2596f78a60112713e11cbe" +UPSTREAM_CHECK_COMMITS = "1" +SRC_URI = "git://pagure.io/xmlto.git;protocol=https;branch=master \ file://configure.in-drop-the-test-of-xmllint-and-xsltproc.patch \ + file://0001-Skip-validating-xmlto-output.patch \ " -SRC_URI[md5sum] = "a1fefad9d83499a15576768f60f847c6" -SRC_URI[sha256sum] = "2f986b7c9a0e9ac6728147668e776d405465284e13c74d4146c9cbc51fd8aad3" +S = "${WORKDIR}/git" + +PV .= "+0.0.29+git${SRCPV}" inherit autotools CLEANBROKEN = "1" -DEPENDS = "libxml2-native" +DEPENDS = "libxml2-native libxslt-native flex-native docbook-xml-dtd4-native docbook-xsl-stylesheets-native" RDEPENDS:${PN} = "docbook-xml-dtd4 \ docbook-xsl-stylesheets \ @@ -36,6 +40,10 @@ BBCLASSEXTEND = "native" EXTRA_OECONF:append = " BASH=/bin/bash GCP=/bin/cp XMLLINT=xmllint XSLTPROC=xsltproc" +do_configure:prepend() { + flex -o ${S}/xmlif/xmlif.c ${S}/xmlif/xmlif.l +} + do_install:append:class-native() { create_wrapper ${D}${bindir}/xmlto XML_CATALOG_FILES=${sysconfdir}/xml/catalog }