From patchwork Thu Sep 29 00:52:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geoff Levand X-Patchwork-Id: 1684173 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=dksxTRn7; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MdFFz6JS6z1yqH for ; Thu, 29 Sep 2022 10:52:55 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4MdFFz5nw4z3c4B for ; Thu, 29 Sep 2022 10:52:55 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=dksxTRn7; dkim-atps=neutral X-Original-To: petitboot@lists.ozlabs.org Delivered-To: petitboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=infradead.org (client-ip=2001:8b0:10b:1234::107; helo=merlin.infradead.org; envelope-from=geoff@infradead.org; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=dksxTRn7; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1234::107]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4MdFFS1K8Xz2xZp for ; Thu, 29 Sep 2022 10:52:26 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Date:Cc:To:Subject:From:References: In-Reply-To:Message-Id:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Sb26FuGwNCMd/iu0qm3wEYxsPJZgv4sLzwnEza0bQ5Q=; b=dksxTRn70615CqYrl8Niml6gU6 z663aiAOy4QmJGKu7QD+duZ/elXSSc5Yk0d6BUkzs3qoWZISs6lysRk6DBt7MJyZlAppmk1VBtR/j q8T7vPhHEtunVSW/opX7S3WHK1TvRBhChj+Of6ii37FF82A31lcRCrvIM0R1iQK4y0JLjGbp7e1cL nuyW9+r50Rs+AthWUGt/oBxaNz2KzEEI/4B48aU2Zm96cCd7iaxRQNrwcloQrpJPXAkKY5LNQxBpz SObxoHEDApoGC4f8cxSB764uObgVjN4Sg2zwpPYBpc0KnC6LabKmhOc4G9gt54NXQHWm8uv6vxQoe OwI/kVcQ==; Received: from geoff by merlin.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1odhmi-0061Wj-Vg; Thu, 29 Sep 2022 00:52:17 +0000 Message-Id: <2e8998e2ff0bb8a49b1069219b8b99d34485a933.1664412180.git.geoff@infradead.org> In-Reply-To: References: From: Geoff Levand Patch-Date: Tue, 27 Sep 2022 20:06:15 -0700 Subject: [PATCH v1 1/5] bootstrap: Fix warnings To: Jeremy Kerr Date: Thu, 29 Sep 2022 00:52:16 +0000 X-BeenThere: petitboot@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Petitboot bootloader development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: petitboot@lists.ozlabs.org MIME-Version: 1.0 Errors-To: petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Petitboot" Fixes bootstrap/autotools warnings like these: warning: The macro `AC_GNU_SOURCE' is obsolete. warning: The macro `AC_TRY_LINK' is obsolete. Signed-off-by: Geoff Levand --- .gitignore | 3 +++ configure.ac | 21 +++++++++--------- m4/gpgme.m4 | 60 ++++++++++++++++++++++++++++++++++++++++++---------- 3 files changed, 63 insertions(+), 21 deletions(-) diff --git a/.gitignore b/.gitignore index 77b16f3..6845ec8 100644 --- a/.gitignore +++ b/.gitignore @@ -5,10 +5,13 @@ autom4te.cache/* compile config.guess config.h.in +config.h.in~ config.log config.rpath +config.rpath~ config.sub configure +configure~ cscope.out depcomp install-sh diff --git a/configure.ac b/configure.ac index 6683be6..524a23d 100644 --- a/configure.ac +++ b/configure.ac @@ -25,7 +25,7 @@ AC_PREFIX_DEFAULT([/usr/local]) AS_IF([test "x$CFLAGS" = "x"], [AC_SUBST([CFLAGS], [""])]) AC_PROG_CC -AC_PROG_LEX +AC_PROG_LEX(yywrap) if test -z "$($LEX --version)"; then AC_MSG_ERROR([[Please install flex/lex]]) fi @@ -36,7 +36,6 @@ fi AC_PROG_INSTALL AM_INIT_AUTOMAKE -AC_GNU_SOURCE AM_GNU_GETTEXT([external]) AM_GNU_GETTEXT_VERSION(0.18.1) if test "$USE_NLS" = "yes" -a -z "$($MSGFMT --version)"; then @@ -121,19 +120,21 @@ AC_CHECK_HEADERS([varargs.h]) dnl Checking for va_copy availability AC_MSG_CHECKING([for va_copy]) -AC_TRY_LINK([#include -va_list ap1,ap2;], [va_copy(ap1,ap2);], -have_va_copy=yes, -have_va_copy=no) + +AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include +va_list ap1,ap2;]], [[va_copy(ap1,ap2);]])], +[have_va_copy=yes], +[have_va_copy=no]) + AC_MSG_RESULT($have_va_copy) if test x"$have_va_copy" = x"yes"; then AC_DEFINE(HAVE_VA_COPY,1,[Whether va_copy() is available]) else AC_MSG_CHECKING([for __va_copy]) - AC_TRY_LINK([#include - va_list ap1,ap2;], [__va_copy(ap1,ap2);], - have___va_copy=yes, - have___va_copy=no) + AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include + va_list ap1,ap2;]], [[__va_copy(ap1,ap2);]])], + [have___va_copy=yes], + [have___va_copy=no]) AC_MSG_RESULT($have___va_copy) if test x"$have___va_copy" = x"yes"; then AC_DEFINE(HAVE___VA_COPY,1,[Whether __va_copy() is available]) diff --git a/m4/gpgme.m4 b/m4/gpgme.m4 index 6c2be44..c749a5d 100644 --- a/m4/gpgme.m4 +++ b/m4/gpgme.m4 @@ -1,5 +1,5 @@ # gpgme.m4 - autoconf macro to detect GPGME. -# Copyright (C) 2002, 2003, 2004, 2014 g10 Code GmbH +# Copyright (C) 2002, 2003, 2004, 2014, 2018 g10 Code GmbH # # This file is free software; as a special exception the author gives # unlimited permission to copy and/or distribute it, with or without @@ -9,12 +9,12 @@ # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # -# Last-changed: 2014-10-02 +# Last-changed: 2020-11-20 AC_DEFUN([_AM_PATH_GPGME_CONFIG], [ AC_ARG_WITH(gpgme-prefix, - AC_HELP_STRING([--with-gpgme-prefix=PFX], + AS_HELP_STRING([--with-gpgme-prefix=PFX], [prefix where GPGME is installed (optional)]), gpgme_config_prefix="$withval", gpgme_config_prefix="") if test x"${GPGME_CONFIG}" = x ; then @@ -36,10 +36,24 @@ AC_DEFUN([_AM_PATH_GPGME_CONFIG], fi fi - AC_PATH_PROG(GPGME_CONFIG, gpgme-config, no) + use_gpgrt_config="" + if test x"${GPGME_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then + if $GPGRT_CONFIG gpgme --exists; then + GPGME_CONFIG="$GPGRT_CONFIG gpgme" + AC_MSG_NOTICE([Use gpgrt-config as gpgme-config]) + use_gpgrt_config=yes + fi + fi + if test -z "$use_gpgrt_config"; then + AC_PATH_PROG(GPGME_CONFIG, gpgme-config, no) + fi if test "$GPGME_CONFIG" != "no" ; then - gpgme_version=`$GPGME_CONFIG --version` + if test -z "$use_gpgrt_config"; then + gpgme_version=`$GPGME_CONFIG --version` + else + gpgme_version=`$GPGME_CONFIG --modversion` + fi fi gpgme_version_major=`echo $gpgme_version | \ sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'` @@ -52,12 +66,16 @@ AC_DEFUN([_AM_PATH_GPGME_CONFIG], AC_DEFUN([_AM_PATH_GPGME_CONFIG_HOST_CHECK], [ - gpgme_config_host=`$GPGME_CONFIG --host 2>/dev/null || echo none` + if test -z "$use_gpgrt_config"; then + gpgme_config_host=`$GPGME_CONFIG --host 2>/dev/null || echo none` + else + gpgme_config_host=`$GPGME_CONFIG --variable=host 2>/dev/null || echo none` + fi if test x"$gpgme_config_host" != xnone ; then if test x"$gpgme_config_host" != x"$host" ; then AC_MSG_WARN([[ *** -*** The config script $GPGME_CONFIG was +*** The config script "$GPGME_CONFIG" was *** built for $gpgme_config_host and thus may not match the *** used host $host. *** You may want to use the configure option --with-gpgme-prefix @@ -118,7 +136,11 @@ AC_DEFUN([AM_PATH_GPGME], # If we have a recent GPGME, we should also check that the # API is compatible. if test "$req_gpgme_api" -gt 0 ; then - tmp=`$GPGME_CONFIG --api-version 2>/dev/null || echo 0` + if test -z "$use_gpgrt_config"; then + tmp=`$GPGME_CONFIG --api-version 2>/dev/null || echo 0` + else + tmp=`$GPGME_CONFIG --variable=api_version 2>/dev/null || echo 0` + fi if test "$tmp" -gt 0 ; then if test "$req_gpgme_api" -ne "$tmp" ; then ok=no @@ -258,7 +280,11 @@ AC_DEFUN([AM_PATH_GPGME_GLIB], # If we have a recent GPGME, we should also check that the # API is compatible. if test "$req_gpgme_api" -gt 0 ; then - tmp=`$GPGME_CONFIG --api-version 2>/dev/null || echo 0` + if test -z "$use_gpgrt_config"; then + tmp=`$GPGME_CONFIG --api-version 2>/dev/null || echo 0` + else + tmp=`$GPGME_CONFIG --variable=api_version 2>/dev/null || echo 0` + fi if test "$tmp" -gt 0 ; then if test "$req_gpgme_api" -ne "$tmp" ; then ok=no @@ -267,8 +293,20 @@ AC_DEFUN([AM_PATH_GPGME_GLIB], fi fi if test $ok = yes; then - GPGME_GLIB_CFLAGS=`$GPGME_CONFIG --glib --cflags` - GPGME_GLIB_LIBS=`$GPGME_CONFIG --glib --libs` + if test -z "$use_gpgrt_config"; then + GPGME_GLIB_CFLAGS=`$GPGME_CONFIG --glib --cflags` + GPGME_GLIB_LIBS=`$GPGME_CONFIG --glib --libs` + else + if $GPGRT_CONFIG gpgme-glib --exists; then + GPGME_CONFIG="$GPGRT_CONFIG gpgme-glib" + GPGME_GLIB_CFLAGS=`$GPGME_CONFIG --cflags` + GPGME_GLIB_LIBS=`$GPGME_CONFIG --libs` + else + ok = no + fi + fi + fi + if test $ok = yes; then AC_MSG_RESULT(yes) ifelse([$2], , :, [$2]) _AM_PATH_GPGME_CONFIG_HOST_CHECK From patchwork Thu Sep 29 00:52:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geoff Levand X-Patchwork-Id: 1684171 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=pXGdu/9F; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MdFFs4kCLz1yqH for ; Thu, 29 Sep 2022 10:52:49 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4MdFFs4BZkz3c7Q for ; Thu, 29 Sep 2022 10:52:49 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=pXGdu/9F; dkim-atps=neutral X-Original-To: petitboot@lists.ozlabs.org Delivered-To: petitboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=infradead.org (client-ip=2001:8b0:10b:1234::107; helo=merlin.infradead.org; envelope-from=geoff@infradead.org; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=pXGdu/9F; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1234::107]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4MdFFS14sSz2xKN for ; Thu, 29 Sep 2022 10:52:26 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Date:Cc:To:Content-Transfer-Encoding: Content-Type:MIME-Version:Subject:From:References:In-Reply-To:Message-Id: Sender:Reply-To:Content-ID:Content-Description; bh=PFNvS19HuydrWf8VmelkqriEJoSCQsGmWTwavy2UuNE=; b=pXGdu/9FzKvIOXwSllquiTs3jJ s83KYGp98sL9SvZ2yTX4CG/pl447wHApp5E10kFAWDX7ku1sBtlgVshzc7Wd+yIZlU2sVDuP78DUg kP3DUnrz3FFz9BhnBPWZyhqD0VO/rPvCFfu/Y7KdK2KoE8Cmvd7TNnSe4wAlRDSh4ZmD9oiW2PtST bebq8cnEODwUk6OrPF+821gnkzDbvRLBu/EDgyKH/ePzCVAMgo3lGwkrva2YGrxukCzt/pznwSMq9 APa0A5i9AAixD+dEhy8bd9DG5z3XBq/krJ7UQt0EKE4fs3XeYTCoSsz3NneDqy8c5n8vhVdJKkeof D0RLNNAw==; Received: from geoff by merlin.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1odhmj-0061Wn-RK; Thu, 29 Sep 2022 00:52:18 +0000 Message-Id: In-Reply-To: References: From: Geoff Levand Patch-Date: Tue, 27 Sep 2022 20:08:24 -0700 Subject: [PATCH v1 2/5] yacc: Fix warnings MIME-Version: 1.0 To: Jeremy Kerr Date: Thu, 29 Sep 2022 00:52:17 +0000 X-BeenThere: petitboot@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Petitboot bootloader development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: petitboot@lists.ozlabs.org Errors-To: petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Petitboot" Fixes yacc warnings like these: warning: deprecated directive: ‘%pure-parser’, use ‘%define api.pure’ Signed-off-by: Geoff Levand --- discover/grub2/grub2-parser.y | 4 ++-- discover/native/native-parser.y | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/discover/grub2/grub2-parser.y b/discover/grub2/grub2-parser.y index f99bbfd..3433415 100644 --- a/discover/grub2/grub2-parser.y +++ b/discover/grub2/grub2-parser.y @@ -1,9 +1,9 @@ -%pure-parser +%define api.pure %lex-param { yyscan_t scanner } %parse-param { struct grub2_parser *parser } %parse-param { void *scanner } -%error-verbose +%define parse.error verbose %{ #include diff --git a/discover/native/native-parser.y b/discover/native/native-parser.y index bafcf49..b5fe9b1 100644 --- a/discover/native/native-parser.y +++ b/discover/native/native-parser.y @@ -1,9 +1,9 @@ -%pure-parser +%define api.pure %lex-param { nscan_t scanner } %parse-param { struct native_parser *parser } %parse-param { void *scanner } -%error-verbose +%define parse.error verbose %define api.prefix {n} %{ From patchwork Thu Sep 29 00:52:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geoff Levand X-Patchwork-Id: 1684168 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=BaPBLjLz; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MdFFl0HJfz20Vm for ; Thu, 29 Sep 2022 10:52:43 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4MdFFk5g6yz2xKN for ; Thu, 29 Sep 2022 10:52:42 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=BaPBLjLz; dkim-atps=neutral X-Original-To: petitboot@lists.ozlabs.org Delivered-To: petitboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=infradead.org (client-ip=2001:8b0:10b:1234::107; helo=merlin.infradead.org; envelope-from=geoff@infradead.org; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=BaPBLjLz; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1234::107]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4MdFFS1GMzz2xZf for ; Thu, 29 Sep 2022 10:52:26 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Date:Cc:To:Subject:From:References: In-Reply-To:Message-Id:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description; bh=+CvcQPhYYwsCS+PW17T14varise7RsOL2ujAXFRWkr4=; b=BaPBLjLzoeopQLo+Ro+VsEVlS+ rRDUn5mFOikJd+6lRmNnd550QETNqFntVyzJNhupROmQ3pdx5CP5DaWwV3LFieajGIouQcSbSb4g/ SXq1hWFXoPX0u0qlZnEtbaoQ5ZVOwmK0ggMvggEy/Wwwku4poKEw33dAuh0XWqoMts+mL+dwQmwIZ W0mq3rMofTfoNaQEwhVEZsP+YKh8Uo+beWhNYbfNg/6KfC8gwSw+X1l+fuJZEvhZVY/BGFlrp+tGp cQIgqBEHKKa/Gb8f4d10+FR8wna795nWoikZXslb6mgAiR3V+trf7ikkUswJbjJtcHd2DPbCuN0/Q lMp2mOiQ==; Received: from geoff by merlin.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1odhmk-0061Wx-Pz; Thu, 29 Sep 2022 00:52:18 +0000 Message-Id: In-Reply-To: References: From: Geoff Levand Patch-Date: Wed, 28 Sep 2022 20:11:46 -0700 Subject: [PATCH v1 3/5] gettext: Fix error To: Jeremy Kerr Date: Thu, 29 Sep 2022 00:52:18 +0000 X-BeenThere: petitboot@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Petitboot bootloader development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: petitboot@lists.ozlabs.org MIME-Version: 1.0 Errors-To: petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Petitboot" Bump gettext version to 0.19. Fixes build errors like these: error: gettext infrastructure mismatch Signed-off-by: Geoff Levand --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 524a23d..53c460e 100644 --- a/configure.ac +++ b/configure.ac @@ -37,7 +37,8 @@ AC_PROG_INSTALL AM_INIT_AUTOMAKE AM_GNU_GETTEXT([external]) -AM_GNU_GETTEXT_VERSION(0.18.1) +AM_GNU_GETTEXT_VERSION(0.19) + if test "$USE_NLS" = "yes" -a -z "$($MSGFMT --version)"; then AC_MSG_ERROR([[Please install gettext]]) fi From patchwork Thu Sep 29 00:52:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geoff Levand X-Patchwork-Id: 1684169 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=ySUNYH1S; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MdFFm4Dd4z1yqH for ; Thu, 29 Sep 2022 10:52:44 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4MdFFm3nv5z2xZf for ; Thu, 29 Sep 2022 10:52:44 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=ySUNYH1S; dkim-atps=neutral X-Original-To: petitboot@lists.ozlabs.org Delivered-To: petitboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=infradead.org (client-ip=2001:8b0:10b:1234::107; helo=merlin.infradead.org; envelope-from=geoff@infradead.org; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=ySUNYH1S; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1234::107]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4MdFFS1CTbz2xYj for ; Thu, 29 Sep 2022 10:52:26 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Date:Cc:To:Subject:From:References: In-Reply-To:Message-Id:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description; bh=v9zbB/lCkC96cmWmKxQnMKXleAWat0nJ7JiMlEOgw9o=; b=ySUNYH1SFLnSFS+/6yyLqgrvUe aTUQnYBl07bWh8nq0MGJvMU8o05YsodIt7YjwLZuuBEKZE8WHG4aKVcdHYr4pTUn7fm1VHRvn7TYl KhdWVh0XF0DYSRlFKdqMxpy2cLk+JUHsEcYUmmRbBOr4Ub2u273pGret85Cuq3v3XWAHsDMMqG2Tb GK1YalQ9/stAgUBA7AoHuRpFnGpqPDQCr1kheJ/H2iVfpfRJx1ZhKr/me7zOdsh8WOiKvz1uvaRt8 ulTYjxLuVjh0mvrFb6UZvbM73jLaDdeGWeCCGwOv9wRWk7rFCBv8JUU4Ajvr2/92siU6Bz+QwPU82 mOE7HkNg==; Received: from geoff by merlin.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1odhmm-0061X4-9Q; Thu, 29 Sep 2022 00:52:20 +0000 Message-Id: In-Reply-To: References: From: Geoff Levand Patch-Date: Wed, 28 Sep 2022 20:12:31 -0700 Subject: [PATCH v1 4/5] Makefile: Add 'make help' To: Jeremy Kerr Date: Thu, 29 Sep 2022 00:52:20 +0000 X-BeenThere: petitboot@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Petitboot bootloader development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: petitboot@lists.ozlabs.org MIME-Version: 1.0 Errors-To: petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Petitboot" Add a new makefile target 'make help'. Signed-off-by: Geoff Levand --- Makefile.am | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile.am b/Makefile.am index 63456ca..2c7a49e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -73,3 +73,12 @@ include man/Makefile.am include utils/Makefile.am +.PHONY: help + +help: + @echo "Targets:" + @echo " make install" + @echo " make dist" + @echo " make distcheck" + @echo " make distclean" + @echo " make maintainer-clean" From patchwork Thu Sep 29 00:52:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geoff Levand X-Patchwork-Id: 1684172 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=VPpQqf3Z; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MdFFw3WSxz1yqH for ; Thu, 29 Sep 2022 10:52:52 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4MdFFw35Z4z3bdy for ; Thu, 29 Sep 2022 10:52:52 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=VPpQqf3Z; dkim-atps=neutral X-Original-To: petitboot@lists.ozlabs.org Delivered-To: petitboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=infradead.org (client-ip=2001:8b0:10b:1234::107; helo=merlin.infradead.org; envelope-from=geoff@infradead.org; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=VPpQqf3Z; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1234::107]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4MdFFS18VWz2xKX for ; Thu, 29 Sep 2022 10:52:26 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Date:Cc:To:Content-Transfer-Encoding: Content-Type:MIME-Version:Subject:From:References:In-Reply-To:Message-Id: Sender:Reply-To:Content-ID:Content-Description; bh=XDQgc3s6Ovnp2AxHpQjds7BoSE3UX+Sw8S21BkmSGDw=; b=VPpQqf3ZCf8/4Vlqw7HOotgVOc iJzMSi5Gb77Ri1Vl/XTaw4/aTAcnUD4k8JPXPIdy4CGNHNbXqyn1rvTEpGp72GN9dLAiyKuy5B0Sl J7K9bsBFbKgkr+VkL2BwfbndsbrfJq/JcMOWQl9FH5UzCVCtlN1TGiBE7QZ78qJQR0H6wLcTpgJ9F H9Y9srdk47PNKoRz6rtbYHTdEh2n1bTxtT87p0iHbBenLJ7N12sBaqf0vlC9BsA8FpGlinUKtY8hT Et3oRYRk/WxbsnBwPif9m2n9Jt8kWew9HIH1Xp8d2p6RtfmdkK6BAI+k5hOvK7m+501Q81Iulwj5c Xoxq1yBA==; Received: from geoff by merlin.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1odhmn-0061XB-C1; Thu, 29 Sep 2022 00:52:21 +0000 Message-Id: <452424632f165f07e25aaf549099d1d2e15d4eb4.1664412180.git.geoff@infradead.org> In-Reply-To: References: From: Geoff Levand Patch-Date: Wed, 28 Sep 2022 21:01:19 -0700 Subject: [PATCH v1 5/5] Fix build warnings. MIME-Version: 1.0 To: Jeremy Kerr Date: Thu, 29 Sep 2022 00:52:21 +0000 X-BeenThere: petitboot@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Petitboot bootloader development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: petitboot@lists.ozlabs.org Errors-To: petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Petitboot" Fixes build warnings like these: warning: implicit declaration of function ‘memmem’ warning: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast Signed-off-by: Geoff Levand --- discover/paths.c | 2 ++ discover/pxe-parser.c | 4 +++- ui/ncurses/nc-plugin.c | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/discover/paths.c b/discover/paths.c index 3c43bf6..19674bb 100644 --- a/discover/paths.c +++ b/discover/paths.c @@ -2,6 +2,8 @@ #include "config.h" #endif +#define _GNU_SOURCE + #include #include #include diff --git a/discover/pxe-parser.c b/discover/pxe-parser.c index 035794c..2b10771 100644 --- a/discover/pxe-parser.c +++ b/discover/pxe-parser.c @@ -1,7 +1,9 @@ - #if defined(HAVE_CONFIG_H) #include "config.h" #endif + +#define _GNU_SOURCE + #include #include diff --git a/ui/ncurses/nc-plugin.c b/ui/ncurses/nc-plugin.c index f897cc8..1152bf3 100644 --- a/ui/ncurses/nc-plugin.c +++ b/ui/ncurses/nc-plugin.c @@ -20,6 +20,7 @@ #endif #include +#include #include #include