Import of pkgsrc-2014Q1
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
$NetBSD: patch-Makefile.in,v 1.2 2014/02/04 15:07:46 wiz Exp $
|
||||
|
||||
Target for misc/gnuls package.
|
||||
|
||||
--- Makefile.in.orig 2013-12-13 15:20:00.000000000 +0000
|
||||
+++ Makefile.in
|
||||
@@ -4395,6 +4395,9 @@ pr_data = \
|
||||
all: $(BUILT_SOURCES)
|
||||
$(MAKE) $(AM_MAKEFLAGS) all-recursive
|
||||
|
||||
+gnuls: $(BUILT_SOURCES) $(mandeps)
|
||||
+ $(MAKE) $(AM_MAKEFLAGS) src/dircolors src/ls man/dircolors.1 man/ls.1
|
||||
+
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .1 .c .dvi .log .o .obj .pl .pl$(EXEEXT) .ps .sed .sh .sh$(EXEEXT) .sin .trs .x .xpl .xpl$(EXEEXT) .y
|
||||
am--refresh: Makefile
|
||||
@@ -1,73 +0,0 @@
|
||||
$NetBSD: patch-configure,v 1.1 2013/04/30 22:28:22 joerg Exp $
|
||||
|
||||
--- configure.orig 2013-04-30 19:22:56.000000000 +0000
|
||||
+++ configure
|
||||
@@ -38704,30 +38704,30 @@ fi
|
||||
|
||||
LIB_PTHREAD=
|
||||
if test $ac_cv_header_pthread_h = yes; then
|
||||
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_join" >&5
|
||||
-$as_echo_n "checking for library containing pthread_join... " >&6; }
|
||||
-if ${gl_cv_search_pthread_join+:} false; then :
|
||||
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
|
||||
+$as_echo_n "checking for library containing pthread_create... " >&6; }
|
||||
+if ${gl_cv_search_pthread_create+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
gl_saved_libs="$LIBS"
|
||||
- gl_cv_search_pthread_join=
|
||||
+ gl_cv_search_pthread_create=
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
#include <pthread.h>
|
||||
int
|
||||
main ()
|
||||
{
|
||||
-pthread_join (pthread_self (), (void **) 0);
|
||||
+pthread_create (NULL, NULL, NULL, NULL);
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_link "$LINENO"; then :
|
||||
- gl_cv_search_pthread_join="none required"
|
||||
+ gl_cv_search_pthread_create="none required"
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
- if test -z "$gl_cv_search_pthread_join"; then
|
||||
+ if test -z "$gl_cv_search_pthread_create"; then
|
||||
LIBS="-lpthread $gl_saved_libs"
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
@@ -38735,13 +38735,13 @@ rm -f core conftest.err conftest.$ac_obj
|
||||
int
|
||||
main ()
|
||||
{
|
||||
-pthread_join (pthread_self (), (void **) 0);
|
||||
+pthread_create (NULL, NULL, NULL, NULL);
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_link "$LINENO"; then :
|
||||
- gl_cv_search_pthread_join="-lpthread"
|
||||
+ gl_cv_search_pthread_create="-lpthread"
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
@@ -38749,10 +38749,10 @@ rm -f core conftest.err conftest.$ac_obj
|
||||
LIBS="$gl_saved_libs"
|
||||
|
||||
fi
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_search_pthread_join" >&5
|
||||
-$as_echo "$gl_cv_search_pthread_join" >&6; }
|
||||
- if test "$gl_cv_search_pthread_join" != "none required"; then
|
||||
- LIB_PTHREAD="$gl_cv_search_pthread_join"
|
||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_search_pthread_create" >&5
|
||||
+$as_echo "$gl_cv_search_pthread_create" >&6; }
|
||||
+ if test "$gl_cv_search_pthread_create" != "none required"; then
|
||||
+ LIB_PTHREAD="$gl_cv_search_pthread_create"
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
$NetBSD: patch-lib-fflush.c,v 1.1 2012/03/06 23:38:04 joerg Exp $
|
||||
$NetBSD: patch-lib-fflush.c,v 1.2 2014/02/02 07:08:25 richard Exp $
|
||||
|
||||
--- lib/fflush.c.orig 2011-08-19 16:09:37.000000000 +0000
|
||||
--- lib/fflush.c.orig 2013-12-04 14:53:33.000000000 +0000
|
||||
+++ lib/fflush.c
|
||||
@@ -91,7 +91,7 @@ static inline void
|
||||
update_fpos_cache (FILE *fp, off_t pos)
|
||||
@@ -96,7 +96,7 @@ update_fpos_cache (FILE *fp _GL_UNUSED_P
|
||||
off_t pos _GL_UNUSED_PARAMETER)
|
||||
{
|
||||
#if defined __sferror || defined __DragonFly__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, MacOS X, Cygwin */
|
||||
-# if defined __CYGWIN__
|
||||
+# if defined(__CYGWIN__) || defined(__NetBSD__)
|
||||
# if defined __sferror || defined __DragonFly__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin */
|
||||
-# if defined __CYGWIN__
|
||||
+# if defined(__CYGWIN__) || defined(__NetBSD__)
|
||||
/* fp_->_offset is typed as an integer. */
|
||||
fp_->_offset = pos;
|
||||
# else
|
||||
# else
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
$NetBSD: patch-lib-fseeko.c,v 1.1 2012/03/06 23:38:04 joerg Exp $
|
||||
$NetBSD: patch-lib-fseeko.c,v 1.2 2014/02/02 07:08:25 richard Exp $
|
||||
|
||||
--- lib/fseeko.c.orig 2011-08-12 08:05:46.000000000 +0000
|
||||
--- lib/fseeko.c.orig 2013-12-04 15:02:00.000000000 +0000
|
||||
+++ lib/fseeko.c
|
||||
@@ -111,7 +111,7 @@ fseeko (FILE *fp, off_t offset, int when
|
||||
@@ -125,7 +125,7 @@ fseeko (FILE *fp, off_t offset, int when
|
||||
fp->_flags &= ~_IO_EOF_SEEN;
|
||||
fp->_offset = pos;
|
||||
#elif defined __sferror || defined __DragonFly__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, MacOS X, Cygwin */
|
||||
#elif defined __sferror || defined __DragonFly__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin */
|
||||
-# if defined __CYGWIN__
|
||||
+# if defined(__CYGWIN__) || defined(__NetBSD__)
|
||||
/* fp_->_offset is typed as an integer. */
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
$NetBSD: patch-lib_strncat.c,v 1.1 2014/03/25 07:53:35 obache Exp $
|
||||
|
||||
* strncat is defined as a macro in NetBSD-6
|
||||
|
||||
--- lib/strncat.c.orig 2013-12-04 15:02:02.000000000 +0000
|
||||
+++ lib/strncat.c
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
/* Specification. */
|
||||
#include <string.h>
|
||||
+#undef strncat
|
||||
|
||||
char *
|
||||
strncat (char *dest, const char *src, size_t n)
|
||||
Reference in New Issue
Block a user