Browse Source

fix findutils hostcompile on OpenBSD 5.5

Waldemar Brodkorb 10 years ago
parent
commit
03abdeff30

+ 1 - 1
package/findutils/Makefile

@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=		findutils
 PKG_VERSION:=		4.4.2
-PKG_RELEASE:=		5
+PKG_RELEASE:=		6
 PKG_MD5SUM:=		351cc4adb07d54877fa15f75fb77d39f
 PKG_DESCR:=		utilities for finding files (also provided by busybox)
 PKG_SECTION:=		core

+ 6 - 6
package/findutils/patches/patch-configure_ac

@@ -1,5 +1,5 @@
---- findutils-4.4.2.orig/configure.ac	2009-05-16 17:27:39.000000000 +0200
-+++ findutils-4.4.2/configure.ac	2014-04-23 15:58:08.081495622 +0200
+--- findutils-4.4.2.orig/configure.ac	Sat May 16 17:27:39 2009
++++ findutils-4.4.2/configure.ac	Sat May 24 15:13:05 2014
 @@ -77,8 +77,6 @@ AC_PROG_CPP
  dnl for gnulib
  gl_EARLY
@@ -9,14 +9,14 @@
  AC_PROG_INSTALL
  AC_PROG_RANLIB
  dnl AC_PROG_LIBTOOL
-@@ -204,10 +202,6 @@ AC_CHECK_MEMBER(struct dirent.d_type,,,[
+@@ -203,10 +201,6 @@ AC_CHECK_MEMBER(struct dirent.d_type,,,[
+ #include <dirent.h>])
  
  jy_AC_ATTRIBUTE_NORETURN
- 
+-
 -dnl internationalization macros
 -AM_GNU_GETTEXT([external])
 -AM_GNU_GETTEXT_VERSION(0.14.5)
--
+ 
  dnl regextype.c and regexprops.c are designed to be usable outside findutils,
  dnl but findutils doesn't want to support all the regex types in gnulib,
- dnl and wants to support an additional one (RE_SYNTAX_EMACS|RE_DOT_NEWLINE).

+ 5 - 6
package/findutils/patches/patch-gnulib_lib_freadahead_h

@@ -1,6 +1,6 @@
---- findutils-4.4.2.orig/gnulib/lib/freadahead.h	2009-05-10 23:23:57.000000000 +0200
-+++ findutils-4.4.2/gnulib/lib/freadahead.h	2014-03-23 16:27:43.000000000 +0100
-@@ -29,8 +29,21 @@ extern "C" {
+--- findutils-4.4.2.orig/gnulib/lib/freadahead.h	Sun May 10 23:23:57 2009
++++ findutils-4.4.2/gnulib/lib/freadahead.h	Sat May 24 15:13:05 2014
+@@ -29,7 +29,20 @@ extern "C" {
  
     STREAM must not be wide-character oriented.  */
  
@@ -16,9 +16,8 @@
 +#else
 +
  extern size_t freadahead (FILE *stream);
- 
-+#endif
 +
++#endif
+ 
  #ifdef __cplusplus
  }
- #endif

+ 3 - 3
package/findutils/patches/patch-gnulib_lib_fseeko_c

@@ -1,6 +1,6 @@
---- findutils-4.4.2.orig/gnulib/lib/fseeko.c	2009-05-10 23:25:10.000000000 +0200
-+++ findutils-4.4.2/gnulib/lib/fseeko.c	2014-03-23 16:35:34.000000000 +0100
-@@ -94,8 +94,14 @@ rpl_fseeko (FILE *fp, off_t offset, int
+--- findutils-4.4.2.orig/gnulib/lib/fseeko.c	Sun May 10 23:25:10 2009
++++ findutils-4.4.2/gnulib/lib/fseeko.c	Sat May 24 15:13:05 2014
+@@ -94,8 +94,14 @@ rpl_fseeko (FILE *fp, off_t offset, int whence)
    if ((fp->_Mode & _MWRITE ? fp->_Next == fp->_Buf : fp->_Next == fp->_Rend)
        && fp->_Rback == fp->_Back + sizeof (fp->_Back)
        && fp->_Rsave == NULL)

+ 11 - 0
package/findutils/patches/patch-gnulib_lib_getdate_y

@@ -0,0 +1,11 @@
+--- findutils-4.4.2.orig/gnulib/lib/getdate.y	Sun May 10 23:23:57 2009
++++ findutils-4.4.2/gnulib/lib/getdate.y	Sat May 24 15:28:27 2014
+@@ -114,7 +114,7 @@
+    wraps around, but there's no portable way to check for that at
+    compile-time.  */
+ verify (TYPE_IS_INTEGER (time_t));
+-verify (LONG_MIN <= TYPE_MINIMUM (time_t) && TYPE_MAXIMUM (time_t) <= LONG_MAX);
++//verify (LONG_MIN <= TYPE_MINIMUM (time_t) && TYPE_MAXIMUM (time_t) <= LONG_MAX);
+ 
+ /* An integer value, and the number of digits in its textual
+    representation.  */