Commit graph

50 commits

Author SHA1 Message Date
John Marino
8c28967d82 lang/gcc-aux: Attempt to fix lang/gnatdroid breakage
Reported by:	pkg-failout
2015-07-14 16:18:35 +00:00
John Marino
865df9e12d lang/gcc-aux: Upgrade version 20141023 => 20150626 (4.9.2 => 4.9.3)
All the NetBSD/OpenBSD changes were also stripped out, which greatly
reduced the diff patch sizes (among other changes to ada support)
2015-07-12 11:04:22 +00:00
Mathieu Arnold
60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00
John Marino
24f22869a9 devel/gps: Restore missing project properties switches
The project properties were missing several tabs in the "switches"
sections, but it wasn't immediately obvious why.  It turns out that this
was caused by a missing generated file (gnat_switches.py).  Restoring
that file along with having PATH set to the Ada compiler restored the
missing tabs.

The trick is that the generated file needs a texi file that is not present
in the distfile.  The texi file was discarded by gnat_util (and its parent
gccX), so the solution is change gnat_util to install the file at its own
DOCDIR.  Pregeneration of the gnat_switches.py is a bad idea IMO, so we
stick with the intended generation.

while here, install gps as gps_exe and create a wrapper named "gps" that
will define ADA_PROJECT_PATH and a PATH component to the Ada compiler if
they aren't already defined.  GPS malfunctions a bit if it can't find the
compiler or standard library project files.  Using a wrapper is nice for
new users that don't realize environmental changes are needed.

I also changed the install scripts to use BSD_INSTALL_* macros which
eliminated the need to use the install-strip INSTALL_TARGET.

Finally -- it seems that the ADAXX trick to pull in gcc-aux's versioning
for the PORTREVISION stopped working recently although the PORTVERSION
still worked.  There's a new catch-22 where <pre> was needed to evaluate
USES=ada, but if <pre> is called, PORTREVISION value is frozen.  Failure
to use <pre> resulted in an inclusion failure.  The only fix available
was to recreate the ada.mk logic.  Since gnatdroid is still hardcoded to
gcc-aux, only gnat_util was affected (discovered when poudriere failed
to rebuild it).
2015-04-20 20:00:00 +00:00
John Marino
bee4622fe3 lang/gnat_util, devel/gprbuild: Support gcc5-aux
GPRBuild is too highly tethered to the compiler -- in practical terms
each version of GPRBuild is meant to be built by a specific GPL GNAT,
but we're trying to build it with multiple FSF GNATS that are out of sync.

This patch set does allow GPRBuild to build and apparently work with both
gcc-aux and gcc5-aux.  There is no real change for gcc-aux (OpenVMS is
removed from the code but it should be same difference) ang for gcc5-aux,
the previous patches aren't needed but new ones are.  Thus, EXTRA_PATCHES
had to be set for each of the two supported compilers.

lang/gnat_utils had to be modified to stop packaging OpenVMS target files
as apparently this target has been removed from gcc5-aux.
2015-03-16 15:11:40 +00:00
John Marino
9053ba470a lang/gcc-aux: Correct information about license in pkg-descr
Newer GCC's don't carry GMGPL licenses anymore, it's been replaced by
GPLv3RLE (as correctly defined in LICENSES) so fix pkg-descr to match.
2015-03-13 14:41:57 +00:00
John Marino
b17a059052 lang/gcc-aux, lang/gcc47-aux, lang/gnatdroid-arm*: Add CPE information
There are no active CVEs against GCC 4.7.x or 4.9.x, but GCC is listed
in the CPE database due to earlier CVEs.  To prepare for future CVEs, add
the CPE information.  Note that CPE_VERSION has to be defined since these
ports use their own version schemes rather than GCC version numbers.

PR:		198252
PR:		198257
Submitted by:	shun (dropcut.net)
2015-03-05 09:01:26 +00:00
Tijl Coosemans
edb7229dd4 Split devel/gettext in devel/gettext-runtime and devel/gettext-tools. The
first contains runtime libraries such as libintl and the latter contains
developer tools such as msgfmt.  Ports that use gettext will usually need
a LIB_DEPENDS on gettext-runtime and a BUILD_DEPENDS on gettext-tools.

USES=gettext-runtime can be used to set a LIB/BUILD/RUN_DEPENDS on
devel/gettext-runtime and USES=gettext-tools can be used to set a
BUILD/RUN_DEPENDS on devel/gettext-tools.  USES=gettext is now the same
as "USES=gettext-runtime gettext-tools" meaning a LIB_DEPENDS on
devel/gettext-runtime and a BUILD_DEPENDS on devel/gettext-tools.

Update gettext to 0.19.3.

Remove :oldver from converters/libiconv and devel/gettext-runtime.  Leave
symlinks with the old library versions to avoid the need to bump
PORTREVISION on a large number of dependent ports.  When most of the
dependent ports have had normal version updates, PORTREVISION can be
bumped on the remaining ones (low number) and the links can be removed.

Fix some ports that installed files in lib/locale instead of share/locale.

PR:		194038
Reviewed by:	bapt
Exp-run:	antoine
Approved by:	portmgr (antoine)
2014-11-29 18:22:32 +00:00
John Marino
0e4847e1d9 lang/gcc-aux: Fix symbolic trace on FreeBSD
Recent gcc creates debug information in dwarf4 format, something that
the base version of addr2line on FreeBSD cannot understand.  When the
compiler requires binutils from ports to build, then ensure the
symbolic tracing code also uses addr2line from the same binutils (which
is already available due to RUN_DEPENDS requirements).  Since DragonFly
3.6 and lower are no longer officially supported, this change only
affects FreeBSD, but it affects all supported releases.  The conditional
code for DragonFly 3.6 has been removed while here.

Reported by:	Natacha Porte
PR:		195465
2014-11-28 12:43:03 +00:00
John Marino
ad6eae307f lang/gcc-aux: Update version 20140716 (4.9.1) => 20141023 (4.9.2) 2014-11-02 01:11:04 +00:00
John Marino
4c20dde0e5 lang/gnat_util: Move PORTREVISION to central location
Many of the ports based on gcc-aux sources have a central location
defining their PORTREVISION to make it easy to reset all them all when
the base version is updated.  lang/gnat_util should have had, but did not
and as a result the PORTREVISION didn't get reset at all.  Centralize
it for the future.
2014-10-21 14:38:58 +00:00
John Marino
fa93bad121 Remove @dirrm from 10 of my lang ports
The majority of these ports had generated plists, not static ones.
2014-10-16 11:53:42 +00:00
John Marino
c5125ebd08 lang/gcc-aux: Update version 20140422 (4.9.0) => 20140716 (4.9.1) 2014-10-15 11:25:50 +00:00
Tijl Coosemans
b903d71cc4 Add USES=libtool 2014-08-28 11:10:34 +00:00
Jimmy Olgeni
55dc0f983a Remove all space characters from Makefile assignments.
No functional changes included.

CR:		D193 (except math/sedumi)
Approved by:	portmgr (bapt)
2014-06-08 19:51:27 +00:00
John Marino
2ba2db697e lang/gcc-aux: Bring in latest diffs-*
I should have done this when I bumped the port port earlier.  A few
of the changes to the diff-* files directly affect FreeBSD although
most are results of other platforms (NetBSD, OpenBSD mainly)

The most invasive change was exchanging strcpy and printf for their
"n" versions.  It was to make OpenBSD happy but the code is better
for it.
2014-05-13 21:19:35 +00:00
John Marino
5b38eae64f lang/gcc-aux: Require latest binutils for DF 3.6 and earlier
Based on observations from pkgsrc and recent failures on Dragonfly 3.6,
it appears that GCC 4.9 requires a linker from binutils 2.23 or later.
DF 3.6 uses binutils 2.22 while the master branch uses 2.24 by default.
This adds the binutils requirement for DF 3.6 and earlier.
2014-05-13 18:47:42 +00:00
Baptiste Daroussin
4a4ec28d37 Convert all :U to :tu and :L to :tl
Since FreeBSD 8.4 and FreeBSD 9.1 make(1) do support :tu and :tl as a
replacement for :U and :L (which has been marked as deprecated)

bmake which is the default on FreeBSD 10+ only support by default
:tu/:tl a hack has been added at the time to support :U and :L to ease
migration. This hack is now not necessary anymore

Note that this makes the ports tree incompatible with make(1) from
FreeBSD 8.3 or earlier

With hat:	portmgr
2014-05-05 09:45:36 +00:00
John Marino
0ecd0495a8 lang/gcc-aux: Update from RC1 to Release 4.9.0
This should be the last update until Release 4.9.1 - the source tarballs
have been switched from snapshots to releases.
2014-04-26 09:57:01 +00:00
John Marino
7e86d0296e lang/gcc-aux: Fix a testsuite application typo, add test to list
Both of these issues affect dragonfly only.  The *-*-dragonfly* target
for dejagnu needs to be added to a few hundred tests but a typo
prevented that from happening.  No revbump as testing does not affect
the final package, nor is it a default option.
2014-04-19 17:01:37 +00:00
John Marino
f107703159 lang/gcc-aux + gnatdroid-armv7: Update to 16 April prerelease 2014-04-18 10:36:22 +00:00
John Marino
71f4c0a48a lang/gnatdroid-armv7 (&gcc-aux): Fix socket support and gnat.dg testsuite
The socket support on Gnatdroid was broken, and it had to be fixed at
lang/gcc-aux.

Until now, the dejagnu testsuite did not work on remote targets.  To fix
this, support files had to be installed at ${LOCALBASE}/share/dejagnu.
Dejagnu was not made a run dependency, conditional or otherwise.  The
test targets for gnatdroid are really maintainer targets.

Running the gnat.dg testsuite confirms that everything works in the
cross-compiler except stack checking (there's no support in gcc for this
just yet).
2014-04-12 22:04:15 +00:00
John Marino
3c04b812aa lang/gcc-aux: Fix typo in long description with slight cleanup 2014-04-10 17:16:43 +00:00
John Marino
10f6790534 lang/gcc-aux: significantly reduce c++ testsuite diff file size
The majority of the 234k c++ testsuite patch can be eliminated with
REINPLACE_CMD at the post-extract phase.  Now it's 1/100th the size
at 2.3k.  No revbump necessary; the testsuite isn't even a default
option.  The same treatment can be done to lang/gcc47-aux later.
2014-04-10 13:35:53 +00:00
John Marino
83d7ec088e lang/gcc-aux: Add binutils requirement for FreeBSD
This patch was previously developed but lost somewhere along the way.
The linker and assembly must be explicitly defined otherwise it is
defined as "ld" and "as" and as such is affected by the value of PATH.
We don't want this, and it actually breaks the gnatdroid cross compilers.

For FreeBSD, use the binutils port like the gcc ports do.  DragonFly
has binutils 2.24 in base so let's keep using the base binutils on that
platform.

Also the Makefile.version file now defines the PORTREVISION for all
the ports that use it to make future updating easier.

Binutils patch omission partly detected by jenkins failure (thx swills)
2014-04-10 08:45:30 +00:00
John Marino
d6fcd55b06 lang/gcc-aux: Upgrade from 30 March snapshot to 6 April
Since the April 6 snapshot, a lot of work has entered the GCC tree to
fix the arm-android GNAT port.  Currently it passes everything except
stack checking.

A lot of the additional lines in diff-ada will be removed with the
next snapshot.  Future plans also include significantly reducing the
size of the diff-cxx-testsuite file too.
2014-04-09 13:52:50 +00:00
John Marino
c6435f57e4 lang/gcc-aux: set Makefile.common includes like gcc47-aux 2014-04-06 12:08:30 +00:00
John Marino
0357d506d0 lang/gcc-aux: Update to latest snapshot, 30 MAR 2014
This may fix some of the shared library building failures seen recently
with the 16 MAR 2014 snapshot.
2014-03-31 07:31:18 +00:00
John Marino
2db84a163b lang/gcc-aux: Fix parallel jobs build (GCC bug)
The cause for the build errors are due to a GCC makefile bug.
C++ is now required to build gnattools, but libstdc++ was not listed
as a dependency.  The fix for this bug will be posted to GCC's bugzilla
shortly.  While here, bump gcc-aux to the latest snapshot (16 March).
Now gcc-aux passes Redports 8x.

Reported by: pkg-fallout
2014-03-22 12:31:11 +00:00
John Marino
bc7ac57a74 lang/gcc-aux: Upgrade from gcc-4.7.3 to gcc49-20140302 snapshot
GCC4.9 hasn't been released yet, but the Ada portion of it is pretty
stable and perfectly passes ACATS and gnat.dg testsuites.  The only
trick was to change the unwind mechanism on i386 away from KERN_PS_STRINGS
because it will not work with 32-bit compatability mode on AMD64.  This
is because on AMD64, the signal trampoline is located on a random area
on a shared page rather than a fixed location before KERN_PS_STRINGS.  To
support both true i386 and AMD64-32 compatibility mode, unwind now looks
for frame pattern in all cases.  Apparently stack checking has been broken
on AMD64-32 until now.

It is important to get the Ada Framework in ports to be based on gcc49
because this compiler supports the full Ada-2012 standard implementation,
and in fact some new programs require this already.

This port will stay on snapshots until 4.9.0 is released, then it will
return to be based on releases.

The Ada and C++ options have been removed.  These are now always built.
In fact, GCC now requires C++ to build, so new bootstraps had to be
created.  FreeBSD8 has its own bootstrap, and FreeBSD 9+ uses a pure
static bootstrap (including GNAT tools) which should last a long time.
Additionally a "Bootstrap" option was added, but this overrides all
other options to create new bootstraps. It is not intended for general
use.

Most of the Ada Framework in ports has been pretested and adjusted to
work with gcc49 out of the box, but some ports will need to be updated
immediately, which will happen right after this one.  The update to
lang/gnat_util had to be synchronized with lang/gcc-aux because they
share version information and the PORTREVISION needed to be reset.
2014-03-14 08:36:05 +00:00
John Marino
8e15a19a07 lang/gcc-aux: Fix skip-bootstrap functionality
I don't know when the skip-bootstrap logic stopped working, but I'm
reasonably sure it did once.  Apparently PREFIX isn't defined at the
time of the "if exists" evaluation.  Using LOCALBASE instead will allow
the compiler to build using the compiler on the system rather than
the older bootstrap compiler.  The bug was discovered while trying to
move gcc-aux to a gcc49 base.
2014-03-03 21:55:29 +00:00
John Marino
92d91cc84b lang/gcc-aux: Fix on DFly 3.5+ with test option
The BUILD_DEPENDS was redefined with test option was selected.
Currently that only affects newer DragonFly (3.6 and Dev)
2014-03-03 21:20:35 +00:00
John Marino
4c62f5d3ae Define GPLv3RLE license (GPLv3 Runtime Library Exception)
The GCC ports either do not have any license defined, or they are defined
as GPLv3 which is not completely correct.  The runtime libraries in the
FSF-issued GCC releases have a standard exception to the GPLv3 license.
In order to properly reflect this, the GCC ports can define a "multi"
license, GPLv3 and GPLv3RLE, which are both in effect.

Concerns PR:	ports/185970
Approved by:	portmgr (bapt)
2014-02-12 23:32:24 +00:00
John Marino
fabaf4ff02 lang/gcc-aux: Update diff-ada, diff-core for Android
The majority of these changes affect the android cross-compiler builds.
The only build change for the host compiler is builds convert_addresses
within a separate file rather than as part of adaint.c.  Given that this
does not represent a functional change in any way, I just don't see the
need to bump PORTREVISION as a result.
2014-01-23 18:59:49 +00:00
John Marino
0c7dd3c6b8 lang/gcc-aux: Convert to staging
* Convert perl-extract to REINPLACE_CMD
* Use new LIB_DEPENDS format
* Properly convert to USES+= perl (it got skipped in the sweep)
* Remove no-op MAKE_JOBS_SAFE (again it got skipped)
* Remove FreeBSD 9.0-only install message (F9 no longer supported)
* Add GPLv3 license but don't install it as it messes up auto-plist
* Use MAKE_JOBS_NUMBER over internal _MAKE_JOBS variable
2013-11-10 00:16:51 +00:00
Gerald Pfeifer
3be3e90f93 Update to libmpc version 1.0.1 which brings the following fixes:
- Switched to automake 1.11.6, see CVE-2012-3386.
 - #14669: Fixed extraction of CC from gmp.h.
 - Fixed case of intermediate zero real or imaginary part in mpc_fma,
   found by hydra with GMP_CHECK_RANDOMIZE=1346362345.

This is on top of the following changes from version 1.0

 - Licence change towards LGPLv3+ for the code and GFDLv1.3+ (with no
   invariant sections) for the documentation.
 - 100% of all lines are covered by tests
 - Renamed functions
   . mpc_mul_2exp to mpc_mul_2ui
   . mpc_div_2exp to mpc_div_2ui
 - 0^0, which returned (NaN,NaN) previously, now returns (1,+0).
 - Removed compatibility with K&R compilers, which was untestable due
   to lack of such compilers.
 - New functions
   . mpc_log10
   . mpc_mul_2si, mpc_div_2si
 - Speed-ups
   . mpc_fma
 - Bug fixes
   . mpc_div and mpc_norm now return a value indicating the effective
     rounding direction, as the other functions.
   . mpc_mul, mpc_sqr and mpc_norm now return correct results even if
     there are over- or underflows during the computation.
   . mpc_asin, mpc_proj, mpc_sqr: Wrong result when input variable has
     infinite part and equals output variable is corrected.
   . mpc_fr_sub: Wrong return value for imaginary part is corrected.

Convert to the new LIB_DEPENDS standard and remove hard-coded
.so versions from a couple of dependent ports.

Bump PORTREVISIONS of all dependent ports.

PR:		183141
Approved by:	portmgr (bdrewery)
2013-10-26 00:52:33 +00:00
John Marino
bf5878162e lang/gcc-aux: Support iconv update in DragonFly master branch
This update affects dragonfly only, and supports the updated ctypes
in the DragonFly master branch.
2013-09-24 10:35:33 +00:00
Baptiste Daroussin
888ab73a81 Add NO_STAGE all over the place in preparation for the staging support (cat: lang) 2013-09-20 19:53:09 +00:00
Boris Samorodov
9f7e7e1326 Introduce ICONV_CONFIGURE_ARG variable defined at Uses/iconv.mk.
It's value is "--with-libiconv-prefix=/usr/local" for systems
before 100043 with ports libiconv and to use at systems post
100043 with base iconv it's value is "" (NULL).

Co-authors:	bapt, madpilot and bsam (me)
2013-09-04 20:01:05 +00:00
Alex Kozlov
1376578fd0 - Fix lang/gcc-aux broken in r324744 [1]
- Convert spaces to tab to pacify portlint

Submitted by:	marino (maintainer) [1]
Pointyhat to: ak
2013-08-15 14:39:14 +00:00
Alex Kozlov
d4041784dc - Remove MAKE_JOBS_SAFE variable
Approved by:	portmgr (bdrewery)
2013-08-14 22:35:50 +00:00
Baptiste Daroussin
6ec7634602 Fix overwritting of USES
Pointyhat to:	az
2013-08-01 06:31:18 +00:00
Andrej Zverev
0c32f39711 - Convert to new Uses/perl5.mk framework
- Resolve issues with implicit lang/perl in extract and patch dependencies
- Trim Makefile header

Reviewed by:	bapt@ (exp-run)
Approved by:	bapt@ (portmrg@)
2013-07-31 06:54:09 +00:00
John Marino
e753d5da3f lang/gcc-aux: bug fixes
This change covers:
  1) portlint cleanup
  2) Support for bootstrapping on DragonFly 3.5+
  3) Removal of uneeded shared library version specifications
  4) USES+= gmake
  5) Splits out version to separate makefile for Ada framework
  6) Fixes typo that caused DragonFly to use mktemp
  7) Adds aggregate array index fix from gcc 4.8
  8) NetBSD lstdc++ fixes were pulled in from diff reneration
  9) c++ testsuite diff was corrected (how it was committed wrong is unknown)

Approved by:	bapt (mentor)
2013-07-21 13:00:46 +00:00
John Marino
5feebd9c74 Replace John Marino email address with FreeBSD version
While I'm here, also trim the headers on a couple of ports and remove
a reference to the Dragonlace mirror which is down indefinitely.

Approved by:	bapt (mentor)
2013-07-12 13:40:50 +00:00
Raphael Kubo da Costa
ede7a6bea5 Fix leftovers check on tinderbox by removing empty directories.
PR:		ports/179363
Submitted by:	John Marino <draco@marino.st> (maintainer)
2013-06-06 19:55:55 +00:00
Baptiste Daroussin
e2328653a6 Update to gcc 4.7.3
Convert to new options framework
Use binutils from ports on FreeBSD 8

PR:		ports/178143
Submitted by:	John Marino <draco@marino.st>
2013-04-30 11:38:19 +00:00
Baptiste Daroussin
56c5e147c5 Convert the last USE_ICONV to USES=iconv 2013-04-27 22:09:15 +00:00
Frederic Culot
4cc1f55bc3 - Update diff-core patch to allow faster symbol matching on FreeBSD>=9
- Fix shared libraries issues by automatically adding rpath to generated
  binaries
- Bump portrevision

PR:		ports/170439
Submitted by:	John Marino <draco@marino.st> (maintainer)
2012-08-09 06:29:42 +00:00
Frederic Culot
63ae642bd6 gcc-aux is the successor to the gcc-4.6-based lang/gnat-aux. Originally it
was planned for lang/gnat-aux to upgrade to version 4.7, then 4.8, etc.
However, some cross-compilers are based on it and there are some significant
differences between gcc 4.6 and 4.7. lang/gnat-aux also installs with a
${LOCALBASE} of /usr/local which has a high potential of file conflicts with
other lang/ compilers. Another reason for keeping them separate is just about
every Ada program will need to be patched for it due to new binding
interpretations stemming from Ada-2012 work. Simply updating gnat-aux would
break them all instantly.

The AUX compiler supports several languages: Ada, C, C++, Fortran and
Objective-C.  Since Ada support must be built by an Ada-capable compiler, only
platforms for which a bootstrap compiler is available can build the AUX
compiler.

The AUX compiler is based on release versions of the Free Software Foundation's
GNU Compiler Collection.  It carries with it the GMGPL license, the modified
version of the GPL that exempts generic instantiation from resulting in a
GPL-licensed executable.  It also carries the GCC Runtime Library Exception, so
the resulting binaries have no licensing requirements.  Binaries produced by
the AUX compiler should be legally handled the same as binaries produced by any
FSF compiler.

The AUX GNAT compiler implements the full Ada-83, Ada-95, Ada-2005 standard and
provides a partial implementation of Ada-2012.

WWW: http://www.dragonlace.net/

PR:		ports/169951
Submitted by:	John Marino <draco@marino.st>
2012-07-31 17:35:29 +00:00