Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

7
sysutils/coreutils/DESCR Normal file
View File

@@ -0,0 +1,7 @@
The GNU Core Utilities are the basic file, shell and text manipulation
utilities of the GNU operating system. These are the core utilities which
are expected to exist on every operating system.
Previously these utilities were offered as three individual sets of GNU
utilities, fileutils, shellutils, and textutils. Those three have been
combined into a single set of utilities called the coreutils.

View File

@@ -0,0 +1,66 @@
# $NetBSD: Makefile,v 1.60 2013/05/31 12:41:59 wiz Exp $
.include "../../sysutils/coreutils/Makefile.common"
PKGREVISION= 6
CONFIGURE_ARGS+= --without-gmp
CONFLICTS= fileutils-[0-9]* gnuls-[0-9]* linuxls-[0-9]* sh-utils-[0-9]* textutils-[0-9]*
# devel/id-utils installs a 'gid' program, so conflict with it
# databases/geneweb a 'gwc' program, so conflict with it
# graphics/graphviz installs a 'gpr' program, so conflict with it
CONFLICTS+= id-utils-[0-9]* gnome-utils<1.4.1.2nb2
CONFLICTS+= geneweb-[0-9]*
CONFLICTS+= graphviz<1.12
INFO_FILES= yes
# Exclude programs from PLIST which aren't built on a platform.
PLIST_VARS+= hostid stdbuf
.if ${OPSYS} != "Interix"
PLIST.hostid= yes
.endif
.include "../../mk/compiler.mk"
.if ${OBJECT_FMT} == "ELF" && \
(!empty(PKGSRC_COMPILER:Mgcc) || !empty(PKGSRC_COMPILER:Mclang))
PLIST.stdbuf= yes
.endif
PROGS= [ base64 basename cat chcon chgrp chmod chown chroot cksum comm \
cp csplit cut date dd df dir dircolors dirname du hostid echo env \
expand expr factor false fmt fold groups head id install join kill \
link ln logname ls md5sum mkdir mkfifo mknod mktemp mv nice nl \
nohup nproc od paste pathchk pinky pr printenv printf ptx pwd \
readlink rm rmdir runcon seq sha1sum sha224sum sha256sum sha384sum \
sha512sum shred shuf sleep sort split stat stdbuf stty sum sync tac \
tail tee test timeout touch tr true truncate tsort tty uname \
unexpand uniq unlink uptime users vdir wc who whoami yes
AUTO_MKDIRS= yes
post-install:
.for f in ${PROGS}
set -e; \
if ${TEST} -f ${DESTDIR}${PREFIX}/bin/g${f:Q}; then \
${LN} -sf ${PREFIX}/bin/g${f:Q} ${DESTDIR}${PREFIX}/${PKGGNUDIR}bin/${f:Q}; \
fi; \
if ${TEST} -f ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/g${f:Q}.1; then \
${LN} -sf ${PREFIX}/${PKGMANDIR}/man1/g${f:Q}.1 ${DESTDIR}${PREFIX}/${PKGGNUDIR}${PKGMANDIR}/man1/${f:Q}.1; \
fi
.endfor
#CONFIGURE_ARGS+= --enable-install-program=su
#.if ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD" || \
# ${OPSYS} == "OpenBSD"
#MAKE_FLAGS+= setuid_root_mode=a=rx
#MESSAGE_SRC= ${.CURDIR}/MESSAGE.gsu
#MESSAGE_SUBST+= OPSYS=${OPSYS:Q}
#.endif
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View File

@@ -0,0 +1,54 @@
# $NetBSD: Makefile.common,v 1.6 2012/10/23 19:50:56 asau Exp $
# used by sysutils/coreutils/Makefile
# used by misc/gnuls/Makefile
DISTNAME= coreutils-8.13
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_GNU:=coreutils/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.gnu.org/software/coreutils/
COMMENT= GNU basic file, shell and text manipulation utilities
LICENSE= gnu-gpl-v3
NOT_FOR_PLATFORM= NetBSD-2.0[D-H]-*
PATCHDIR= ${.CURDIR}/../../sysutils/coreutils/patches
DISTINFO_FILE= ${.CURDIR}/../../sysutils/coreutils/distinfo
GNU_CONFIGURE= YES
USE_TOOLS+= msgfmt msgmerge perl xgettext
USE_PKGLOCALEDIR= YES
TEST_TARGET= check
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Interix"
CONFIGURE_ENV+= ac_list_mounted_fs=found
.endif
.if ${OPSYS} == "DragonFly"
CONFIGURE_ENV+= gl_cv_search_pthread_join=-lpthread
.endif
.if !empty(MACHINE_PLATFORM:MDarwin-[9].*-*)
CONFIGURE_ENV+= ac_cv_header_sys_acl_h=no jm_cv_func_svid_putenv=yes
.endif
# XXX - this hack is bound to cause fallout on some platform at some point.
# How can we determine the API version of the builtin gettext?
.if ${OPSYS} != "Linux"
CONFIGURE_ENV+= gt_cv_func_gnugettext3_libintl=yes
.endif
CONFIGURE_ENV+= MKDIR_P=${MKDIR:Q}
CONFIGURE_ARGS+= --program-prefix=g
#CONFIGURE_ARGS+= --enable-install-program=su
#.if ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD" || \
# ${OPSYS} == "OpenBSD"
#MAKE_FLAGS+= setuid_root_mode=a=rx
#MESSAGE_SRC= ${.CURDIR}/MESSAGE.gsu
#MESSAGE_SUBST+= OPSYS=${OPSYS:Q}
#.endif

485
sysutils/coreutils/PLIST Normal file
View File

@@ -0,0 +1,485 @@
@comment $NetBSD: PLIST,v 1.16 2012/06/02 09:32:30 cheusov Exp $
bin/g[
bin/gbase64
bin/gbasename
bin/gcat
bin/gchcon
bin/gchgrp
bin/gchmod
bin/gchown
bin/gchroot
bin/gcksum
bin/gcomm
bin/gcp
bin/gcsplit
bin/gcut
bin/gdate
bin/gdd
bin/gdf
bin/gdir
bin/gdircolors
bin/gdirname
bin/gdu
bin/gecho
bin/genv
bin/gexpand
bin/gexpr
bin/gfactor
bin/gfalse
bin/gfmt
bin/gfold
bin/ggroups
bin/ghead
${PLIST.hostid}bin/ghostid
bin/gid
bin/ginstall
bin/gjoin
bin/gkill
bin/glink
bin/gln
bin/glogname
bin/gls
bin/gmd5sum
bin/gmkdir
bin/gmkfifo
bin/gmknod
bin/gmktemp
bin/gmv
bin/gnice
bin/gnl
bin/gnohup
bin/gnproc
bin/god
bin/gpaste
bin/gpathchk
bin/gpinky
bin/gpr
bin/gprintenv
bin/gprintf
bin/gptx
bin/gpwd
bin/greadlink
bin/grm
bin/grmdir
bin/gruncon
bin/gseq
bin/gsha1sum
bin/gsha224sum
bin/gsha256sum
bin/gsha384sum
bin/gsha512sum
bin/gshred
bin/gshuf
bin/gsleep
bin/gsort
bin/gsplit
bin/gstat
${PLIST.stdbuf}bin/gstdbuf
bin/gstty
bin/gsum
bin/gsync
bin/gtac
bin/gtail
bin/gtee
bin/gtest
bin/gtimeout
bin/gtouch
bin/gtr
bin/gtrue
bin/gtruncate
bin/gtsort
bin/gtty
bin/guname
bin/gunexpand
bin/guniq
bin/gunlink
bin/guptime
bin/gusers
bin/gvdir
bin/gwc
bin/gwho
bin/gwhoami
bin/gyes
gnu/bin/[
gnu/bin/base64
gnu/bin/basename
gnu/bin/cat
gnu/bin/chcon
gnu/bin/chgrp
gnu/bin/chmod
gnu/bin/chown
gnu/bin/chroot
gnu/bin/cksum
gnu/bin/comm
gnu/bin/cp
gnu/bin/csplit
gnu/bin/cut
gnu/bin/date
gnu/bin/dd
gnu/bin/df
gnu/bin/dir
gnu/bin/dircolors
gnu/bin/dirname
gnu/bin/du
gnu/bin/echo
gnu/bin/env
gnu/bin/expand
gnu/bin/expr
gnu/bin/factor
gnu/bin/false
gnu/bin/fmt
gnu/bin/fold
gnu/bin/groups
gnu/bin/head
${PLIST.hostid}gnu/bin/hostid
gnu/bin/id
gnu/bin/install
gnu/bin/join
gnu/bin/kill
gnu/bin/link
gnu/bin/ln
gnu/bin/logname
gnu/bin/ls
gnu/bin/md5sum
gnu/bin/mkdir
gnu/bin/mkfifo
gnu/bin/mknod
gnu/bin/mktemp
gnu/bin/mv
gnu/bin/nice
gnu/bin/nl
gnu/bin/nohup
gnu/bin/nproc
gnu/bin/od
gnu/bin/paste
gnu/bin/pathchk
gnu/bin/pinky
gnu/bin/pr
gnu/bin/printenv
gnu/bin/printf
gnu/bin/ptx
gnu/bin/pwd
gnu/bin/readlink
gnu/bin/rm
gnu/bin/rmdir
gnu/bin/runcon
gnu/bin/seq
gnu/bin/sha1sum
gnu/bin/sha224sum
gnu/bin/sha256sum
gnu/bin/sha384sum
gnu/bin/sha512sum
gnu/bin/shred
gnu/bin/shuf
gnu/bin/sleep
gnu/bin/sort
gnu/bin/split
gnu/bin/stat
${PLIST.stdbuf}gnu/bin/stdbuf
gnu/bin/stty
gnu/bin/sum
gnu/bin/sync
gnu/bin/tac
gnu/bin/tail
gnu/bin/tee
gnu/bin/test
gnu/bin/timeout
gnu/bin/touch
gnu/bin/tr
gnu/bin/true
gnu/bin/truncate
gnu/bin/tsort
gnu/bin/tty
gnu/bin/uname
gnu/bin/unexpand
gnu/bin/uniq
gnu/bin/unlink
gnu/bin/uptime
gnu/bin/users
gnu/bin/vdir
gnu/bin/wc
gnu/bin/who
gnu/bin/whoami
gnu/bin/yes
gnu/man/man1/base64.1
gnu/man/man1/basename.1
gnu/man/man1/cat.1
gnu/man/man1/chcon.1
gnu/man/man1/chgrp.1
gnu/man/man1/chmod.1
gnu/man/man1/chown.1
gnu/man/man1/chroot.1
gnu/man/man1/cksum.1
gnu/man/man1/comm.1
gnu/man/man1/cp.1
gnu/man/man1/csplit.1
gnu/man/man1/cut.1
gnu/man/man1/date.1
gnu/man/man1/dd.1
gnu/man/man1/df.1
gnu/man/man1/dir.1
gnu/man/man1/dircolors.1
gnu/man/man1/dirname.1
gnu/man/man1/du.1
gnu/man/man1/echo.1
gnu/man/man1/env.1
gnu/man/man1/expand.1
gnu/man/man1/expr.1
gnu/man/man1/factor.1
gnu/man/man1/false.1
gnu/man/man1/fmt.1
gnu/man/man1/fold.1
gnu/man/man1/groups.1
gnu/man/man1/head.1
gnu/man/man1/hostid.1
gnu/man/man1/id.1
gnu/man/man1/install.1
gnu/man/man1/join.1
gnu/man/man1/kill.1
gnu/man/man1/link.1
gnu/man/man1/ln.1
gnu/man/man1/logname.1
gnu/man/man1/ls.1
gnu/man/man1/md5sum.1
gnu/man/man1/mkdir.1
gnu/man/man1/mkfifo.1
gnu/man/man1/mknod.1
gnu/man/man1/mktemp.1
gnu/man/man1/mv.1
gnu/man/man1/nice.1
gnu/man/man1/nl.1
gnu/man/man1/nohup.1
gnu/man/man1/nproc.1
gnu/man/man1/od.1
gnu/man/man1/paste.1
gnu/man/man1/pathchk.1
gnu/man/man1/pinky.1
gnu/man/man1/pr.1
gnu/man/man1/printenv.1
gnu/man/man1/printf.1
gnu/man/man1/ptx.1
gnu/man/man1/pwd.1
gnu/man/man1/readlink.1
gnu/man/man1/rm.1
gnu/man/man1/rmdir.1
gnu/man/man1/runcon.1
gnu/man/man1/seq.1
gnu/man/man1/sha1sum.1
gnu/man/man1/sha224sum.1
gnu/man/man1/sha256sum.1
gnu/man/man1/sha384sum.1
gnu/man/man1/sha512sum.1
gnu/man/man1/shred.1
gnu/man/man1/shuf.1
gnu/man/man1/sleep.1
gnu/man/man1/sort.1
gnu/man/man1/split.1
gnu/man/man1/stat.1
${PLIST.stdbuf}gnu/man/man1/stdbuf.1
gnu/man/man1/stty.1
gnu/man/man1/sum.1
gnu/man/man1/sync.1
gnu/man/man1/tac.1
gnu/man/man1/tail.1
gnu/man/man1/tee.1
gnu/man/man1/test.1
gnu/man/man1/timeout.1
gnu/man/man1/touch.1
gnu/man/man1/tr.1
gnu/man/man1/true.1
gnu/man/man1/truncate.1
gnu/man/man1/tsort.1
gnu/man/man1/tty.1
gnu/man/man1/uname.1
gnu/man/man1/unexpand.1
gnu/man/man1/uniq.1
gnu/man/man1/unlink.1
gnu/man/man1/uptime.1
gnu/man/man1/users.1
gnu/man/man1/vdir.1
gnu/man/man1/wc.1
gnu/man/man1/who.1
gnu/man/man1/whoami.1
gnu/man/man1/yes.1
info/coreutils.info
${PLIST.stdbuf}libexec/coreutils/glibstdbuf.so
man/man1/gbase64.1
man/man1/gbasename.1
man/man1/gcat.1
man/man1/gchcon.1
man/man1/gchgrp.1
man/man1/gchmod.1
man/man1/gchown.1
man/man1/gchroot.1
man/man1/gcksum.1
man/man1/gcomm.1
man/man1/gcp.1
man/man1/gcsplit.1
man/man1/gcut.1
man/man1/gdate.1
man/man1/gdd.1
man/man1/gdf.1
man/man1/gdir.1
man/man1/gdircolors.1
man/man1/gdirname.1
man/man1/gdu.1
man/man1/gecho.1
man/man1/genv.1
man/man1/gexpand.1
man/man1/gexpr.1
man/man1/gfactor.1
man/man1/gfalse.1
man/man1/gfmt.1
man/man1/gfold.1
man/man1/ggroups.1
man/man1/ghead.1
man/man1/ghostid.1
man/man1/gid.1
man/man1/ginstall.1
man/man1/gjoin.1
man/man1/gkill.1
man/man1/glink.1
man/man1/gln.1
man/man1/glogname.1
man/man1/gls.1
man/man1/gmd5sum.1
man/man1/gmkdir.1
man/man1/gmkfifo.1
man/man1/gmknod.1
man/man1/gmktemp.1
man/man1/gmv.1
man/man1/gnice.1
man/man1/gnl.1
man/man1/gnohup.1
man/man1/gnproc.1
man/man1/god.1
man/man1/gpaste.1
man/man1/gpathchk.1
man/man1/gpinky.1
man/man1/gpr.1
man/man1/gprintenv.1
man/man1/gprintf.1
man/man1/gptx.1
man/man1/gpwd.1
man/man1/greadlink.1
man/man1/grm.1
man/man1/grmdir.1
man/man1/gruncon.1
man/man1/gseq.1
man/man1/gsha1sum.1
man/man1/gsha224sum.1
man/man1/gsha256sum.1
man/man1/gsha384sum.1
man/man1/gsha512sum.1
man/man1/gshred.1
man/man1/gshuf.1
man/man1/gsleep.1
man/man1/gsort.1
man/man1/gsplit.1
man/man1/gstat.1
${PLIST.stdbuf}man/man1/gstdbuf.1
man/man1/gstty.1
man/man1/gsum.1
man/man1/gsync.1
man/man1/gtac.1
man/man1/gtail.1
man/man1/gtee.1
man/man1/gtest.1
man/man1/gtimeout.1
man/man1/gtouch.1
man/man1/gtr.1
man/man1/gtrue.1
man/man1/gtruncate.1
man/man1/gtsort.1
man/man1/gtty.1
man/man1/guname.1
man/man1/gunexpand.1
man/man1/guniq.1
man/man1/gunlink.1
man/man1/guptime.1
man/man1/gusers.1
man/man1/gvdir.1
man/man1/gwc.1
man/man1/gwho.1
man/man1/gwhoami.1
man/man1/gyes.1
share/locale/af/LC_MESSAGES/coreutils.mo
share/locale/be/LC_MESSAGES/coreutils.mo
share/locale/bg/LC_MESSAGES/coreutils.mo
share/locale/ca/LC_MESSAGES/coreutils.mo
share/locale/cs/LC_MESSAGES/coreutils.mo
share/locale/da/LC_MESSAGES/coreutils.mo
share/locale/de/LC_MESSAGES/coreutils.mo
share/locale/el/LC_MESSAGES/coreutils.mo
share/locale/eo/LC_MESSAGES/coreutils.mo
share/locale/es/LC_MESSAGES/coreutils.mo
share/locale/et/LC_MESSAGES/coreutils.mo
share/locale/eu/LC_MESSAGES/coreutils.mo
share/locale/fi/LC_MESSAGES/coreutils.mo
share/locale/fr/LC_MESSAGES/coreutils.mo
share/locale/ga/LC_MESSAGES/coreutils.mo
share/locale/gl/LC_MESSAGES/coreutils.mo
share/locale/hu/LC_MESSAGES/coreutils.mo
share/locale/id/LC_MESSAGES/coreutils.mo
share/locale/it/LC_MESSAGES/coreutils.mo
share/locale/ja/LC_MESSAGES/coreutils.mo
share/locale/kk/LC_MESSAGES/coreutils.mo
share/locale/ko/LC_MESSAGES/coreutils.mo
share/locale/lg/LC_MESSAGES/coreutils.mo
share/locale/lt/LC_MESSAGES/coreutils.mo
share/locale/ms/LC_MESSAGES/coreutils.mo
share/locale/nb/LC_MESSAGES/coreutils.mo
share/locale/nl/LC_MESSAGES/coreutils.mo
share/locale/pl/LC_MESSAGES/coreutils.mo
share/locale/pt/LC_MESSAGES/coreutils.mo
share/locale/pt_BR/LC_MESSAGES/coreutils.mo
share/locale/ro/LC_MESSAGES/coreutils.mo
share/locale/ru/LC_MESSAGES/coreutils.mo
share/locale/sk/LC_MESSAGES/coreutils.mo
share/locale/sl/LC_MESSAGES/coreutils.mo
share/locale/sv/LC_MESSAGES/coreutils.mo
share/locale/tr/LC_MESSAGES/coreutils.mo
share/locale/uk/LC_MESSAGES/coreutils.mo
share/locale/vi/LC_MESSAGES/coreutils.mo
share/locale/zh_CN/LC_MESSAGES/coreutils.mo
share/locale/zh_TW/LC_MESSAGES/coreutils.mo
share/locale/af/LC_TIME/coreutils.mo
share/locale/be/LC_TIME/coreutils.mo
share/locale/bg/LC_TIME/coreutils.mo
share/locale/ca/LC_TIME/coreutils.mo
share/locale/cs/LC_TIME/coreutils.mo
share/locale/da/LC_TIME/coreutils.mo
share/locale/de/LC_TIME/coreutils.mo
share/locale/el/LC_TIME/coreutils.mo
share/locale/eo/LC_TIME/coreutils.mo
share/locale/es/LC_TIME/coreutils.mo
share/locale/et/LC_TIME/coreutils.mo
share/locale/eu/LC_TIME/coreutils.mo
share/locale/fi/LC_TIME/coreutils.mo
share/locale/fr/LC_TIME/coreutils.mo
share/locale/ga/LC_TIME/coreutils.mo
share/locale/gl/LC_TIME/coreutils.mo
share/locale/hu/LC_TIME/coreutils.mo
share/locale/id/LC_TIME/coreutils.mo
share/locale/it/LC_TIME/coreutils.mo
share/locale/ja/LC_TIME/coreutils.mo
share/locale/kk/LC_TIME/coreutils.mo
share/locale/ko/LC_TIME/coreutils.mo
share/locale/lg/LC_TIME/coreutils.mo
share/locale/lt/LC_TIME/coreutils.mo
share/locale/ms/LC_TIME/coreutils.mo
share/locale/nb/LC_TIME/coreutils.mo
share/locale/nl/LC_TIME/coreutils.mo
share/locale/pl/LC_TIME/coreutils.mo
share/locale/pt/LC_TIME/coreutils.mo
share/locale/pt_BR/LC_TIME/coreutils.mo
share/locale/ro/LC_TIME/coreutils.mo
share/locale/ru/LC_TIME/coreutils.mo
share/locale/sk/LC_TIME/coreutils.mo
share/locale/sl/LC_TIME/coreutils.mo
share/locale/sv/LC_TIME/coreutils.mo
share/locale/tr/LC_TIME/coreutils.mo
share/locale/uk/LC_TIME/coreutils.mo
share/locale/vi/LC_TIME/coreutils.mo
share/locale/zh_CN/LC_TIME/coreutils.mo
share/locale/zh_TW/LC_TIME/coreutils.mo

View File

@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.23 2013/04/30 22:28:22 joerg Exp $
SHA1 (coreutils-8.13.tar.gz) = 83b7e25661c439ecac55e99ff0dd816b9ff478a5
RMD160 (coreutils-8.13.tar.gz) = fb24a15641581ba57482f4c1c1ecfc32752dbd9d
Size (coreutils-8.13.tar.gz) = 11660808 bytes
SHA1 (patch-configure) = bfe96fde14c73b2836f539cc2e9dad3a77b05c4b
SHA1 (patch-lib-fflush.c) = e52e0da2127c5debbb14e967b1e206226efdaa4a
SHA1 (patch-lib-fseeko.c) = ab62b8c7faa9a601191475c040c7466e1bd52fe1

View File

@@ -0,0 +1,73 @@
$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

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-lib-fflush.c,v 1.1 2012/03/06 23:38:04 joerg Exp $
--- lib/fflush.c.orig 2011-08-19 16:09:37.000000000 +0000
+++ lib/fflush.c
@@ -91,7 +91,7 @@ static inline void
update_fpos_cache (FILE *fp, off_t pos)
{
#if defined __sferror || defined __DragonFly__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, MacOS X, Cygwin */
-# if defined __CYGWIN__
+# if defined(__CYGWIN__) || defined(__NetBSD__)
/* fp_->_offset is typed as an integer. */
fp_->_offset = pos;
# else

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-lib-fseeko.c,v 1.1 2012/03/06 23:38:04 joerg Exp $
--- lib/fseeko.c.orig 2011-08-12 08:05:46.000000000 +0000
+++ lib/fseeko.c
@@ -111,7 +111,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 */
-# if defined __CYGWIN__
+# if defined(__CYGWIN__) || defined(__NetBSD__)
/* fp_->_offset is typed as an integer. */
fp_->_offset = pos;
# else