From nobody Wed May 15 04:27:10 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=fail (Bad Signature) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 16825063863981023.0439020696613; Wed, 26 Apr 2023 03:53:06 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.526636.818524 (Exim 4.92) (envelope-from ) id 1prclV-0002Bl-H6; Wed, 26 Apr 2023 10:52:49 +0000 Received: by outflank-mailman (output) from mailman id 526636.818524; Wed, 26 Apr 2023 10:52:49 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1prclV-0002Be-EL; Wed, 26 Apr 2023 10:52:49 +0000 Received: by outflank-mailman (input) for mailman id 526636; Wed, 26 Apr 2023 10:52:48 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1prclU-0001z0-9t for xen-devel@lists.xenproject.org; Wed, 26 Apr 2023 10:52:48 +0000 Received: from mo4-p01-ob.smtp.rzone.de (mo4-p01-ob.smtp.rzone.de [81.169.146.166]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 7a7ba89e-e420-11ed-8611-37d641c3527e; Wed, 26 Apr 2023 12:52:46 +0200 (CEST) Received: from sender by smtp.strato.de (RZmta 49.4.0 AUTH) with ESMTPSA id x6987cz3QAqgIFZ (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Wed, 26 Apr 2023 12:52:42 +0200 (CEST) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 7a7ba89e-e420-11ed-8611-37d641c3527e ARC-Seal: i=1; a=rsa-sha256; t=1682506362; cv=none; d=strato.com; s=strato-dkim-0002; b=fDSnyS0AnPUWEsBPNKZT8Fza6aye84168oMlcIM8ES38acohynGIhJgSIczWo1zrpX hZYCwtxQqZF0pZpG2VAyy309HMj8OKY/TB+AvaRv8w7P15DLVmTaYVnf7Mk2ADLtmXOd hzO5T1JklfEO1XZR/VNAN6qj3Ln/qiSqbNgz2vcqfHa2DBBxOlwrgNdDk0yWXFYcd5vx 26GI4PqpSgYOxp2dtbyqUaFb4OuMwxei52tb4EJmC7vokJc7avT2erKcXLkipq/TAigz pKZcSxW9arADq6ypCZVbavWamAQC5R6Xxc6De8+em4vS4g8TUpG06z2mBZo1vGLl9fAW LLEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1682506362; s=strato-dkim-0002; d=strato.com; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=FGgNeMXD1fpexIJRy+L7hZ4dIGHGd8+SytNB0T7EbIo=; b=D6/CsQ4f0aYGmnI0YT7CETI+l2HWhROAw1BLQt0yUFC8egLStQawlDenTYK993ucbo 7+VM0xSi43KAo1JzEWGNNeA4rP7HSmR1zn+TM9gU73Y5g+jHgBWfk3cGUsQyXsvtN07T i1gAboA4ww9SROyDQU44MGoNcqhI3JCR98FWxLZ6uiKcg/Y58x+zTeffjtpFdiUI1ZAH QK3iyo6Xi21+hjKmVsg/V1TDrePyoxJgnQ1Xz4e6joMYbi4R0w74r6XXLi5oqORElRfn ZtgYwUkMJoFut1ainqGyN+Hs4o6QlzX3O6VqH5RA8goyXGn+G2riBItZCKCrnWKpGkEL Ko/g== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1682506362; s=strato-dkim-0002; d=aepfle.de; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=FGgNeMXD1fpexIJRy+L7hZ4dIGHGd8+SytNB0T7EbIo=; b=qcUqHBrMyUw+8k9zC8a2mxDix5kVQgxLggr4op3S+S2ppeKaJ9gbMOQ968dfBnFA3L rA9gWFqvNJpxdNLUXMLtUo36MSYOBnMzXr3dkOMBFZYtEJMoh1Xm6Hm1rmzr3GLukdvV 730t1qqPB7R80E/2bgpS5WKvJ/gTDVqWBGQf1+PW5j7I6J6p0zvaLA6qffloxvnLNFoh BZy27wl8q6UHlp5gwkAgAQJ42GYOGIXzAZ64Ia+KBADMzgDAcFDArgDfKhLLz4xc3qVu dHRxmFjb2oeWfkxLxT/ExyvZXTCqcS7k0mXIYJqCTqrjAe8QCJVEYMEy2MFSNAEkXoNE nXjQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1682506362; s=strato-dkim-0003; d=aepfle.de; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=FGgNeMXD1fpexIJRy+L7hZ4dIGHGd8+SytNB0T7EbIo=; b=8Y0W7mwTenpHKm7zfzP8w9KqGro7xUbeRKJJ13DUR8LjhgRkfhCpH0QO6dnr5oFKsC yVpNEll8ofCKJxgXnZDA== X-RZG-AUTH: ":P2EQZWCpfu+qG7CngxMFH1J+3q8wa/QXkBR9MXjAuzpIG0mv9coXAg4wqlr7GpgtSxIX+ZWs95M7PYKTHoBaxED20qrwFA==" From: Olaf Hering To: xen-devel@lists.xenproject.org Cc: Wei Liu , Anthony PERARD , Samuel Thibault Subject: [PATCH v1] stubdom: fix errors in newlib:makedoc Date: Wed, 26 Apr 2023 10:52:39 +0000 Message-Id: <20230426105239.2496-1-olaf@aepfle.de> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: fail (found 2 invalid signatures) X-ZM-MESSAGEID: 1682506387286100001 Content-Type: text/plain; charset="utf-8" rpm post-build-checks found a few code bugs in newlib, and marks them as errors. Add another newlib patch and apply it during stubdom build. [ 227s] ../../../../newlib-1.16.0/newlib/doc/makedoc.c: In function 'looku= p_word': [ 227s] ../../../../newlib-1.16.0/newlib/doc/makedoc.c:1147:10: warning: i= mplicit declaration of function 'strcmp' [-Wimplicit-function-declaration] [ 227s] if (strcmp(ptr->word, word) =3D=3D 0) return ptr; [ 227s] ^ [ 460s] I: Program is using implicit definitions of special functions. [ 460s] these functions need to use their correct prototypes to allow [ 460s] the lightweight buffer overflow checking to work. [ 460s] - Implicit memory/string functions need #include . [ 460s] - Implicit *printf functions need #include . [ 460s] - Implicit *printf functions need #include . [ 460s] - Implicit *read* functions need #include . [ 460s] - Implicit *recv* functions need #include . [ 460s] E: xen implicit-fortify-decl ../../../../newlib-1.16.0/newlib/doc/= makedoc.c:1147 Signed-off-by: Olaf Hering Reviewed-by: Samuel Thibault --- Depends on newlib-cygmon-gmon.patch stubdom/Makefile | 1 + stubdom/newlib-makedoc.patch | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 stubdom/newlib-makedoc.patch diff --git a/stubdom/Makefile b/stubdom/Makefile index cddbbe2da0..a21e1c3fa3 100644 --- a/stubdom/Makefile +++ b/stubdom/Makefile @@ -96,6 +96,7 @@ newlib-$(NEWLIB_VERSION): newlib-$(NEWLIB_VERSION).tar.gz patch -d $@ -p1 < newlib-stdint-size_max-fix-from-1.17.0.patch patch -d $@ -p1 < newlib-disable-texinfo.patch patch -d $@ -p1 < newlib-cygmon-gmon.patch + patch -d $@ -p1 < newlib-makedoc.patch find $@ -type f | xargs perl -i.bak \ -pe 's/\b_(tzname|daylight|timezone)\b/$$1/g' touch $@ diff --git a/stubdom/newlib-makedoc.patch b/stubdom/newlib-makedoc.patch new file mode 100644 index 0000000000..90678f1b63 --- /dev/null +++ b/stubdom/newlib-makedoc.patch @@ -0,0 +1,35 @@ +stubdom: fix errors in newlib + +rpm post-build-checks found a few code bugs in newlib, and marks them as +errors. Add another newlib patch and apply it during stubdom build. + +[ 227s] ../../../../newlib-1.16.0/newlib/doc/makedoc.c: In function 'look= up_word': +[ 227s] ../../../../newlib-1.16.0/newlib/doc/makedoc.c:1147:10: warning: = implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] +[ 227s] if (strcmp(ptr->word, word) =3D=3D 0) return ptr; +[ 227s] ^ + +[ 460s] I: Program is using implicit definitions of special functions. +[ 460s] these functions need to use their correct prototypes to allow +[ 460s] the lightweight buffer overflow checking to work. +[ 460s] - Implicit memory/string functions need #include . +[ 460s] - Implicit *printf functions need #include . +[ 460s] - Implicit *printf functions need #include . +[ 460s] - Implicit *read* functions need #include . +[ 460s] - Implicit *recv* functions need #include . +[ 460s] E: xen implicit-fortify-decl ../../../../newlib-1.16.0/newlib/doc= /makedoc.c:1147 +--- + newlib/doc/makedoc.c | 1 + + 1 file changed, 1 insertion(+) + +Index: newlib-1.16.0/newlib/doc/makedoc.c +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +--- newlib-1.16.0.orig/newlib/doc/makedoc.c ++++ newlib-1.16.0/newlib/doc/makedoc.c +@@ -38,6 +38,7 @@ There is no + #include "ansidecl.h" + #include + #include ++#include + #include +=20 + #define DEF_SIZE 5000