Import of pkgsrc-2015Q1

This commit is contained in:
2016-01-21 23:40:00 +01:00
committed by sambuc
parent 9a8c06dafb
commit 4af1cdf7a9
25114 changed files with 870539 additions and 795424 deletions
+17 -2
View File
@@ -1,8 +1,8 @@
# $NetBSD: Makefile,v 1.13 2013/05/31 12:41:11 wiz Exp $
# $NetBSD: Makefile,v 1.17 2014/09/02 09:41:56 pho Exp $
DISTNAME= gcc-${GCC_VERSION}
PKGNAME= gcc45-${GCC_VERSION}
PKGREVISION= 5
PKGREVISION= 7
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${GCC_VERSION}/}
EXTRACT_SUFX= .tar.bz2
@@ -81,6 +81,21 @@ MAKE_ENV+= ac_cv_func_clock_gettime=yes
.if ${OPSYS} == "Linux"
CONFIGURE_ARGS+= --disable-libquadmath --disable-libquadmath-support
.endif
.if ${OPSYS} == "Darwin"
# See ${WRKSRC}/libgcc/config/t-slibgcc-darwin: It uses strip(1) to
# create a stub library, not just to remove symbols, so we must not
# let strip(1) be a no-op regardless of ${INSTALL_UNSTRIPPED} or the
# build fails for missing files.
CONFIGURE_ARGS+= STRIP_FOR_TARGET=${TOOLS_PLATFORM.strip}
.endif
.if !empty(MACHINE_PLATFORM:MDarwin-[0-8].*-*)
CONFIGURE_ARGS+= --with-dwarf2
.endif
.if !empty(MACHINE_PLATFORM:MDarwin-[0-8].*-powerpc)
CONFIGURE_ARGS+= --disable-multilib
.endif
CONFIGURE_ENV+= CONFIG_SHELL=${CONFIG_SHELL}
+2 -2
View File
@@ -1,4 +1,4 @@
# $NetBSD: buildlink3.mk,v 1.6 2013/04/06 11:06:52 rodent Exp $
# $NetBSD: buildlink3.mk,v 1.7 2014/09/06 08:20:29 jperkin Exp $
BUILDLINK_TREE+= gcc45
@@ -11,7 +11,7 @@ FIND_PREFIX:= BUILDLINK_PREFIX.gcc45=gcc45
_GCC45_SUBDIR= gcc45
_GCC45_PREFIX= ${BUILDLINK_PREFIX.gcc45}/${_GCC45_SUBDIR}
BUILDLINK_API_DEPENDS.gcc45+= gcc45>=${_GCC_REQD}
BUILDLINK_API_DEPENDS.gcc45+= gcc45>=4.5
BUILDLINK_ABI_DEPENDS.gcc45+= gcc45>=4.5.0
BUILDLINK_PKGSRCDIR.gcc45?= ../../lang/gcc45
+4 -3
View File
@@ -1,11 +1,11 @@
$NetBSD: distinfo,v 1.8 2014/03/26 11:07:27 jperkin Exp $
$NetBSD: distinfo,v 1.11 2014/12/06 18:47:01 dholland Exp $
SHA1 (gcc-4.5.3.tar.bz2) = 73c45dfda5eef6b124be53e56828b5925198cc1b
RMD160 (gcc-4.5.3.tar.bz2) = d07aa90f2186b4e082dfd5ad5d5188c097fb6247
Size (gcc-4.5.3.tar.bz2) = 66374586 bytes
SHA1 (patch-aa) = c488dc25e038d97c737c8c72437660598d9e15d3
SHA1 (patch-aa) = b20d2e95229bddba42819780725ab159e14f06f0
SHA1 (patch-ab) = 61bc2ebf150c6e471917e145d74e7795dc162194
SHA1 (patch-ac) = 5e4c05ac8cac376b2c4c33db90d3b309a11cedee
SHA1 (patch-ac) = 7da8c27d521164c1a7801dda8ca62d1057ac8d32
SHA1 (patch-ad) = b72c93d8477a567363616717e20eef1b33e7d307
SHA1 (patch-af) = 54fb9fb3438eb7c646b9d51b6b0cf3ded27d4989
SHA1 (patch-ag) = b58f8b82fcf17c60eb2700bc54d6625ca45e542b
@@ -15,5 +15,6 @@ SHA1 (patch-ak) = 3d8a859ba436a4b204bb99f59cd5331d695aa811
SHA1 (patch-gcc_doc_cppopts.texi) = fba9b651bdef12f9034e75cb43533b50c2c94540
SHA1 (patch-gcc_doc_generic.texi) = b255fb30f889a415318a29c50ac0510ccece0bc4
SHA1 (patch-gcc_doc_invoke.texi) = 7418eddc7e4d39fab3da1922ff86965240661fb4
SHA1 (patch-libgcc_config_t-slibgcc-darwin) = 2ddda2dd979f27c623e47db70c5abb3befdb68c9
SHA1 (patch-libstdc++-v3_config_os_bsd_netbsd_ctype__inline.h) = e328bc56bbb9c3e0a76c8d98a7c0a7b8b8eda22e
SHA1 (patch-libstdc++-v3_config_os_bsd_netbsd_ctype__noninline.h) = 38dd700202d741de1eeee01c44eee6e2e363b9c5
+14 -3
View File
@@ -1,8 +1,8 @@
# $NetBSD: options.mk,v 1.2 2012/04/13 11:10:09 hans Exp $
# $NetBSD: options.mk,v 1.3 2014/05/16 12:01:17 pho Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.gcc45
PKG_SUPPORTED_OPTIONS= nls gcc-inplace-math gcc-c++ gcc-fortran gcc-java gcc-objc #gcc-ada
PKG_SUGGESTED_OPTIONS= gcc-c++ gcc-fortran gcc-objc
PKG_SUPPORTED_OPTIONS= nls gcc-inplace-math gcc-c++ gcc-fortran gcc-java gcc-objc gcc-objc++ #gcc-ada
PKG_SUGGESTED_OPTIONS= gcc-c++ gcc-fortran gcc-objc gcc-objc++
.if ${OPSYS} == "NetBSD"
PKG_SUGGESTED_OPTIONS+= nls
.elif ${OPSYS} == "SunOS"
@@ -84,6 +84,17 @@ MAKE_ENV+= ac_cv_prog_JAR=no
.include "../../lang/python/application.mk"
.endif
.if !empty(PKG_OPTIONS:Mgcc-objc++)
. if empty(PKG_OPTIONS:Mgcc-objc)
PKG_OPTIONS+= gcc-objc
. endif
. if empty(PKG_OPTIONS:Mgcc-c++)
PKG_OPTIONS+= gcc-c++
. endif
LANGS+= obj-c++
.endif
.if !empty(PKG_OPTIONS:Mgcc-c++)
LANGS+= c++
USE_TOOLS+= perl
+16 -3
View File
@@ -1,6 +1,10 @@
$NetBSD: patch-aa,v 1.1.1.1 2011/05/14 20:19:47 wiz Exp $
$NetBSD: patch-aa,v 1.2 2014/12/06 18:47:01 dholland Exp $
--- gcc/config.gcc.orig 2010-10-09 09:35:53.000000000 +0000
- add dfly support
- stdint fixes for netbsd x86
- add svr4.h for netbsd ppc, per PR 49453 from Frank Wille
--- gcc/config.gcc.orig 2011-02-27 01:06:15.000000000 +0000
+++ gcc/config.gcc
@@ -499,6 +499,33 @@ case ${target} in
# need_64bit_hwint=yes # system compiler has this for all arch!
@@ -44,7 +48,7 @@ $NetBSD: patch-aa,v 1.1.1.1 2011/05/14 20:19:47 wiz Exp $
;;
*-*-openbsd*)
tmake_file="t-libc-ok t-openbsd t-libgcc-pic"
@@ -1117,17 +1145,23 @@ x86_64-*-freebsd*)
@@ -1118,17 +1146,23 @@ x86_64-*-freebsd*)
tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/x86-64.h i386/freebsd.h i386/freebsd64.h"
tmake_file="${tmake_file} i386/t-crtstuff"
;;
@@ -71,3 +75,12 @@ $NetBSD: patch-aa,v 1.1.1.1 2011/05/14 20:19:47 wiz Exp $
tmake_file="${tmake_file} i386/t-crtstuff"
;;
i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123])
@@ -1950,7 +1984,7 @@ powerpc*-*-freebsd*)
extra_options="${extra_options} rs6000/sysv4.opt"
;;
powerpc-*-netbsd*)
- tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h"
+ tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h"
tmake_file="${tmake_file} rs6000/t-netbsd"
extra_options="${extra_options} rs6000/sysv4.opt"
;;
+7 -2
View File
@@ -1,4 +1,9 @@
$NetBSD: patch-ac,v 1.1 2011/10/18 17:55:27 hans Exp $
$NetBSD: patch-ac,v 1.2 2014/05/08 02:03:58 pho Exp $
Add gcc libdir to a programs rpath so that _this gcc's_ support
libraries are found. Note that there must not be a whitespace between
$(LINKER_RPATH_FLAG) and the path. Otherwise the flag may be
misinterpreted by linker (e.g. Apple's ld).
--- gcc/Makefile.in.orig 2004-06-17 15:56:58.000000000 -0600
+++ gcc/Makefile.in
@@ -6,7 +11,7 @@ $NetBSD: patch-ac,v 1.1 2011/10/18 17:55:27 hans Exp $
# Language-independent files.
DRIVER_DEFINES = \
+ -DLINK_LIBGCC_SPEC="\"%D $(LINKER_RPATH_FLAG) $(exec_prefix)/lib\"" \
+ -DLINK_LIBGCC_SPEC="\"%D $(LINKER_RPATH_FLAG)$(exec_prefix)/lib\"" \
-DSTANDARD_STARTFILE_PREFIX=\"$(unlibsubdir)/\" \
-DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc/\" \
-DSTANDARD_LIBEXEC_PREFIX=\"$(libexecdir)/gcc/\" \
@@ -0,0 +1,26 @@
$NetBSD: patch-libgcc_config_t-slibgcc-darwin,v 1.1 2014/05/08 10:14:46 pho Exp $
If we don't install libgcc_s.10.[45].dylib, our gcc links binaries
with *both* /usr/lib/libgcc_s.1.dylib and
${GCC_PREFIX}/lib/libgcc_s.1.dylib, which is certainly a bad thing.
The problem was already reported to the upstream but it caught
seemingly no attention:
http://gcc.gnu.org/ml/gcc-help/2010-07/msg00164.html
--- libgcc/config/t-slibgcc-darwin.orig 2010-02-02 08:18:48.000000000 +0000
+++ libgcc/config/t-slibgcc-darwin
@@ -26,13 +26,7 @@ SHLIB_MKMAP = $(gcc_srcdir)/mkmap-flat.a
SHLIB_MKMAP_OPTS = -v leading_underscore=1
SHLIB_MAPFILES += $(gcc_srcdir)/libgcc-std.ver $(gcc_srcdir)/libgcc-libsystem.ver
-# we're only going to build the stubs if the target slib is /usr/lib
-# there is no other case in which they're useful in a live system.
-ifeq (/usr/lib,$(shlib_slibdir))
LGCC_STUBS = libgcc_s.10.4.dylib libgcc_s.10.5.dylib
-else
-LGCC_STUBS =
-endif
LGCC_FILES = libgcc_s.$(SHLIB_SOVERSION)$(SHLIB_EXT)
LGCC_FILES += $(LGCC_STUBS)