app-arch/lbzip2: Sync with Gentoo

It's from Gentoo commit 8f03cd6c9fcc5b5e911cb3379fe0a17052c0a0d8.
This commit is contained in:
Flatcar Buildbot 2023-01-23 07:20:44 +00:00 committed by Krzesimir Nowak
parent d21a050c6a
commit c4658ed4dc
2 changed files with 30 additions and 2 deletions

View File

@ -0,0 +1,27 @@
https://github.com/kjn/lbzip2/pull/33
From 32b5167940ec817e454431956040734af405a9de Mon Sep 17 00:00:00 2001
From: Florian Weimer <fweimer@redhat.com>
Date: Thu, 5 Jan 2023 18:02:26 +0100
Subject: [PATCH] Define the GNULIB_XALLOC_DIE macro
This avoids an implicit function declaration when building gnulib's
xmalloc.c, addressing a build failure with future compiler version.
Solution proposed by Bruno Haible here:
Re: xmalloc calling undeclared xalloc_die function
<https://lists.gnu.org/archive/html/bug-gnulib/2022-12/msg00038.html>
--- a/configure.ac
+++ b/configure.ac
@@ -31,6 +31,9 @@ AC_PROG_LN_S
AC_PROG_RANLIB
AC_PROG_CC_C89
+AC_DEFINE(GNULIB_XALLOC_DIE, 1,
+ [This package is providing its own definition of the xalloc_die function.])
+
gl_ASSERT_NO_GNULIB_TESTS
gl_ASSERT_NO_GNULIB_POSIXCHECK
gl_EARLY

View File

@ -1,7 +1,7 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
EAPI=8
inherit autotools flag-o-matic
@ -17,6 +17,7 @@ IUSE="debug static"
PATCHES=(
"${FILESDIR}"/${PN}-2.3-s_isreg.patch
"${FILESDIR}"/${P}-fix-unaligned.patch
"${FILESDIR}"/${P}-clang16.patch
)
src_prepare() {