app-arch/lbzip2: Sync with Gentoo

It's from Gentoo commit 5de4b509ccbae6e79f614707e6381cfd9017bdba.
This commit is contained in:
Flatcar Buildbot 2023-07-17 07:09:47 +00:00 committed by Sayan Chowdhury
parent f64aa9900e
commit 67031a3b3e
No known key found for this signature in database
GPG Key ID: B02399319CD05C8B
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,21 @@
Bug: https://bugs.gentoo.org/894320
--- a/src/common.h
+++ b/src/common.h
@@ -35,6 +35,7 @@
/* Tracing, useful in debugging, but not officially supported. */
#ifdef ENABLE_TRACING
+#include "main.h" /* Needed for info */
#define Trace(x) info x
#else
#define Trace(x)
--- a/src/main.h
+++ b/src/main.h
@@ -20,6 +20,7 @@
along with lbzip2. If not, see <http://www.gnu.org/licenses/>.
*/
+#pragma once
#include <limits.h> /* CHAR_BIT */
#if 8 != CHAR_BIT

View File

@ -18,6 +18,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-2.3-s_isreg.patch
"${FILESDIR}"/${P}-fix-unaligned.patch
"${FILESDIR}"/${P}-clang16.patch
"${FILESDIR}"/${P}-clang16-musl-info.patch
)
src_prepare() {