mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-14 07:40:07 +02:00
Update diffutils to 3.2
This commit is contained in:
28
sys-apps/diffutils/diffutils-3.2.bep
Normal file
28
sys-apps/diffutils/diffutils-3.2.bep
Normal file
@@ -0,0 +1,28 @@
|
||||
DESCRIPTION="Tools to make diffs and compare files."
|
||||
HOMEPAGE="http://www.gnu.org/software/diffutils/"
|
||||
SRC_URI="http://ftp.gnu.org/pub/gnu/diffutils/diffutils-3.2.tar.gz"
|
||||
CHECKSUM_MD5="22e4deef5d8949a727b159d6bc65c1cc"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND=""
|
||||
BUILD {
|
||||
cd diffutils-3.2
|
||||
./configure --prefix="$(finddir B_COMMON_DIRECTORY)" \
|
||||
--datarootdir="$(finddir B_COMMON_DATA_DIRECTORY)" \
|
||||
--mandir="$(finddir B_COMMON_DOCUMENTATION_DIRECTORY)/man" \
|
||||
--infodir="$(finddir B_COMMON_DOCUMENTATION_DIRECTORY)/info"
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL {
|
||||
cd diffutils-3.2
|
||||
make install
|
||||
}
|
||||
|
||||
TEST {
|
||||
cd diffutils-3.2
|
||||
make check
|
||||
}
|
||||
|
||||
LICENSE="GNU GPL v3"
|
||||
COPYRIGHT="1992-2011 Free Software Foundation, Inc."
|
||||
39
sys-apps/diffutils/patches/diffutils-3.2.patch
Normal file
39
sys-apps/diffutils/patches/diffutils-3.2.patch
Normal file
@@ -0,0 +1,39 @@
|
||||
diff -up diffutils-3.2/gnulib-tests/test-dup2.c.orig diffutils-3.2/gnulib-tests/test-dup2.c
|
||||
--- diffutils-3.2/gnulib-tests/test-dup2.c.orig 2011-03-26 06:47:07.008126464 -0600
|
||||
+++ diffutils-3.2/gnulib-tests/test-dup2.c 2012-05-02 23:07:17.022806528 -0600
|
||||
@@ -181,6 +181,7 @@ main (void)
|
||||
|
||||
/* On systems that distinguish between text and binary mode, dup2
|
||||
reuses the mode of the source. */
|
||||
+#if O_BINARY
|
||||
setmode (fd, O_BINARY);
|
||||
ASSERT (is_mode (fd, O_BINARY));
|
||||
ASSERT (dup2 (fd, fd + 1) == fd + 1);
|
||||
@@ -195,6 +196,6 @@ main (void)
|
||||
ASSERT (close (fd + 1) == 0);
|
||||
ASSERT (close (fd) == 0);
|
||||
ASSERT (unlink (file) == 0);
|
||||
-
|
||||
+#endif
|
||||
return 0;
|
||||
}
|
||||
diff -up diffutils-3.2/gnulib-tests/test-fcntl.c.orig diffutils-3.2/gnulib-tests/test-fcntl.c
|
||||
--- diffutils-3.2/gnulib-tests/test-fcntl.c.orig 2011-01-03 14:06:23.006815744 -0700
|
||||
+++ diffutils-3.2/gnulib-tests/test-fcntl.c 2012-05-02 23:07:17.025952256 -0600
|
||||
@@ -293,6 +293,7 @@ main (void)
|
||||
ASSERT (is_mode (fd + 2, O_BINARY));
|
||||
ASSERT (close (fd) == 0);
|
||||
|
||||
+#if O_TEXT
|
||||
setmode (fd + 2, O_TEXT);
|
||||
ASSERT (fcntl (fd + 2, F_DUPFD, fd + 1) == fd + 1);
|
||||
ASSERT (!is_open (fd));
|
||||
@@ -313,7 +314,7 @@ main (void)
|
||||
ASSERT (is_mode (fd, O_TEXT));
|
||||
ASSERT (is_mode (fd + 2, O_TEXT));
|
||||
ASSERT (close (fd + 2) == 0);
|
||||
-
|
||||
+#endif
|
||||
/* Test F_GETFD. */
|
||||
errno = 0;
|
||||
ASSERT (fcntl (-1, F_GETFD) == -1);
|
||||
Reference in New Issue
Block a user