mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
findutils: bump version (#1618)
This commit is contained in:
77
sys-apps/findutils/findutils-4.6.0.recipe
Normal file
77
sys-apps/findutils/findutils-4.6.0.recipe
Normal file
@@ -0,0 +1,77 @@
|
||||
SUMMARY="Basic directory searching utilities"
|
||||
DESCRIPTION="
|
||||
GNU Findutils are typically used in conjunction with other programs to \
|
||||
provide modular and powerful directory search and file locating \
|
||||
capabilities to other commands.
|
||||
The tools supplied with this package are:
|
||||
- find - search for files in a directory hierarchy
|
||||
- locate - list files in databases that match a pattern
|
||||
- updatedb - update a file name database
|
||||
- xargs - build and execute command lines from a standard input.
|
||||
"
|
||||
HOMEPAGE="http://www.gnu.org/software/findutils"
|
||||
COPYRIGHT="1994-2015 Free Software Foundation, Inc."
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://ftp.gnu.org/gnu/findutils/findutils-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="ded4c9f73731cd48fec3b6bdaccce896473b6d8e337e9612e16cf1431bb1169d"
|
||||
PATCHES="findutils-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86_64 arm"
|
||||
|
||||
PROVIDES="
|
||||
findutils = $portVersion compat >= 4
|
||||
cmd:find = $portVersion compat >= 4
|
||||
cmd:locate = $portVersion compat >= 4
|
||||
cmd:oldfind = $portVersion compat >= 4
|
||||
cmd:updatedb = $portVersion compat >= 4
|
||||
cmd:xargs = $portVersion compat >= 4
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
lib:libiconv
|
||||
lib:libintl
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
devel:libiconv
|
||||
devel:libintl
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:awk
|
||||
cmd:find
|
||||
cmd:gcc
|
||||
cmd:ld
|
||||
cmd:make
|
||||
cmd:python
|
||||
cmd:sed
|
||||
"
|
||||
|
||||
defineDebugInfoPackage findutils \
|
||||
$binDir/find \
|
||||
$binDir/locate \
|
||||
$binDir/xargs
|
||||
|
||||
BUILD()
|
||||
{
|
||||
autoreconf -vfi
|
||||
runConfigure ./configure \
|
||||
--libexecdir=$libDir/findutils \
|
||||
--without-included-regex \
|
||||
--disable-rpath --with-gnu-ld
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
rm $libDir/charset.alias
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
147
sys-apps/findutils/patches/findutils-4.6.0.patchset
Normal file
147
sys-apps/findutils/patches/findutils-4.6.0.patchset
Normal file
@@ -0,0 +1,147 @@
|
||||
From 04f664a592137bccf67f39de12e655f950dea491 Mon Sep 17 00:00:00 2001
|
||||
From: begasus <begasus@gmail.com>
|
||||
Date: Sat, 2 Sep 2017 13:29:15 +0200
|
||||
Subject: fix gcc2 parse errors
|
||||
|
||||
|
||||
diff --git a/tests/test-quotearg-simple.c b/tests/test-quotearg-simple.c
|
||||
index 516e890..971ccef 100644
|
||||
--- a/tests/test-quotearg-simple.c
|
||||
+++ b/tests/test-quotearg-simple.c
|
||||
@@ -337,19 +337,23 @@ main (int argc _GL_UNUSED, char *argv[])
|
||||
/* Z points to the boundary between a readable/writable page
|
||||
and one that is neither readable nor writable. Position
|
||||
our string so its NUL is at the end of the writable one. */
|
||||
- char const *str = "____";
|
||||
- size_t s_len = strlen (str);
|
||||
- z -= s_len + 1;
|
||||
- memcpy (z, str, s_len + 1);
|
||||
-
|
||||
- set_custom_quoting (NULL, q, q);
|
||||
- /* Whether this actually triggers a SEGV depends on the
|
||||
- implementation of memcmp: whether it compares only byte-at-
|
||||
- a-time, and from left to right (no SEGV) or some other way. */
|
||||
- size_t n = quotearg_buffer (buf, sizeof buf, z, SIZE_MAX, NULL);
|
||||
- ASSERT (n == s_len + 2 * q_len);
|
||||
- ASSERT (memcmp (buf, q, sizeof buf) == 0);
|
||||
- free (q);
|
||||
+ {
|
||||
+ char const *str = "____";
|
||||
+ size_t s_len = strlen (str);
|
||||
+ z -= s_len + 1;
|
||||
+ memcpy (z, str, s_len + 1);
|
||||
+
|
||||
+ set_custom_quoting (NULL, q, q);
|
||||
+ /* Whether this actually triggers a SEGV depends on the
|
||||
+ implementation of memcmp: whether it compares only byte-at-
|
||||
+ a-time, and from left to right (no SEGV) or some other way. */
|
||||
+ {
|
||||
+ size_t n = quotearg_buffer (buf, sizeof buf, z, SIZE_MAX, NULL);
|
||||
+ ASSERT (n == s_len + 2 * q_len);
|
||||
+ ASSERT (memcmp (buf, q, sizeof buf) == 0);
|
||||
+ free (q);
|
||||
+ }
|
||||
+ }
|
||||
}
|
||||
}
|
||||
|
||||
diff --git a/xargs/xargs.c b/xargs/xargs.c
|
||||
index 1116cfe..5100633 100644
|
||||
--- a/xargs/xargs.c
|
||||
+++ b/xargs/xargs.c
|
||||
@@ -1183,26 +1183,28 @@ prep_child_for_exec (void)
|
||||
|
||||
We use 0 here in order to avoid generating a data structure that appears
|
||||
to indicate that we (the child) have a child. */
|
||||
- unsigned int slot = add_proc (0);
|
||||
- set_slot_var (slot);
|
||||
+ {
|
||||
+ unsigned int slot = add_proc (0);
|
||||
+ set_slot_var (slot);
|
||||
|
||||
- if (!keep_stdin)
|
||||
- {
|
||||
- const char inputfile[] = "/dev/null";
|
||||
- /* fprintf (stderr, "attaching stdin to /dev/null\n"); */
|
||||
+ if (!keep_stdin)
|
||||
+ {
|
||||
+ const char inputfile[] = "/dev/null";
|
||||
+ /* fprintf (stderr, "attaching stdin to /dev/null\n"); */
|
||||
|
||||
- close (0);
|
||||
- if (open (inputfile, O_RDONLY) < 0)
|
||||
- {
|
||||
- /* This is not entirely fatal, since
|
||||
- * executing the child with a closed
|
||||
- * stdin is almost as good as executing it
|
||||
- * with its stdin attached to /dev/null.
|
||||
- */
|
||||
- error (0, errno, "%s",
|
||||
- quotearg_n_style (0, locale_quoting_style, inputfile));
|
||||
- }
|
||||
- }
|
||||
+ close (0);
|
||||
+ if (open (inputfile, O_RDONLY) < 0)
|
||||
+ {
|
||||
+ /* This is not entirely fatal, since
|
||||
+ * executing the child with a closed
|
||||
+ * stdin is almost as good as executing it
|
||||
+ * with its stdin attached to /dev/null.
|
||||
+ */
|
||||
+ error (0, errno, "%s",
|
||||
+ quotearg_n_style (0, locale_quoting_style, inputfile));
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
}
|
||||
|
||||
|
||||
--
|
||||
2.7.0
|
||||
|
||||
|
||||
From f6bd0ec6d6c51cd2d45b9f531504cd2acb9a82ff Mon Sep 17 00:00:00 2001
|
||||
From: begasus <begasus@gmail.com>
|
||||
Date: Sat, 2 Sep 2017 13:30:14 +0200
|
||||
Subject: fix check needed for inet_pton
|
||||
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 876d981..ab1a600 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -149,6 +149,8 @@ AC_HEADER_DIRENT
|
||||
AC_HEADER_STAT
|
||||
AC_HEADER_SYS_WAIT
|
||||
|
||||
+dnl Check for -lsocket -lnetwork inet
|
||||
+AC_SEARCH_LIBS([socket],[socket inet network])
|
||||
|
||||
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||
|
||||
--
|
||||
2.7.0
|
||||
|
||||
|
||||
From 886cc62f8bc82305a675529bd0a5a423f6a64382 Mon Sep 17 00:00:00 2001
|
||||
From: begasus <begasus@gmail.com>
|
||||
Date: Sat, 2 Sep 2017 14:01:27 +0200
|
||||
Subject: fix ioctl conflict error
|
||||
|
||||
|
||||
diff --git a/tests/sys_ioctl.in.h b/tests/sys_ioctl.in.h
|
||||
index d3758ac..649acbf 100644
|
||||
--- a/tests/sys_ioctl.in.h
|
||||
+++ b/tests/sys_ioctl.in.h
|
||||
@@ -56,7 +56,7 @@ _GL_CXXALIAS_RPL (ioctl, int,
|
||||
# else
|
||||
# if @SYS_IOCTL_H_HAVE_WINSOCK2_H@ || 1
|
||||
_GL_FUNCDECL_SYS (ioctl, int,
|
||||
- (int fd, int request, ... /* {void *,char *} arg */));
|
||||
+ (int fd, unsigned long request, ... /* {void *,char *} arg */));
|
||||
# endif
|
||||
_GL_CXXALIAS_SYS (ioctl, int,
|
||||
(int fd, int request, ... /* {void *,char *} arg */));
|
||||
--
|
||||
2.7.0
|
||||
|
||||
Reference in New Issue
Block a user