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
+39
View File
@@ -0,0 +1,39 @@
$NetBSD: patch-Makefile,v 1.1 2013/04/02 15:27:12 dholland Exp $
- honor pkgsrc's DESTDIR and PREFIX
- honor PKGMANDIR
- don't use non-portable install -v
--- Makefile.orig 2011-11-25 05:39:36.000000000 +0000
+++ Makefile
@@ -29,11 +29,12 @@ ifeq ($(HAVE_GCC_DEP),yes)
BASIC_CFLAGS += -Wp,-MD,$(@D)/.$(@F).d
endif
-DESTDIR=
-PREFIX=$(HOME)
+DESTDIR?=
+PREFIX?=$(HOME)
+PKGMANDIR?=share/man
BINDIR=$(PREFIX)/bin
LIBDIR=$(PREFIX)/lib
-MANDIR=$(PREFIX)/share/man
+MANDIR=$(PREFIX)/$(PKGMANDIR)
MAN1DIR=$(MANDIR)/man1
INCLUDEDIR=$(PREFIX)/include
PKGCONFIGDIR=$(LIBDIR)/pkgconfig
@@ -97,12 +98,12 @@ QUIET_INST_SH = $(Q:@=echo -n ' INS
QUIET_INST = $(Q:@=@echo -n ' INSTALL ';)
define INSTALL_EXEC
- $(QUIET_INST)install -v $1 $(DESTDIR)$2/$1 || exit 1;
+ $(QUIET_INST)install $1 $(DESTDIR)$2/$1 || exit 1;
endef
define INSTALL_FILE
- $(QUIET_INST)install -v -m 644 $1 $(DESTDIR)$2/$1 || exit 1;
+ $(QUIET_INST)install -m 644 $1 $(DESTDIR)$2/$1 || exit 1;
endef
+21
View File
@@ -0,0 +1,21 @@
$NetBSD: patch-ab,v 1.2 2013/04/02 15:27:12 dholland Exp $
(Very?) old dfly apparently doesn't have strtold.
--- compat/strtold.c.orig 2007-06-12 14:35:09.000000000 +0000
+++ compat/strtold.c
@@ -1,6 +1,14 @@
+#if defined(__DragonFly__)
+#include <sys/param.h>
+#endif
+
#include <stdlib.h>
long double string_to_ld(const char *nptr, char **endptr)
{
+#if defined(__DragonFly__) && __DragonFly_version < 200000
+ return strtod(nptr, endptr);
+#else
return strtold(nptr, endptr);
+#endif
}
+30
View File
@@ -0,0 +1,30 @@
$NetBSD: patch-dissect.h,v 1.1 2013/03/31 00:04:50 dholland Exp $
Replace questionable construction that clang objects to with a
slightly less questionable version that is hopefully equivalent.
--- dissect.h~ 2007-05-01 18:30:58.000000000 +0000
+++ dissect.h
@@ -27,13 +27,16 @@ struct reporter
extern void dissect(struct symbol_list *, struct reporter *);
#define MK_IDENT(s) ({ \
- static struct { \
+ static union { \
struct ident ident; \
- char __[sizeof(s)]; \
- } ident = {{ \
- .len = sizeof(s)-1, \
- .name = s, \
- }}; \
+ struct { \
+ char id[sizeof(struct ident)]; \
+ char name[sizeof(s)]; \
+ } named; \
+ } ident = { \
+ .ident.len = sizeof(s)-1, \
+ .named.name = s, \
+ }; \
&ident.ident; \
})