1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
Commit Graph

52 Commits

Author SHA1 Message Date
Gerald Pfeifer
67186a4adf Now that GCC 9 is the canonical version in the Ports Collection,
recommend that (instead of GCC 9) in the deprecation notes of ports
for old versions of GCC.
2019-09-09 13:19:15 +00:00
Tobias Kortkamp
e73279ea10 lang/gcc*: Hide pkg-message during upgrades
PR:		239419
Approved by:	gerald (maintainer)
2019-07-24 21:30:44 +00:00
Gerald Pfeifer
e66727024b Recommend the use of GCC 8 (instead of GCC 7 until now) to replace
these older versions of GCC - GCC 4.8, GCC 5, and GCC 6 - which have
been end-of-lifed upstream many moons ago.  GCC 8 has been the default
version of GCC in the Ports Collection for a while and as such proven
itself, plus of all versions it is most likely to be present/used.

No functional change, just updated advice to our users.
2019-06-13 06:20:04 +00:00
Gerald Pfeifer
1c7947c0f0 Simplify the creation of the multilib-related sub-directory tree on
powerpc64 and avoid leaving an empty directory behind on the way.

PR:		235964, 231804
Discussed with:	Piotr Kubaj <pkubaj@anongoth.pl>
2019-03-12 15:56:12 +00:00
Gerald Pfeifer
48c4d64957 Backport r488673 | andreast | 2018-12-29 from lang/gcc7:
Fix build of GCC on powerpc64.

  While building GCC itself we have to use the built GCC libraries to
  configure additional parts of GCC and not the libraires from the host.

  Install the built 32-bit libraries. This was not done up to now.

And no longer required GCC 5 to build on powerpc64, making this port a
natural choice of a "base" for newer members of the lang/gcc* family.

PR:		235964, 231804
Submitted by:	Piotr Kubaj <pkubaj@anongoth.pl>
2019-03-01 01:11:01 +00:00
Gerald Pfeifer
4416e5432c Fix an incorrect sed regular expression used in libjava by adding a local
patch files/patch-libjava-classpath-scripts-check_jni_methods.sh.in.
Escapes of ordinary characters will be disallowed by regex(3) in the
future. [1]

While here already, factor out a proper USES block in the Makefile. [2]

PR:		233443 [1]
Submitted by:	kevans [1]
Reported by:	portlint [2]
2019-02-19 22:09:23 +00:00
Gerald Pfeifer
75095186da On powerpcspe configure GCC --with-cpu=8548 instead of --with-cpu=8540,
which caused the build to fail after the update to binutils 2.31 and was
factually incorrect anyways (since the oldest we support is 8548).

PR:		235393
Reported by:	jhibbits
2019-02-04 09:40:33 +00:00
Gerald Pfeifer
a9f015d155 Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.

PR:		231590
2018-12-12 01:35:33 +00:00
Gerald Pfeifer
890334f8a4 Remove a conflict with gcc6-devel which does not exist any longer.
Deprecate this port since GCC 6 has been end-of-lifed upstream and
lang/gcc7 and lang/gcc8 are available as official releases.  Do not
mark for expiration yet, though.
2018-11-22 18:30:10 +00:00
Baptiste Daroussin
7990f81066 Install texinfo files (GNU info) into ${PREFIX}/share/info
After a discussion on the mailing list on moving manpages to
${PREFIX}/share/man for consistency with base where it is
installed in usr/share/man, it appeared the same should happen
to GNU info files which were installed under share in base and
not in ports.

Now texinfo is not in base on any of the supported version of FreeBSD
it is possible to proceed to this move and it is easier to do than
the manpage change.

Other benefit than consistency are less patching: all build tools but
cmake are expecting info files to be under share/info and cmake (patched here)
was having an exception for BSD so the patch makes FreeBSD case less
specific for them

Bump revision of all impacted ports

PR:		232907
exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D17816
2018-11-10 18:12:57 +00:00
Gerald Pfeifer
b25f38a2af Update to the GCC 6.4.0 upstream release which carries a number of
fixes and closes the GCC 6 release  branch.

files/patch-armv7-support and files/patch-freebsd-unwind.h made it
upstream in between GCC 6.4 and GCC 6.5, so remove them.
2018-10-26 20:23:02 +00:00
Mathieu Arnold
f57bc4af66 After an include, PLIST_SUB must be appended to, not overwritten.
If it is overwritten, many values will be clobbered, and
pain will ensue.

PR:		230864
Submitted by:	mat
exp-runs by:	antoine
2018-09-10 13:11:23 +00:00
Gerald Pfeifer
09f9633cb6 Bump PORTREVISION for ports depending on the canonical version of GCC
in the ports tree (via Mk/bsd.default-versions.mk and lang/gcc) which
has now moved from GCC 6 to GCC 7 by default.

This includes ports
 - featuring USE_GCC=yes or USE_GCC=any,
 - featuring USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and those
 - with USES=compiler specifying one of openmp, nestedfct, c11, c++0x,
   c++11-lib, c++11-lang, c++14-lang, c++17-lang, or gcc-c++11-lib.

PR:		222542
2018-07-29 22:18:44 +00:00
Gerald Pfeifer
d892fa6a77 Improve the explanation on why on powerpc64 we require USE_GCC=5 and
not one of the more common/flexbile options such as USE_GCC=yes.

Reported by:	linimon
2018-07-04 15:49:35 +00:00
Gerald Pfeifer
ec35c5a4b3 Backport r469768 from lang/gcc7:
Simplify MASTER_SITES, taking advantage of the default for GCC releases
provided by MASTER_SITES_ABBREVS.

Reported by:	portlint
2018-05-20 14:19:42 +00:00
Tijl Coosemans
23e99b00ef Run "/usr/sbin/service ldconfig restart" for USE_LDCONFIG instead of
"ldconfig -m <path>" so the order of ldconfig search directories after
package installation is the same as after a reboot.  The original command
simply appends the path to the list of directories while the ldconfig rc.d
script uses "sort -u".

Bump lang/gcc* which are known to install libraries with exactly the same
name so the library loaded at runtime depends on the order of the search
directories.

PR:		228046
Approved by:	portmgr (antoine)
2018-05-14 19:15:36 +00:00
Gerald Pfeifer
60f9c6088a Filter the -mretpoline command-line option, which is understood by
recent versions of clang (and used in the context of the Spectre
security issues), but not GCC (which uses different options for the
same) from CFLAGS and CXXFLAGS.

This avoids the build of this port via bootstrap, which is the default
and leverages both the system compiler (clang in most cases) plus a just
built version GCC, to fail due to the latter not knowing -mretpoline.

PR:		228205
Submitted by:	rozhuk.im@gmail.com
2018-05-13 12:17:59 +00:00
Alex Dupre
aca2d686e3 Update mpfr to 4.0.1 release and bump PORTVERSION of dependent ports. 2018-04-19 07:08:45 +00:00
Danilo Egea Gondolfo
6919f1bde0 math/cloog
- Update to 0.19.0
 - Use github
 - Add ac_cv_prog_TEXI2DVI to avoid building docs for now

devel/isl
 - Update to 0.19

- Bump PORTREVISION of all dependencies
2018-04-08 19:05:36 +00:00
Mark Linimon
d0c5aa8cc1 Allow gcc compilers to be built on new arch 'powerpcspe'.
Tested for no-harm on amd64.

Submitted by:		jhibbits
Approved by:		portmgr (tier-2 blanket)
Differential Revision:	D13126
2018-03-31 12:11:36 +00:00
Gerald Pfeifer
c2a92a1aea Bump PORTREVISIONs of all users of math/mpc that we just updated to
version 1.1.0 (via revision 464079).
2018-03-10 17:46:04 +00:00
Gerald Pfeifer
2b1a40d90f Rework the architecture-specific special settings, sorting snippets and
using .elif instead of distinct .if sequences, similar to most of the
other lang/gcc* ports by now. (This being the default port we usually
let changes settle elsewhere first.)
2017-11-25 22:52:32 +00:00
Gerald Pfeifer
daa8828c52 Backport revision 454177 from lang/gcc7 now also to lang/gcc6, the
current default GCC port:

Make sure what we install is stripped (i.e., debug info is removed).

The straightforward way is setting INSTALL_TARGET to install-strip,
which is supported by the upstream GCC build machinery.

Unfortunately this fails when running as regular user (non-root)
since strip requires write permission to the files in question,
and we install binaries as r-xr-xr-x by default.  To work around
that we need to set BINMODE to allow for write access by the user,
something that's common on GNU/Linux (which is why this probably
has not been noticed there).  This is not necessary when running
as root.

(A different approach suggested was to set STRIP=true, alas that
leads to many files actually not being stripped.  This is due to
GCC using its own script install-sh that in turn uses cp, chmod,
strip,...  instead of our own install-* tools in many cases.)

According to tests by sobomax@ and me installs of lang/gcc6 went
down by about a fourth.

Do not bump PORTREVISION since this only changes builds by non-root
users, is not a functional change, and the previous state of using
a bit more storage had been there "forever".

Reported by:	Ports QA Framework, miwi, sobomax
Discussed with:	tijl, miwi
Tested by:	sobomax
Differential Revision:	https://reviews.freebsd.org/D10357
2017-11-18 10:10:43 +00:00
Gerald Pfeifer
001b2bc6a5 Add a patch that we pulled into gcc6-devel via upstream a few days ago
that addresses a real-world issue around threading and unwinding as
files/patch-freebsd-unwind.h .

This will become obsolete with the next release of GCC 6, GCC 6.5.

Bump PORTREVISION since this is a functional change.

On the way fix up the format for files/patch-armv7-support . [1]

Reported by:	portlint [1]
2017-11-14 05:28:51 +00:00
Andreas Tobler
7ead1eb866 Add support for armv7-*-freebsd*.
This patch is already upstreamed and can be dropped once a new GCC 6.x is
released.

PR:	221905
Submitted by:	mmel@
Approved by:	gerald@ (maintainer)
2017-10-10 19:17:19 +00:00
Gerald Pfeifer
95db81611b Add a conflict with the lang/gcc6-devel port as we've had it in lang/gcc5
(for lang/gcc5-devel) for a fair while.  This mirrors what we did for the
lang/gcc5-devel port earlier this week.

Also make Python a build-only dependency when building Java
(via JAVA_USES=python:build) which makes the installed port/package
quite a bit more lightweight.

Bump PORTREVISION for those two changes.
2017-09-29 19:11:07 +00:00
Gerald Pfeifer
aa36701d51 Do not quote constant strings compared with ${ARCH}. [1] Remove
some commented (and thus disabled) logic around this on the way.

This brings the active lang/gcc* release-based ports in sync with
their respective lang/gcc*-devel twins.

PR:		221905 [1]
Submitted by:	linimon [1]
2017-09-17 17:51:24 +00:00
Gerald Pfeifer
e59c88cece Bump PORTREVISION for ports depending on the canonical version of GCC
(via Mk/bsd.default-versions.mk and lang/gcc) which has moved from
GCC 5.4 to GCC 6.4 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c++11-lib, c++11-lang,
   c++14-lang, c++0x, c11, or gcc-c++11-lib.

PR:		219275
2017-09-10 20:55:38 +00:00
Gerald Pfeifer
cf75addb67 Move ONLY_FOR_ARCHS and BROKEN_sparc64 together and up into a block
of their own (per guidance from portlint and the manual).
2017-09-06 14:09:24 +00:00
Gerald Pfeifer
7ddd43998f Remove workaround for PR 219274 that bapt@ had put in place in 2014
from pkg-plist for lang/gcc5 and lang/gcc6 (which won't be updated
too soon otherwise).

PR:		219274
2017-08-06 06:24:31 +00:00
Gerald Pfeifer
5b0478c11f Update to the GCC 6.4.0 upstream release which carries a number of fixes.
This now comes as an xz archive, so update USES=tar accordingly.

Also this now includes
  files/patch-aarch64-support,
  files/patch-libgcc-config-arm-unwind-arm, and
  files/patch-x86-64-fix-m16
which andreast@ and me pushed upstream.

On the other hand we gain bin/gcov-dump6 and man pages for gcov-dump6
and gcov-tool6.

Finally, as with lang/gcc5 and lang/gcc6-devel, remove headers being
created by GCC's fixincludes machinery from the installation / packaging
to avoid breakage when FreeBSD's headers are changing afterwards.
2017-07-08 09:57:58 +00:00
Mark Linimon
b174cda302 Alphabetize ARCH definitions.
No need to bump PORTREVISION because package does not change.

Reviewed by:	gerald
Approved by:	portmgr (tier-2 blanket)
2017-06-26 22:50:12 +00:00
Gerald Pfeifer
dc886afb8c Adjust WWW URL to refer to https and avoid a trailing slash. 2017-06-17 22:34:29 +00:00
Gerald Pfeifer
b7a1e6b044 Replace the general USE_GCC=yes when building for powerpc64 by the
specific USE_GCC=5 to be future proof when GCC 6 becomes the default
(since USE_GCC=yes would then pull in lang/gcc6 which we obviously
cannot require to build gcc6 itself nor gcc6-devel).  This also helps
users who play with GCC_DEFAULT in Mk/bsd.default-versions.mk.

Reported by:	jhibbits
Discussed with:	andreast
2017-06-04 04:57:44 +00:00
Gerald Pfeifer
8f3d5752f6 Forward port files/patch-x86-64-fix-m16 from lang/gcc5. This has been
in gcc6-devel for a while, but the next GCC 6 release has been taking
longer than expected, so let's put this in temporarily.

PR:		219291
2017-05-28 10:34:12 +00:00
Mark Linimon
f957382be4 I jumped the gun by marking this broken on powerpc64. There is
active work ongoing to debug it.
2017-05-28 02:39:54 +00:00
Mark Linimon
82c3cac0d2 Mark some ports failing on power64. In cases where the error message
was a stub, provide a real one.

While here, pet portlint.

Approved by:	portmgr (tier-2 blanket)
Reported by:	swills
2017-05-22 16:04:19 +00:00
Andreas Tobler
b172a04396 Make _Unwind_GetIP, _Unwind_GetIPInfo and _Unwind_SetIP available as functions
for arm*-*-freebsd*.
This patch is already pushed upstream to all active gcc branches.
GCC-5, GCC-6, GCC-7 and trunk. The gcc?-devel ports will catch up these bits
with the next update.
Once a new release for gcc6 or gcc5 is done, this patch will be obsolete.

Approved by: gerald@ (maintainer)
2017-05-21 20:34:22 +00:00
Martin Wilke
0af18a4496 - Fix shebang
Approved by:	gerald (maintainer via mail)
2017-04-14 20:50:32 +00:00
Andreas Tobler
2f4835ed3d Define WCHAR_T for aarch64 on all active gcc (gcc/gcc5 and gcc6) releases.
This define is already in upstream.
The gcc*-devel ports will pickup the commit from upstream.

Submitted by:	kan@
Approved by:	gerald@ (maintainer)
2017-04-08 18:55:35 +00:00
Gerald Pfeifer
04d6f52202 Bump PORTREVISIONs for ports depending on the canonical version of GCC and
lang/gcc which have moved from GCC 4.9.4 to GCC 5.4 (at least under some
circumstances such as versions of FreeBSD or platforms).

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using using Mk/bsd.octave.mk which in turn has USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c++11-lib, c++14-lang,
   c++11-lang, c++0x, c11, or gcc-c++11-lib.

PR:		216707
2017-04-01 15:23:30 +00:00
Andreas Tobler
7a0dbdf30d Backport the bits needed for aarch64-*-freebsd* support from the gcc6-devel
port.
The same applies here as on the lang/gcc5 port, as soon as GCC releases
a new gcc6, these bits go away. Iow, they are already part of the gcc6-devel
branch.

Approved by:	gerald(maintainer)
2017-02-16 18:38:27 +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
57579a2f6b Remove traces of armv6hf which no longer exists as an arch. [1]
Sort ONLY_FOR_ARCHS.

Reported by:	andreast [1]
2017-02-03 09:36:46 +00:00
Gerald Pfeifer
decf8030df No longer BROKEN on powerpc64 according to andreast@. 2017-01-18 21:40:32 +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
33aa6a46c0 Update to the GCC 6.3 release which brings a number of bugfixes.
Omit the definition of DISTVERSION which is only necessary for ports
tracking snapshots of GCC and simplify the definition of GCC_VERSION
(but keep the latter as a variable to align the gcc6-devel and gcc6 ports).

Remove files/patch-unwind-ia64.h since we have not been supporting ia64
with this release series (ONLY_FOR_ARCHS has not been including ia64).
2016-12-25 21:03:54 +00:00
Gerald Pfeifer
659c967516 Replace USE_GCC=4.9+ by USE_GCC=yes, now that lang/gcc and the default
version for GCC in the Ports Collection have moved to GCC 4.9.
2016-11-25 21:27:37 +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
57ae2dd7a4 Update to the GCC 6.2 release with a fair number of fixes.
files/patch-armv6-hf-support has been accepted upstream, even
on the GCC 6-branch this release comes from, so remove it.

Backport the following from lang/gcc6-devel:

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. [1]

PR:		210122 [1], 211742 [1]
Submitted by:	jkim [1]
2016-08-22 13:20:47 +00:00