mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
cpio: bump version.
This commit is contained in:
@@ -12,9 +12,9 @@ on machines with a different byte-order."
|
||||
HOMEPAGE="http://www.gnu.org/software/cpio/cpio.html"
|
||||
COPYRIGHT="1988-2010 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="08a35e92deb3c85d269a0059a27d4140a9667a6369459299d08c17f713a92e73"
|
||||
CHECKSUM_SHA256="e87470d9c984317f658567c03bfefb6b0c829ff17dbf6b0de48d71a4c8f3db88"
|
||||
PATCHES="cpio-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
@@ -39,6 +39,7 @@ BUILD_PREREQUIRES="
|
||||
cmd:find
|
||||
cmd:gcc
|
||||
cmd:make
|
||||
cmd:sed
|
||||
cmd:sh
|
||||
cmd:yacc
|
||||
"
|
||||
@@ -1,48 +0,0 @@
|
||||
From c93583f0201de8659fb138dbef6df33285ea2fee 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 c68bd44..c8f4645 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -47,6 +47,8 @@ AC_CHECK_TYPE(gid_t, int)
|
||||
AC_HEADER_STDC
|
||||
AC_HEADER_DIRENT
|
||||
|
||||
+AC_SEARCH_LIBS(gethostbyname, [socket, network])
|
||||
+
|
||||
AC_CHECK_FUNCS([fchmod fchown])
|
||||
# This is needed for mingw build
|
||||
AC_CHECK_FUNCS([setmode getpwuid getpwnam getgrgid getgrnam pipe fork getuid geteuid])
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
|
||||
From da1282ba6f3f7f32bdc29107cf467b693372743d Mon Sep 17 00:00:00 2001
|
||||
From: Adrien Destugues <pulkomandy@gmail.com>
|
||||
Date: Tue, 14 Oct 2014 14:38:58 +0200
|
||||
Subject: gcc2 fixes.
|
||||
|
||||
|
||||
diff --git a/src/makepath.c b/src/makepath.c
|
||||
index 18d5b69..3244438 100644
|
||||
--- a/src/makepath.c
|
||||
+++ b/src/makepath.c
|
||||
@@ -66,10 +66,10 @@ make_path (char *argpath,
|
||||
|
||||
if (stat (dirpath, &stats))
|
||||
{
|
||||
+ char *slash = dirpath;
|
||||
tmpmode = MODE_RWX & ~ newdir_umask;
|
||||
invert_permissions = we_are_root ? 0 : MODE_WXUSR & ~ tmpmode;
|
||||
|
||||
- char *slash = dirpath;
|
||||
while (*slash == '/')
|
||||
slash++;
|
||||
while ((slash = strchr (slash, '/')))
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
88
app-arch/cpio/patches/cpio-2.13.patchset
Normal file
88
app-arch/cpio/patches/cpio-2.13.patchset
Normal file
@@ -0,0 +1,88 @@
|
||||
From feddb899d44dbdee35f149eb9d3655c399a4340e 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 2132256..95983b1 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -46,6 +46,8 @@ AC_CHECK_TYPE(gid_t, int)
|
||||
AC_HEADER_STDC
|
||||
AC_HEADER_DIRENT
|
||||
|
||||
+AC_SEARCH_LIBS(gethostbyname, [socket, network])
|
||||
+
|
||||
AC_CHECK_FUNCS([fchmod fchown])
|
||||
# This is needed for mingw build
|
||||
AC_CHECK_FUNCS([setmode getpwuid getpwnam getgrgid getgrnam pipe fork getuid geteuid])
|
||||
--
|
||||
2.23.0
|
||||
|
||||
|
||||
From 5ff823bec064715a32a60dc0ea46e17990f9def0 Mon Sep 17 00:00:00 2001
|
||||
From: Adrien Destugues <pulkomandy@gmail.com>
|
||||
Date: Tue, 14 Oct 2014 14:38:58 +0200
|
||||
Subject: gcc2 fixes.
|
||||
|
||||
|
||||
diff --git a/gnu/parse-datetime.y b/gnu/parse-datetime.y
|
||||
index a474312..7d57358 100644
|
||||
--- a/gnu/parse-datetime.y
|
||||
+++ b/gnu/parse-datetime.y
|
||||
@@ -2095,7 +2095,7 @@ parse_datetime2 (struct timespec *result, char const *p,
|
||||
dbg_printf (_("warning: when adding relative days, " \
|
||||
"it is recommended to specify 12:00pm\n"));
|
||||
}
|
||||
-
|
||||
+ {
|
||||
int year = tm.tm_year + pc.rel.year;
|
||||
int month = tm.tm_mon + pc.rel.month;
|
||||
int day = tm.tm_mday + pc.rel.day;
|
||||
@@ -2112,6 +2112,7 @@ parse_datetime2 (struct timespec *result, char const *p,
|
||||
tm.tm_year = year;
|
||||
tm.tm_mon = month;
|
||||
tm.tm_mday = day;
|
||||
+ }
|
||||
tm.tm_hour = tm0.tm_hour;
|
||||
tm.tm_min = tm0.tm_min;
|
||||
tm.tm_sec = tm0.tm_sec;
|
||||
@@ -2272,14 +2273,17 @@ parse_datetime2 (struct timespec *result, char const *p,
|
||||
|
||||
dbg_printf (_("final: %ld.%09ld (epoch-seconds)\n"),
|
||||
result->tv_sec,result->tv_nsec);
|
||||
-
|
||||
+{
|
||||
struct tm const *gmt = gmtime (&result->tv_sec);
|
||||
dbg_printf (_("final: %s (UTC0)\n"),
|
||||
debug_strfdatetime (gmt, NULL, dbg_tm, sizeof (dbg_tm)));
|
||||
+}
|
||||
+{
|
||||
struct tm const *lmt = localtime (&result->tv_sec);
|
||||
dbg_printf (_("final: %s (output timezone TZ=%+03d:%02d)\n"),
|
||||
debug_strfdatetime (lmt, NULL, dbg_tm, sizeof (dbg_tm)),
|
||||
(int)(otz/60), abs ((int)otz)%60);
|
||||
+}
|
||||
}
|
||||
}
|
||||
|
||||
diff --git a/src/makepath.c b/src/makepath.c
|
||||
index f937166..b552a48 100644
|
||||
--- a/src/makepath.c
|
||||
+++ b/src/makepath.c
|
||||
@@ -66,10 +66,10 @@ make_path (char const *argpath,
|
||||
|
||||
if (stat (dirpath, &stats))
|
||||
{
|
||||
+ char *slash = dirpath;
|
||||
tmpmode = MODE_RWX & ~ newdir_umask;
|
||||
invert_permissions = we_are_root ? 0 : MODE_WXUSR & ~ tmpmode;
|
||||
|
||||
- char *slash = dirpath;
|
||||
while (*slash == '/')
|
||||
slash++;
|
||||
while ((slash = strchr (slash, '/')))
|
||||
--
|
||||
2.23.0
|
||||
|
||||
Reference in New Issue
Block a user