mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 12:26:52 +02:00
main/libeconf: fix build on ppc64le
upstream: https://github.com/openSUSE/libeconf/issues/197
This commit is contained in:
parent
9efd08e362
commit
d2fc9ceba5
29
main/libeconf/0001-Fix-build-with-musl-libc-on-ppc64le.patch
Normal file
29
main/libeconf/0001-Fix-build-with-musl-libc-on-ppc64le.patch
Normal file
@ -0,0 +1,29 @@
|
||||
From abeea53fd7b214a6cb72e4a42ae2646e1db8fd06 Mon Sep 17 00:00:00 2001
|
||||
From: Natanael Copa <ncopa@alpinelinux.org>
|
||||
Date: Fri, 8 Mar 2024 12:40:06 +0100
|
||||
Subject: [PATCH] Fix build with musl libc on ppc64le
|
||||
|
||||
PATH_MAX is defined in limits.h in POSIX.
|
||||
|
||||
Fixes https://github.com/openSUSE/libeconf/issues/197
|
||||
|
||||
ref: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html
|
||||
---
|
||||
lib/libeconf.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/lib/libeconf.c b/lib/libeconf.c
|
||||
index c68a290..8459724 100644
|
||||
--- a/lib/libeconf.c
|
||||
+++ b/lib/libeconf.c
|
||||
@@ -31,6 +31,7 @@
|
||||
#include "readconfig.h"
|
||||
|
||||
#include <libgen.h>
|
||||
+#include <limits.h>
|
||||
#include <dirent.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
--
|
||||
2.44.0
|
||||
|
||||
@ -12,6 +12,7 @@ checkdepends="bash"
|
||||
subpackages="$pkgname-dev $pkgname-doc"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/openSUSE/libeconf/archive/refs/tags/v$pkgver.tar.gz
|
||||
musl-tests.patch
|
||||
0001-Fix-build-with-musl-libc-on-ppc64le.patch
|
||||
"
|
||||
|
||||
build() {
|
||||
@ -30,4 +31,5 @@ package() {
|
||||
sha512sums="
|
||||
5646af5e76b54a9a1a05780160404dd53cdf2022085a519098223539d5c162b6ab5c1ba0ce1099a28eb411a19dd2df1a51c487a34cfe4f7f9fc3ecbce7762e59 libeconf-0.6.2.tar.gz
|
||||
28431c1f80ee7815991584ef6307dabe593b4da58b9406e6f1a9cb30bfba3e925a48c83b0d3824427631bede5b1249b0c87e0d9fb55971d4ecf90805076b25dd musl-tests.patch
|
||||
88a2e97e9952fee4f0957e97877e85da3524fb8ff2dfe14bb76eb77dbf1d93335377380a1277723491d98a66739b1d35e729524f4807ad03979476e8fef62b97 0001-Fix-build-with-musl-libc-on-ppc64le.patch
|
||||
"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user