sortix-mirror/ports/diffutils/diffutils.patch

64 lines
2.7 KiB
Diff

diff --no-dereference -Naur -- diffutils.normalized/build-aux/config.sub diffutils.srctix/build-aux/config.sub
--- diffutils.normalized/build-aux/config.sub 2011-08-28 13:55:52.000000000 +0200
+++ diffutils.srctix/build-aux/config.sub 2013-01-13 19:25:11.342161312 +0100
@@ -1330,7 +1330,7 @@
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
| -sym* | -kopensolaris* \
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
- | -aos* | -aros* \
+ | -aos* | -aros* | -sortix* \
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
diff --no-dereference -Naur -- diffutils.normalized/lib/sigaction.c diffutils.srctix/lib/sigaction.c
--- diffutils.normalized/lib/sigaction.c 2011-03-26 13:45:45.000000000 +0100
+++ diffutils.srctix/lib/sigaction.c 2013-01-13 19:33:30.278176638 +0100
@@ -19,6 +19,7 @@
/* Specification. */
#include <signal.h>
+#define NSIG SIG_MAX_NUM
#include <errno.h>
#include <stdint.h>
@@ -51,9 +52,11 @@
with this module should stick with only sigaction(). */
/* Check some of our assumptions. */
+#if !defined(__sortix__)
#if defined SIGCHLD || defined HAVE_SIGALTSTACK || defined HAVE_SIGINTERRUPT
# error "Revisit the assumptions made in the sigaction module"
#endif
+#endif
/* Out-of-range substitutes make a good fallback for uncatchable
signals. */
diff --no-dereference -Naur -- diffutils.normalized/lib/stdio.in.h diffutils.srctix/lib/stdio.in.h
--- diffutils.normalized/lib/stdio.in.h 2011-08-28 13:57:28.000000000 +0200
+++ diffutils.srctix/lib/stdio.in.h 2014-02-15 20:43:10.975751117 +0100
@@ -1,3 +1,4 @@
+
/* -*- buffer-read-only: t -*- vi: set ro: */
/* DO NOT EDIT! GENERATED AUTOMATICALLY! */
/* A GNU-like <stdio.h>.
@@ -681,7 +682,7 @@
# endif
#endif
-#if @GNULIB_GETS@
+#if @GNULIB_GETS@ && !defined(__sortix__)
# if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
# undef gets
diff --no-dereference -Naur -- diffutils.normalized/tixbuildinfo diffutils.srctix/tixbuildinfo
--- diffutils.normalized/tixbuildinfo 1970-01-01 01:00:00.000000000 +0100
+++ diffutils.srctix/tixbuildinfo 2013-12-13 18:25:58.890943575 +0100
@@ -0,0 +1,7 @@
+tix.version=1
+tix.class=srctix
+pkg.name=diffutils
+pkg.build-libraries=libiconv?
+pkg.build-system=configure
+pkg.configure.vars=gt_cv_locale_fr=false gt_cv_locale_ja=false gt_cv_locale_fr_utf8=false gt_cv_locale_ja_utf8=false gt_cv_locale_tr_utf8=false gt_cv_locale_zh_CN=false gl_cv_func_fchownat_nofollow_works=yes gl_cv_func_fchownat_empty_filename_works=yes
+pkg.make.vars=V=1