Commit graph

694 commits

Author SHA1 Message Date
Gerald Pfeifer
fda2c67324 Remove Java support (both in terms of the JAVA option and everything
associated with it as well as java from CATEGORIES) from this port.

Technically GCC 4.8 only went end-of-life upstream in June 2015, alas
GCC 4.9 and GCC 5 are well established by now and also provide support
for Java (GCJ/libgcj), and this change simplifies this port significantly
and speeds up the build.

In addition to the expected changes to Makefile, pkg-plist, and pkg-descr,
this also removes files/java-patch-hier.
2017-04-22 08:50:18 +00:00
Martin Wilke
0af18a4496 - Fix shebang
Approved by:	gerald (maintainer via mail)
2017-04-14 20:50:32 +00:00
Gerald Pfeifer
28b9335eba Replace the sole use of DISTVERSION (in MASTER_SITES) by PORTVERSION.
Inspired by:	mat
2017-04-12 06:37:46 +00:00
Gerald Pfeifer
0e341eae57 No longer define CPE_VERSION for ports tracking releases of GCC since
there the default of PORTREVISION is just fine.
2017-02-03 15:18:48 +00:00
Gerald Pfeifer
e95608b4e7 Remove traces of armv6hf which no longer exists as an arch. [1]
Remove redundant definition of DISTVERSION and simplify GCC_VERSION.

Reported by:	andreast [1]
2017-02-03 09:31:08 +00:00
Tijl Coosemans
02f27a83b4 The output of tools like awk, date, sort, tr,... depends on the current
locale set by the user.  Add LANG=C and LC_ALL=C at the beginning of
bsd.port.mk and export them so all commands are executed with the C locale.
LC_ALL=C overrides all other LC_* variables.  LANG is used by setlocale(3)
as default value for LC_* variables, so normally it isn't used when LC_ALL
is set, but there's code out there that looks at LANG directly so it's safer
to set it as well.  The only commands not captured by this are !=
assignments before any inclusion of bsd.port.*mk.

Introduce USE_LOCALE=<locale> that adds LANG=<locale> and LC_ALL=<locale> to
CONFIGURE_ENV and MAKE_ENV so upstream build systems can be executed with a
different locale (e.g. USE_LOCALE=en_US.UTF-8).

PR:		215882
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2017-01-18 13:20:31 +00:00
Gerald Pfeifer
e40987f488 Move all ARM-specific bits we used to have in lang/gcc until r426565
(where I updated that port from GCC 4.8.5 to 4.9.4) to lang/gcc48.

Apart from these improvements these two ports used to be more or less
aligned, and not syncing them fully earlier looks like an omission.

Reported by:	linimon
2016-11-20 21:39:50 +00:00
Gerald Pfeifer
742a14d923 Move the conflict with lang/gcc from lang/gcc48 to lang/gcc49 now that
we have updated lang/gcc to the GCC 4.9 series.  (The direction from
lang/gcc49 to the respective port already has been addressed.)

PR:		196712
2016-11-20 20:34:38 +00:00
Mathieu Arnold
eabbfd75e3 ${RM} already has -f.
PR:		213570
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	Absolight
2016-10-21 12:51:40 +00:00
Gerald Pfeifer
c976404cff Remove OPTIONS_DEFAULT_powerpc64=BOOTSTRAP which is redundant with
OPTIONS_DEFAULT.
2016-08-24 20:13:10 +00:00
Gerald Pfeifer
f7939668a6 Default powerpc64 to bootstrapping (option BOOTSTRAP) since otherwise
GCC can be mis-built, leading to an internal compiler error building
libgcc/libgcov.c, at least on FreeBSD 11.

Adjust OPTIONS_DEFINE_powerpc64 and OPTIONS_DEFAULT_powerpc64
incrementally (with +=) to avoid overwriting settings defined
at the top of the Makefile (or child ports). [1]

Submitted by:	swills [1]
Reported by:	swills
2016-08-24 20:05:40 +00:00
Gerald Pfeifer
65bfb4ce38 Pet portlint in terms of patch file format. 2016-08-24 13:32:58 +00:00
Gerald Pfeifer
0190464df7 GCC uses an AWK script to generate source code that helps process
command-line options.  According to POSIX, string comparisons (and
hence sorting) are to be performed based on the locale's collating
order.  Alas GNU AWK only does so in POSIX mode, whereas starting
with FreeBSD 11 we do so by default, running into a bug (or false
assumption) with that script used by GCC.

Setting MAKE_ARGS such that AWK is always invoked in the C locale
works around this bug.

PR:		210122, 211742
Submitted by:	jkim
2016-08-16 07:21:05 +00:00
Gerald Pfeifer
baabf138fa Apply the following to all common GCC ports based on end-of-life versions
of GCC including lang/gcc:

Only override CONFIGURE_TARGET for amd64 which is x86-64/x86_64 for the
rest of the world including GNU and GCC.  For all other architectures
it already defaults to the value we were setting.
2016-05-06 23:00:26 +00:00
Gerald Pfeifer
0175374736 Make MULTILIB_DESC consistent and more logical also for the lang/gcc
and lang/gcc48 ports, now in line across all lang/gcc* ports.
2016-05-03 20:17:47 +00:00
Jan Beich
70267d209b lang/gcc*: convert to CONFIGURE_OUTSOURCE
PR:		208294, 208309
Exp-run by:	antoine
Approved by:	gerald (maintainer)
Differential Revision:	https://reviews.freebsd.org/D4157
2016-04-13 10:40:58 +00:00
Mathieu Arnold
a9dcad2fff Remove ${PORTSDIR}/ from dependencies, categories h, i, j, k, and l.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:08:37 +00:00
Julio Merino
dad9e883dd Add a MULTILIB option to gcc{,48,49,5} for powerpc64
This change is the same as r400632, which updated gcc[56]-devel, but now
for gcc{,48,49,5}.  This change is the second attempt at doing this: the
first attempt went in r401072 and was reverted in r401074 because the diff
was bogus and enabled the new MULTILIB option under all platforms instead
of just powerpc64.

This fixes the build of gcc{,48,49,5} under powerpc64 when the system
is built without the lib32 libraries.

More in detail:

If the system is built with lib32 support (WITH_LIB32, which is the default),
building gcc from ports results in a compiler that can target both 64-bit and
32-bit binaries on powerpc64.  However, when lib32 support is disabled
(WITHOUT_LIB32), gcc should only be built with 64-bit support or otherwise
the build fails.

To fix this, explicitly disable 32-bit support when /usr/lib32 is not present
and add a MULTILIB option (which is only defined for powerpc64 when 32-bit
support is possible and defaults to yes to preserve the current behavior) to
allow the user to explicitly control this feature.

Approved by:    gerald (maintainer), bdrewery (mentor), andreast
Differential Revision:  https://reviews.freebsd.org/D3952
2015-11-22 21:06:54 +00:00
Julio Merino
c7f5a2f84d Revert r401072.
I'm not sure what happened exactly but I think I committed the change from
the wrong client.  The applied change enabled the MULTILIB option for all
architectures and not only powerpc64.  Let's just revert the commit and do
it properly from scratch; other things might be wrong so I wanna take a
closer look, and it's best to just revert quickly.
2015-11-08 20:31:51 +00:00
Julio Merino
c6b41d9541 Add a MULTILIB option to gcc{,48,49,5} for powerpc64
This change is the same as r400632, which updated gcc[56]-devel, but now
for gcc{,48,49,5}.  Waited a week to ensure the change caused nothing to go
horribly wrong but this change is very low risk because it only affects
powerpc64.

This fixes the build of gcc{,48,49,5} under powerpc64 when the system
is built without the lib32 libraries.

More in detail:

If the system is built with lib32 support (WITH_LIB32, which is the default),
building gcc from ports results in a compiler that can target both 64-bit and
32-bit binaries on powerpc64.  However, when lib32 support is disabled
(WITHOUT_LIB32), gcc should only be built with 64-bit support or otherwise
the build fails.

To fix this, explicitly disable 32-bit support when /usr/lib32 is not present
and add a MULTILIB option (which is only defined for powerpc64 when 32-bit
support is possible and defaults to yes to preserve the current behavior) to
allow the user to explicitly control this feature.

Approved by:    gerald (maintainer), bdrewery (mentor), andreast
Differential Revision:  https://reviews.freebsd.org/D3952
2015-11-08 20:09:59 +00:00
Antoine Brodin
67ad2d2460 Remove deprecated @exec/@unexec from ports using ccache-update-links 2015-09-26 11:03:19 +00:00
Mathieu Arnold
21a283f3be Remove UNIQUENAME and LATEST_LINK.
UNIQUENAME was never unique, it was only used by USE_LDCONFIG and now,
we won't have conflicts there.

Use PKGBASE instead of LATEST_LINK in PKGLATESTFILE, the *only* consumer
is pkg-devel, and it works just fine without LATEST_LINK as pkg-devel
has the correct PKGNAME anyway.

Now that UNIQUENAME is gone, OPTIONSFILE is too. (it's been called
OPTIONS_FILE now.)

Reviewed by:	antoine, bapt
Exp-run by:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D3336
2015-08-17 14:20:40 +00:00
Gerald Pfeifer
02f0c64c67 Update to the GCC 4.8.5 release which concludes the GCC 4.8 release
branch -- no more releases nor snapshots nor even commits on this
branch are to be expected.
2015-06-23 19:32:15 +00:00
Gerald Pfeifer
ca059dcc63 Update to the 20150611 snapshot of GCC 4.8.5. 2015-06-12 20:09:43 +00:00
Gerald Pfeifer
15bf2122d7 Update to the 20150521 snapshot of GCC 4.8.5. 2015-05-23 05:26:07 +00:00
Gerald Pfeifer
5edcaf4e14 Remove the libgomp performance patches again. Too many problem
reports by users.
2015-04-30 10:28:45 +00:00
Gerald Pfeifer
9a254ea139 Update to the 20150423 snapshot of GCC 4.8.5.
Merge MASTER_SITES and MASTER_SITE_SUBDIR into just the former. [1]

Suggested by:	mat [1]
2015-04-29 14:44:19 +00:00
Adrian Chadd
8ba312a3fa Implement the FreeBSD specific pieces for thread affinity for OpenMP.
Upstream gcc 4.8 doesn't have support for this - it'll create threads,
but it won't do any of the thread affinity stuff for FreeBSD.

This allows for OMP_PROC_BIND=true to bind threads to their initial
CPUs, leading to some pretty drastic improvements in performance
for certain NUMA workloads.

Approved by:	gerald
Sponsored by:	Norse Corp, Inc.
2015-04-27 04:50:20 +00:00
Gerald Pfeifer
96371829cf Update to the 20150402 snapshot of GCC 4.8.5. 2015-04-03 14:23:04 +00:00
John Marino
bd64a4f18c lang/gcc(46,47,48,49,5): Use OPTIONS_EXCLUDE_DragonFly to block JAVA
The JAVA frontend doesn't build on DragonFly on any release.  The new
OPTIONS_EXCLUDE_${OPSYS} feature is a nice way to avoid the use of
Makefile.DragonFly (most are in dports, but one is in lang/gcc5).

The recent addition of CXXFLAGS to lang/gcc5 prevents Makefile.DragonFly
on lang/gcc5 from being removed outright.  There are a couple of options
available to allow its removal, but I'll need to discuss with Gerald.

Approved by:	DragonFly blanket
2015-03-26 20:36:04 +00:00
Bryan Drewery
01f8b6d7d7 Fix UNIQUENAME not being unique after recent PORTNAME shuffle.
This was causing the gcc packages to be generated with a
/usr/local/libdata/ldconfig/gcc file. All were conflicting. Bump
PORTREVISION to fix packages built during this time.

With hat:	portmgr
Reported by:	sunpoet
2015-03-23 18:56:10 +00:00
Gerald Pfeifer
21f2409ed2 Add CONFLICTS with lang/gcc which is also GCC 4.8-based right now.
Add CPE information. [1]

Use PKGNAMESUFFIX so that PORTNAME falls back to plain gcc and we
can avoid setting DISTNAME and CPE_PRODUCT. [2]

PR:		198260 [1]
Submitted by:	shun.fbsd.pr@dropcut.net [1]
Suggested by:	mat [2]
2015-03-22 23:29:51 +00:00
Gerald Pfeifer
fb1f0dabac Update to the 20150212 snapshot of GCC 4.8.5. 2015-02-16 05:35:36 +00:00
Gerald Pfeifer
e5c5cee495 Update to the 20150129 snapshot of GCC 4.8.5. 2015-01-31 21:26:32 +00:00
Gerald Pfeifer
34bc3cb59a Update to the 20150122 snapshot of GCC 4.8.5. 2015-01-24 21:26:44 +00:00
Gerald Pfeifer
f29a3a5521 Update to the 20150108 snapshot of GCC 4.8.5. This is a bit past
the GCC 4.8.4 release that the lang/gcc port is at, and likely will
lead to the last release on this branch.
2015-01-12 05:18:42 +00:00
Dimitry Andric
0e14fd9299 When building the gcc ports using a full bootstrap, tell the configure
script to assume the BUILD_CONFIG is set to bootstrap-debug, instead of
letting it auto-detect.

With clang 3.5.0 this auto-detection can fail, due to a discrepancy [1]
[2] in its debug information, when objects are produced with and without
-g.  When the auto-detection fails, gcc will compare objects with full
debug information during the stage comparisons, and this sometimes
causes those stage comparisons to fail unexpectedly.

[1] http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20141222/250134.html
[2] http://llvm.org/PR22046

Approved by:	gerald (maintainer)
2014-12-30 19:19:43 +00:00
Gerald Pfeifer
7f4c99cb64 Update to the 20141218 snapshot of GCC 4.8.4. 2014-12-20 10:41:37 +00:00
Gerald Pfeifer
dbb9ca2500 Update to the 20141120 snapshot of GCC 4.8.4. 2014-11-22 12:38:38 +00:00
Gerald Pfeifer
10a686bd60 Update to the 20141106 snapshot of GCC 4.8.4. 2014-11-10 11:57:56 +00:00
Gerald Pfeifer
d7da3642bb Update to the 20141030 snapshot of GCC 4.8.4. 2014-11-03 15:03:38 +00:00
Gerald Pfeifer
c21b48765d Update to the 20141023 snapshot of GCC 4.8.4. 2014-10-25 15:16:24 +00:00
Gerald Pfeifer
07e3437a5d Update to the 20141016 snapshot of GCC 4.8.4.
Remove all traces of @dirrm from the dynamically generated part of
pkg-plist.
2014-10-19 21:32:13 +00:00
Gerald Pfeifer
efd9c71e71 Update to the 20141009 snapshot of GCC 4.8.4. 2014-10-11 10:31:10 +00:00
Gerald Pfeifer
a89cf08f6f Update to the 20141002 snapshot of GCC 4.8.4.
Remove all instances of @dirrm from pkg-plist.
2014-10-09 05:42:58 +00:00
Baptiste Daroussin
e95ace05e4 Comment out info/dir files
indexinfo is taking care of generating it at package installation time

Reported by:	peter
2014-10-06 18:13:15 +00:00
Gerald Pfeifer
b72b196626 Update to the 20140918 snapshot of GCC 4.8.4. 2014-09-20 15:38:23 +00:00
Gerald Pfeifer
616242b63a Update to the 20140911 snapshot of GCC 4.8.4. 2014-09-12 13:20:10 +00:00
Tijl Coosemans
19be2f9fce Add USES=libtool 2014-09-11 14:37:37 +00:00
Gerald Pfeifer
0805aa448c Update to the 20140904 snapshot of GCC 4.8.4. 2014-09-07 10:52:49 +00:00