cpio: bump to version 2.15, fix CFLAGS

This commit is contained in:
Joachim Mairböck
2025-08-20 14:55:19 +02:00
parent db95dc1970
commit 3a78b80c17
2 changed files with 13 additions and 10 deletions

View File

@@ -10,11 +10,11 @@ with older cpio programs. When extracting from archives, cpio automatically \
recognizes which kind of archive it is reading and can read archives created \
on machines with a different byte-order."
HOMEPAGE="http://www.gnu.org/software/cpio/cpio.html"
COPYRIGHT="1988-2023 Free Software Foundation, Inc."
COPYRIGHT="1988-2024 Free Software Foundation, Inc."
LICENSE="GNU GPL v3"
REVISION="2"
REVISION="1"
SOURCE_URI="http://ftp.gnu.org/gnu/cpio/cpio-$portVersion.tar.gz"
CHECKSUM_SHA256="145a340fd9d55f0b84779a44a12d5f79d77c99663967f8cfa168d7905ca52454"
CHECKSUM_SHA256="efa50ef983137eefc0a02fdb51509d624b5e3295c980aa127ceee4183455499e"
PATCHES="cpio-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
@@ -52,12 +52,15 @@ BUILD_PREREQUIRES="
cmd:yacc
"
defineDebugInfoPackage cpio$secondaryArchSuffix \
$commandBinDir/cpio
BUILD()
{
aclocal
autoreconf
autoconf
CFLAGS=-D_BSD_SOURCE runConfigure --omit-dirs binDir ./configure \
CFLAGS="-D_BSD_SOURCE -O2 -g" runConfigure --omit-dirs binDir ./configure \
--bindir=$commandBinDir
make $jobArgs
}

View File

@@ -1,16 +1,16 @@
From 12c7caa80af6b5953695e12890d31370ee1f4247 Mon Sep 17 00:00:00 2001
From 590403968c143ee5e21df9719121fa11162f575e Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@gmail.com>
Date: Tue, 14 Oct 2014 14:38:24 +0200
Subject: Search for gethostbyname in libnetwork.
diff --git a/configure.ac b/configure.ac
index de479e7..12e0266 100644
index 93c3d46..dd5df1c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -46,6 +46,8 @@ AC_HEADER_DIRENT
AX_COMPILE_CHECK_RETTYPE([major], [0])
AX_COMPILE_CHECK_RETTYPE([minor], [0])
@@ -60,6 +60,8 @@ AX_COMPILE_CHECK_RETTYPE([minor], [0], [
# include <sys/sysmacros.h>
#endif])
+AC_SEARCH_LIBS(gethostbyname, [socket, network])
+
@@ -18,5 +18,5 @@ index de479e7..12e0266 100644
# This is needed for mingw build
AC_CHECK_FUNCS([setmode getpwuid getpwnam getgrgid getgrnam pipe fork getuid geteuid])
--
2.37.3
2.50.1