Import of pkgsrc-2014Q1

This commit is contained in:
2014-04-17 16:38:45 +02:00
parent 785076ae39
commit 9a8c06dafb
19365 changed files with 828089 additions and 278039 deletions

View File

@@ -1,7 +1,6 @@
# $NetBSD: Makefile,v 1.53 2013/05/31 12:39:57 wiz Exp $
# $NetBSD: Makefile,v 1.57 2014/01/26 03:49:01 ryoon Exp $
DISTNAME= binutils-2.23.2
PKGREVISION= 1
DISTNAME= binutils-2.24
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU:=binutils/}
@@ -15,12 +14,22 @@ CONFLICTS= avr-binutils<2.13.2.1nb1
NOT_FOR_PLATFORM= Darwin-*-* Interix-*-*
MAKE_JOBS_SAFE= no
USE_PKGLOCALEDIR= yes
REPLACE_LOCALEDIR_PATTERNS+= Make-in
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
# PR pkg/48504, ksh is sufficient for NetBSD 5.2 and NetBSD 6.1
.include "../../mk/bsd.prefs.mk"
.if !empty(MACHINE_PLATFORM:MNetBSD-[5-6].*-*) && \
empty(MACHINE_PLATFORM:MNetBSD-6.99.*-*)
USE_TOOLS+= ksh
CONFIG_SHELL= ksh
.endif
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-lib-path='/lib:/usr/lib'
CONFIGURE_ARGS+= --program-prefix=g
@@ -49,11 +58,13 @@ PLIST.ld= yes
EXTRA_FILES+= ld
.endif
CFLAGS.OpenBSD+= -Wno-bounded
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang)
CFLAGS+= -Wno-unused-value -Wno-format-security \
-Wno-uninitialized -Wno-format -Wno-string-plus-int \
-Wno-empty-body -Wno-self-assign
-Wno-empty-body -Wno-self-assign -Wno-unused-function
.endif
# Prevent the need to run texi2pod.pl and pod2man which would

View File

@@ -1,4 +1,4 @@
@comment $NetBSD: PLIST.common,v 1.21 2013/04/12 08:27:15 mef Exp $
@comment $NetBSD: PLIST.common,v 1.22 2014/01/06 14:58:41 wiz Exp $
${MACHINE_GNU_PLATFORM}/bin/ar
${MACHINE_GNU_PLATFORM}/bin/as
${MACHINE_GNU_PLATFORM}/bin/ld
@@ -71,7 +71,6 @@ info/binutils.info
${PLIST.gprof}info/gprof.info
info/ld.info
lib/libbfd.la
lib/libiberty.a
lib/libopcodes.la
man/man1/gaddr2line.1
man/man1/gar.1
@@ -124,6 +123,7 @@ share/locale/fr/LC_MESSAGES/opcodes.mo
${PLIST.gprof}share/locale/ga/LC_MESSAGES/gprof.mo
share/locale/ga/LC_MESSAGES/ld.mo
share/locale/ga/LC_MESSAGES/opcodes.mo
share/locale/hr/LC_MESSAGES/binutils.mo
${PLIST.gprof}share/locale/id/LC_MESSAGES/gprof.mo
share/locale/id/LC_MESSAGES/bfd.mo
share/locale/id/LC_MESSAGES/binutils.mo

View File

@@ -1,8 +1,15 @@
$NetBSD: distinfo,v 1.12 2013/04/08 06:03:03 mef Exp $
$NetBSD: distinfo,v 1.15 2014/01/26 03:49:01 ryoon Exp $
SHA1 (binutils-2.23.2.tar.bz2) = 042c51073205ebaf88c272d6168f9deb71984b56
RMD160 (binutils-2.23.2.tar.bz2) = 9788e2a8c4a7c74360919347c3bc72040e87b898
Size (binutils-2.23.2.tar.bz2) = 21440347 bytes
SHA1 (binutils-2.24.tar.bz2) = 7ac75404ddb3c4910c7594b51ddfc76d4693debb
RMD160 (binutils-2.24.tar.bz2) = b4aa3ea5ba9d0d9f817b2cf136e7f911f692af8d
Size (binutils-2.24.tar.bz2) = 22716802 bytes
SHA1 (patch-aa) = 1a127f82c807cbd1ac6fee073c618f3fb48667f6
SHA1 (patch-bfd_cache.c) = 14848eb2bfafb0eddd3328bded305131dec42488
SHA1 (patch-configure.ac) = 7bd7b90e57d850705286f2cc6464ecc45e0657c0
SHA1 (patch-libiberty_Makefile.in) = 380a24a9b6b583002a7cf7b2490e3373e50c6282
SHA1 (patch-gas_config_tc-i386.c) = 16b04ee6c3c46db375c883b4338bf5d796174458
SHA1 (patch-ld_Makefile.am) = 908d0e0e366d08929d27416a3361e1869abd0076
SHA1 (patch-ld_Makefile.in) = 68eba0b8a12211915a1eb99770011090f5c21ff2
SHA1 (patch-ld_configure.tgt) = 7809d739e9a681c0ebe3d60f30dc759accdff6b9
SHA1 (patch-ld_emulparams_elf__i386__obsd.sh) = 09857049f8681c5c94f98185d9dce1bcc02a45b6
SHA1 (patch-ld_emulparams_elf__x86__64__obsd.sh) = 4b06302b989520d3b162dea141b0a4dcaf8c56f0
SHA1 (patch-libiberty_Makefile.in) = fd07f4fafe6c25e9ab65c65ec3807c89bfd9f0b5

View File

@@ -1,4 +1,4 @@
# $NetBSD: override-as.mk,v 1.6 2012/11/21 10:53:53 jperkin Exp $
# $NetBSD: override-as.mk,v 1.7 2013/08/15 06:48:50 richard Exp $
# This Makefile fragment can be included by packages that wish to
# override the default selection of as(1) and use the one from devel/binutils
@@ -18,7 +18,7 @@ ${SPECS_AS}:
@${ECHO} "%{!S:-o %|.s |" >> ${SPECS_AS}
@${ECHO} "${PKG_AS} %(asm_options) %m.s %A }" >> ${SPECS_AS}
_WRAP_EXTRA_ARGS.CC+= -specs ${SPECS_AS}
_WRAP_EXTRA_ARGS.CXX+= -specs ${SPECS_AS}
_WRAP_EXTRA_ARGS.CC+= -specs=${SPECS_AS}
_WRAP_EXTRA_ARGS.CXX+= -specs=${SPECS_AS}
.endif

View File

@@ -0,0 +1,18 @@
$NetBSD: patch-bfd_cache.c,v 1.1 2014/01/08 21:04:15 jperkin Exp $
Fix sign-compare on SunOS.
--- bfd/cache.c.orig 2013-11-04 15:33:37.000000000 +0000
+++ bfd/cache.c
@@ -82,7 +82,11 @@ bfd_cache_max_open (void)
#ifdef HAVE_GETRLIMIT
struct rlimit rlim;
if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
+#ifdef __sun
+ && rlim.rlim_cur != (rlim_t)RLIM_INFINITY)
+#else
&& rlim.rlim_cur != RLIM_INFINITY)
+#endif
max = rlim.rlim_cur / 8;
else
#endif /* HAVE_GETRLIMIT */

View File

@@ -0,0 +1,18 @@
$NetBSD: patch-gas_config_tc-i386.c,v 1.1 2014/01/06 14:58:41 wiz Exp $
Comment out unused variables (-Wno-unused complains about them,
and with -Werror build fails).
--- gas/config/tc-i386.c.orig 2013-11-26 11:37:33.000000000 +0000
+++ gas/config/tc-i386.c
@@ -1665,8 +1665,8 @@ static const i386_operand_type imm16_32
static const i386_operand_type imm16_32s = OPERAND_TYPE_IMM16_32S;
static const i386_operand_type imm16_32_32s = OPERAND_TYPE_IMM16_32_32S;
static const i386_operand_type vec_imm4 = OPERAND_TYPE_VEC_IMM4;
-static const i386_operand_type regbnd = OPERAND_TYPE_REGBND;
-static const i386_operand_type vec_disp8 = OPERAND_TYPE_VEC_DISP8;
+//static const i386_operand_type regbnd = OPERAND_TYPE_REGBND;
+//static const i386_operand_type vec_disp8 = OPERAND_TYPE_VEC_DISP8;
enum operand_type
{

View File

@@ -0,0 +1,42 @@
$NetBSD: patch-ld_Makefile.am,v 1.1 2014/01/26 03:49:01 ryoon Exp $
--- ld/Makefile.am.orig 2013-11-26 11:37:33.000000000 +0000
+++ ld/Makefile.am
@@ -268,6 +268,7 @@ ALL_EMULATION_SOURCES = \
eelf_i386_fbsd.c \
eelf_i386_ldso.c \
eelf_i386_nacl.c \
+ eelf_i386_obsd.c \
eelf_i386_sol2.c \
eelf_i386_vxworks.c \
eelf_s390.c \
@@ -525,6 +526,7 @@ ALL_64_EMULATION_SOURCES = \
eelf_x86_64.c \
eelf_x86_64_fbsd.c \
eelf_x86_64_nacl.c \
+ eelf_x86_64_obsd.c \
eelf_x86_64_sol2.c \
ehppa64linux.c \
emmo.c \
@@ -1268,6 +1270,10 @@ eelf32xtensa.c: $(srcdir)/emulparams/elf
eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf_i386 "$(tdir_elf_i386)"
+eelf_x86_64_obsd.c: $(srcdir)/emulparams/elf_x86_64_obsd.sh \
+ $(srcdir)/emulparams/elf_x86_64.sh \
+ $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+ ${GENSCRIPTS} elf_x86_64_obsd "$(tdir_elf_x86_64_obsd)"
eelf_i386_be.c: $(srcdir)/emulparams/elf_i386_be.sh \
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf_i386_be "$(tdir_elf_i386_be)"
@@ -1291,6 +1297,10 @@ eelf_i386_sol2.c: $(srcdir)/emulparams/e
$(srcdir)/emultempl/solaris2.em \
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf_i386_sol2 "$(tdir_elf_i386_sol2)"
+eelf_i386_obsd.c: $(srcdir)/emulparams/elf_i386_obsd.sh \
+ $(srcdir)/emulparams/elf_i386.sh \
+ $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+ ${GENSCRIPTS} elf_i386_obsd "$(tdir_elf_i386_obsd)"
eelf_i386_vxworks.c: $(srcdir)/emulparams/elf_i386_vxworks.sh \
$(srcdir)/emulparams/vxworks.sh $(srcdir)/emultempl/vxworks.em \
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}

View File

@@ -0,0 +1,58 @@
$NetBSD: patch-ld_Makefile.in,v 1.1 2014/01/26 03:49:01 ryoon Exp $
--- ld/Makefile.in.orig 2013-11-26 11:37:33.000000000 +0000
+++ ld/Makefile.in
@@ -576,6 +576,7 @@ ALL_EMULATION_SOURCES = \
eelf_i386_fbsd.c \
eelf_i386_ldso.c \
eelf_i386_nacl.c \
+ eelf_i386_obsd.c \
eelf_i386_sol2.c \
eelf_i386_vxworks.c \
eelf_s390.c \
@@ -832,6 +833,7 @@ ALL_64_EMULATION_SOURCES = \
eelf_x86_64.c \
eelf_x86_64_fbsd.c \
eelf_x86_64_nacl.c \
+ eelf_x86_64_obsd.c \
eelf_x86_64_sol2.c \
ehppa64linux.c \
emmo.c \
@@ -1260,6 +1262,7 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_i386_fbsd.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_i386_ldso.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_i386_nacl.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_i386_obsd.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_i386_sol2.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_i386_vxworks.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_k1om.Po@am__quote@
@@ -1270,6 +1273,7 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_x86_64.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_x86_64_fbsd.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_x86_64_nacl.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_x86_64_obsd.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_x86_64_sol2.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/egld960.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/egld960coff.Po@am__quote@
@@ -2752,6 +2756,10 @@ eelf32xtensa.c: $(srcdir)/emulparams/elf
eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf_i386 "$(tdir_elf_i386)"
+eelf_x86_64_obsd.c: $(srcdir)/emulparams/elf_x86_64_obsd.sh \
+ $(srcdir)/emulparams/elf_x86_64.sh \
+ $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+ ${GENSCRIPTS} elf_x86_64_obsd "$(tdir_elf_x86_64_obsd)"
eelf_i386_be.c: $(srcdir)/emulparams/elf_i386_be.sh \
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf_i386_be "$(tdir_elf_i386_be)"
@@ -2775,6 +2783,10 @@ eelf_i386_sol2.c: $(srcdir)/emulparams/e
$(srcdir)/emultempl/solaris2.em \
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf_i386_sol2 "$(tdir_elf_i386_sol2)"
+eelf_i386_obsd.c: $(srcdir)/emulparams/elf_i386_obsd.sh \
+ $(srcdir)/emulparams/elf_i386.sh \
+ $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+ ${GENSCRIPTS} elf_i386_obsd "$(tdir_elf_i386_obsd)"
eelf_i386_vxworks.c: $(srcdir)/emulparams/elf_i386_vxworks.sh \
$(srcdir)/emulparams/vxworks.sh $(srcdir)/emultempl/vxworks.em \
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}

View File

@@ -0,0 +1,17 @@
$NetBSD: patch-ld_configure.tgt,v 1.1 2014/01/26 03:49:01 ryoon Exp $
--- ld/configure.tgt.orig 2013-11-26 11:37:33.000000000 +0000
+++ ld/configure.tgt
@@ -268,6 +268,12 @@ i[3-7]86-*-netbsdpe*) targ_emul=i386pe
targ_extra_ofiles="deffilep.o pe-dll.o" ;;
i[3-7]86-*-netbsd*) targ_emul=i386nbsd
targ_extra_emuls=elf_i386 ;;
+i[3-7]86-*-openbsd*) targ_emul=elf_i386_obsd ;;
+x86_64-*-openbsd*) targ_emul=elf_x86_64_obsd
+ targ_extra_emuls="elf_i386_obsd elf_i386"
+ tdir_elf_i386_obsd=`echo ${targ_alias} | \
+ sed -e 's/x86_64/i386/'`
+ ;;
x86_64-*-netbsd*) targ_emul=elf_x86_64
targ_extra_emuls="elf_i386 i386nbsd elf_l1om elf_k1om"
tdir_elf_i386=`echo ${targ_alias} | \

View File

@@ -0,0 +1,29 @@
$NetBSD: patch-ld_emulparams_elf__i386__obsd.sh,v 1.1 2014/01/26 03:49:01 ryoon Exp $
--- ld/emulparams/elf_i386_obsd.sh.orig 2014-01-26 00:08:31.000000000 +0000
+++ ld/emulparams/elf_i386_obsd.sh
@@ -0,0 +1,24 @@
+. ${srcdir}/emulparams/elf_i386.sh
+. ${srcdir}/emulparams/elf_obsd.sh
+
+if test "${LD_FLAG#"${LD_FLAG%pie}"}" = "pie"; then
+ TEXT_START_ADDR=0x0
+ if test "${LD_FLAG%%(cpie|pie)}" = "Z"; then
+ RODATA_PADSIZE=${MAXPAGESIZE}
+ else
+ RODATA_PADSIZE=0x20000000
+ fi
+else
+ if test "${LD_FLAG%%(cpie|pie)}" = "Z"; then
+ TEXT_START_ADDR=0x08048000
+ RODATA_PADSIZE=${MAXPAGESIZE}
+ else
+ TEXT_START_ADDR=0x1C000000
+ RODATA_PADSIZE=0x20000000
+ fi
+fi
+
+RODATA_ALIGN=". = ALIGN(${RODATA_PADSIZE})"
+RODATA_ALIGN_ADD="${TEXT_START_ADDR}"
+
+unset PAD_PLT

View File

@@ -0,0 +1,7 @@
$NetBSD: patch-ld_emulparams_elf__x86__64__obsd.sh,v 1.1 2014/01/26 03:49:01 ryoon Exp $
--- ld/emulparams/elf_x86_64_obsd.sh.orig 2014-01-26 00:08:31.000000000 +0000
+++ ld/emulparams/elf_x86_64_obsd.sh
@@ -0,0 +1,2 @@
+. ${srcdir}/emulparams/elf_x86_64.sh
+. ${srcdir}/emulparams/elf_obsd.sh

View File

@@ -1,14 +1,14 @@
$NetBSD: patch-libiberty_Makefile.in,v 1.1 2012/07/23 12:24:34 jperkin Exp $
$NetBSD: patch-libiberty_Makefile.in,v 1.2 2014/01/06 14:58:41 wiz Exp $
Disable multilib.
--- libiberty/Makefile.in.orig 2011-07-22 14:37:58.000000000 +0000
--- libiberty/Makefile.in.orig 2013-11-04 15:33:40.000000000 +0000
+++ libiberty/Makefile.in
@@ -350,7 +350,6 @@ install-strip: install
@@ -353,7 +353,6 @@ install-strip: install
# multilib-specific flags, it's overridden by FLAGS_TO_PASS from the
# default multilib, so we have to take CFLAGS into account as well,
# since it will be passed the multilib flags.
-MULTIOSDIR = `$(CC) $(CFLAGS) -print-multi-os-directory`
install_to_libdir: all
${mkinstalldirs} $(DESTDIR)$(libdir)/$(MULTIOSDIR)
$(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)n
if test -n "${target_header_dir}"; then \
${mkinstalldirs} $(DESTDIR)$(libdir)/$(MULTIOSDIR); \