From patchwork Thu Sep 29 00:52:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geoff Levand X-Patchwork-Id: 1684180 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=i6JheprO; 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 4MdFGS1g55z1yqH for ; Thu, 29 Sep 2022 10:53:20 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4MdFGS1Wzrz3c3G for ; Thu, 29 Sep 2022 10:53:20 +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=i6JheprO; 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=i6JheprO; 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 4MdFFd5cnzz3blb for ; Thu, 29 Sep 2022 10:52:37 +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=i6JheprOOfmIj8FsTyOChKi0Fa fJ5Inirip011mJ7cdcDsJJ/nVFNu3YVtQZexkocJDTQ4qonLVpxazzY5JWh9hI5YSrK8nkbEWGQzU BwVkLBipfdNoHhFuXdef+8tx5kFOa0ErvNVGhp/PcW0wApG8zQAk48bEJOfnYa82i2Tf07SSxpIjS 9UfUlCXrCL3uaIAzE1KXH6kWNR6bpYWGYt2WrFfpvPhVnmXet90LBhYENtC4m+wI3iBqzwcJG0XTZ yBUAXXIbJUK/znQebtXzICeI1GxNhiNmcCvlCu+v7TTOmr7CnrwwF8ed2Zpy5IiRnP2bvSh9HfNn4 3NJfeDcQ==; Received: from geoff by merlin.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1odhmy-0061YC-Av; Thu, 29 Sep 2022 00:52:32 +0000 Message-Id: <2e8998e2ff0bb8a49b1069219b8b99d34485a933.1664412495.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:32 +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:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geoff Levand X-Patchwork-Id: 1684182 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=zgFL/H14; 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 4MdFGZ6mzbz1yqH for ; Thu, 29 Sep 2022 10:53:26 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4MdFGZ6fqDz3c6h for ; Thu, 29 Sep 2022 10:53:26 +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=zgFL/H14; 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=zgFL/H14; 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 4MdFFg1hdpz3c2s for ; Thu, 29 Sep 2022 10:52:39 +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=zgFL/H14FZsxj5P3AJi7MkDwct GLmo0D6L+ytyOGLSBehpH9tlI+mckZ4XvAPeFjAetYY4Os+6jAlDTSYY6el633Bix6hznOoLqOslo LD2wJFqNf6A5andiAsJ5vcLwP0dG148zD2MC13/ODmuD/+bQNZvdtOXhJG0GH5gz8bQa7mb77S7Fz jgNm2zL6wM3Xhu8bHN6wMG7t9etJFsS/0/3Jzfoem3TCGFtCT+ugzzou/CxT/9eUu7lJbh2V1II6F l0Da/X7tJr2oDPXyki6jKnucTpOVR72LCleoE6c6kENc8pebJljkiknZady+2mbRcHRMM8753qebH bRtZ1AJw==; Received: from geoff by merlin.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1odhmy-0061YJ-TJ; Thu, 29 Sep 2022 00:52:33 +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:32 +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:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geoff Levand X-Patchwork-Id: 1684181 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=112.213.38.117; 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=bi4PGZvE; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (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 4MdFGW5ZzXz1yqH for ; Thu, 29 Sep 2022 10:53:23 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4MdFGW54J2z3c4S for ; Thu, 29 Sep 2022 10:53:23 +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=bi4PGZvE; 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=bi4PGZvE; 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 4MdFFg1Bbhz3c2g for ; Thu, 29 Sep 2022 10:52:39 +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=bi4PGZvEyTobvqx45lq2sTiQ5N /iBUzMCHbM0eTh13WmHszIY/WRIxEhHh2BrUTqd+AqoGPtb5i30XD+ioSDLBOEA/Wa+eSQ7E3Mh3o 1QzXojPMsMpbDyeLGsoM8PJS5hhOTqrwgSj9KZNXxko/JbVnI3Z/OKc+iKRX+efj837nOYsfaz5WS JK3LJZUJP1uXbD7XSm1JDNNRveAYO8+B4uUbGoBWX5KutW1sFkt9p2q63+U8eE+uQM5BYPHE7fyuH fvKGjNx34ZVn7FWkPZCTGzTgbCispdzNWwc/DX+HObZ/7VOciCP3+XRk3VCB2JBivjZ8cDUHg2Hld Yg4TdEAQ==; Received: from geoff by merlin.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1odhmz-0061YY-WE; Thu, 29 Sep 2022 00:52:34 +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:33 +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:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geoff Levand X-Patchwork-Id: 1684183 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=QPkok+j8; 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 4MdFGf1rvwz1yqH for ; Thu, 29 Sep 2022 10:53:30 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4MdFGf1L3zz3bsS for ; Thu, 29 Sep 2022 10:53:30 +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=QPkok+j8; 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=QPkok+j8; 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 4MdFFg242Sz3c34 for ; Thu, 29 Sep 2022 10:52:39 +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=QPkok+j8g9/JKUCML1o2bqlUuM Plch8H4wzQHVb8XDGn6U24Kacf9AUXE+uZkqJS/IhV6n09Sk/Jup3xdYlcz9owlfrOOuDT/jMeBpM yjLdn4gJDh008HEpExaqvbqqUH1UxV869iCumpDoW0hFP375N11SnteQCdgw3ZqCBorkqIng4WAPU GkAJM/qGqMyLTL63MYZc5f+g1ZGO52W/edIi0pS0WmHgOGlmMpZje9XiBCcJc5fwf3hIOObRUrVeA RNeYAcJqnKUQ3tXa8/c+kV18hu3TSVdr32S/e71iH97ZhJsnv59OJ3nYxQJ5TJtdwzEmTf+8vWFbc JvWSEecg==; Received: from geoff by merlin.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1odhn1-0061Yf-4e; Thu, 29 Sep 2022 00:52:35 +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:35 +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:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geoff Levand X-Patchwork-Id: 1684184 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=p0EaWKvS; 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 4MdFGj69pSz1yqH for ; Thu, 29 Sep 2022 10:53:33 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4MdFGj63p3z3c6G for ; Thu, 29 Sep 2022 10:53:33 +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=p0EaWKvS; 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=p0EaWKvS; 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 4MdFFh0p86z3c4S for ; Thu, 29 Sep 2022 10:52:40 +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=p0EaWKvSbdlzOU1PdHFq5iUI4y NgGgqVc7JnziIQuljHRHJuTWpJsp2h7dI0LlS2WaNxDcAFlyo8xxsg2dQ0+a7YZlw0/UUAuDVItfq WkYZz7mJxWvXZKH9ALjMscaHom+1Y6dFX6oDTzTFA9Pr/Cg69S131HIn8gq4ss3uuJ7JbG86pTYmk MR/4+8Nyzt4lyTYv3+LEqUAkgGact9dvKFn//9NqUTz72XIep7R/aZ/0734xgFEajys9EiVOTLAwe ORJu1Duyf2RM3psP1kRiU0jFfkw6L7wH9mxhRCYAljyoMaL/HnpUaLUUTSzT/SmuGF4wofwsLpiDK GXOf+WtA==; Received: from geoff by merlin.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1odhn1-0061Yn-Rk; Thu, 29 Sep 2022 00:52:36 +0000 Message-Id: <452424632f165f07e25aaf549099d1d2e15d4eb4.1664412495.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:35 +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