Commit graph

417 commits

Author SHA1 Message Date
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
Bryan Drewery
c93dfc2e9f SSP support has been added to ports with WITH_SSP for i386 and amd64
on FreeBSD 10, and amd64 on earlier versions.

SSP_UNSAFE is added to disable in a port if it fails to build, but
this should only be used in rare circumstances such as kernel modules.
Otherwise, the port may just be failing due to lack of respecting
LDFLAGS.

On FreeBSD 10, this uses an ldscript in /usr/lib/libc.so to pull in
libssp_nonshared.a to address issues linking on i386 [1].

On earlier FreeBSD versions the WITH_SSP knob will add -lssp_nonshared
to LDFLAGS on i386. This is not needed on amd64. However, several hundred
ports do not currently respect LDFLAGS, so this support is disabled currently
as it causes build failures if a dependency is looking for the stack_chk
symbols.

Many thanks to jlh@ for this as he had many years of patience in getting
all of the necessary pieces [1][2] in.

[1] http://svnweb.freebsd.org/base/head/lib/libc/libc.ldscript?revision=251668&view=markup

PR:		ports/138228 [2]
Submitted by:	jlh (bsd.ssp.mk based on)
Reviewed by:	bapt
With hat:	portmgr
exp-runs done:	37 over a month on 91i386,91amd64,10i386,10amd64
2013-09-20 12:54:54 +00:00
John Marino
9518965c21 lang/gcc*: define CONFIGURE_TARGET genericly (8 ports)
Instead of hardcoding the compiler target as FreeBSD, use the OPSYS
variable to it.  This makes no practical difference for FreeBSD, but
it helps DragonFly get properly configured.

Approved by:	gerald
2013-09-12 10:20:45 +00:00
Baptiste Daroussin
f5d7531940 Fix build on head by removing USE_GCC=any and properly define USE_CSTD=gnu89 instead
PR:		ports/181816
Submitted by:	tijl
Approved by:	gerald
2013-09-06 21:51:26 +00:00
Gerald Pfeifer
f21405e963 Work around a bug in libcpp that pulls in the optional system iconv
if present (even if the libiconv port is present) and fails using that.

The issue is that /usr/include/iconv.h has #include <stdbool.h> which
in turn, since both are included very late in the game, conflicts with
similar definintions by libcpp itself.

libstdc++ does not seem to require adjustments, so PR 161417 may not
be relevant in full.

PR:		161417
2013-09-06 18:11:06 +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
d4041784dc - Remove MAKE_JOBS_SAFE variable
Approved by:	portmgr (bdrewery)
2013-08-14 22:35:50 +00:00
Marcus von Appen
a3a0715f38 - Convert USE_ICONV=yes to USES=iconv
- Change USE_GNOME=pkgconfig|gnomehack to USES=pathfix|pkgconfig while here

Reviewed by:	zeising
2013-04-27 11:59:28 +00:00
Baptiste Daroussin
9250d94365 Convert USE_BISON to USES= bison
It brings bison as a build dependency in case it is set the following way:
USES= bison or USES= bison:build

it brings bison as a run dependency in case it is set the following way:
USES= bison:run

it brings bison both as a run and build dependency in case it the set the following way:
USES= bison:both

While here trim some headers
Convert some USE_GNOME= gnomehack to USES= pathfix
2013-03-08 11:32:11 +00:00
Mark Linimon
a8693b8dee Force numerous ports that fail to build with clang over to instead always
rely on gcc.  The patch uses the new USE_GCC=any code in Mk/bsd.gcc.mk to
accomplish this.

The ports chosen were ports that blocked 2 or more ports from building with
clang.  (There are several hundred other ports that still fail to build with
clang, even with this patch.  This is merely one step along the way.)

Those interested in fixing these ports with clang, and have clang as their
default compiler, can simply set FORCE_BASE_CC_FOR_TESTING=yes.

For those who have gcc as their default compiler, this change is believed
to cause no change.

Hat:		portmgr
Tested with:	multiple runs on amd64-8-exp-bcm and 9-exp-clang, with various
		combinations of patch/no-patch and flag settings.
2012-10-09 22:12:13 +00:00
Gerald Pfeifer
d586b90da2 Just build, do not bootstrap, this version of GCC in our ports tree.
This speeds up a full port/package test cycle by 50% on a 4-core
system; a simple build/install will benefit even more.

On the way, have he compiler report itself as "FreeBSD Ports Collection".
2012-09-12 23:20:43 +00:00
Gerald Pfeifer
ddbf2f7d67 Add arm to NOT_FOR_ARCHS. [1]
Remove ABI version numbers for all library dependencies.

Reported by:	linimon [1]
2012-08-25 15:04:46 +00:00
Gerald Pfeifer
257dafd940 Remove EXPIRATION_DATE, Mk/bsd.gnustep.mk still relies on this port.
Feature safe:	yes
2012-04-09 20:43:05 +00:00
Gerald Pfeifer
31128ad68d Deprecate lang/gcc42 in favor of lang/gcc46 which has been the default
for USE_GCC=X.Y+ for a while with an expiration date of 2012-04-18.

Feature safe:	yes
2012-03-18 00:29:26 +00:00
Mark Linimon
a2d38620e1 Re-add lang/gcc42.
Hat:		portmgr
Feature safe:	yes
2011-12-11 23:56:19 +00:00
Mark Linimon
fdcd7156e3 Re-add lang/gcc42, which is still used in some installations via libobjc.
Hat:		portmgr
Feature safe:	yes
2011-12-11 23:52:41 +00:00
Gerald Pfeifer
8fe0249ff2 Remove the lang/gcc42 port (GCC 4.2) which does not have any user in
the tree any more and has been obsoleted by several newer versions of
GCC -- ones that actually build on FreeBSD 10.x out of the box and
provide better support for newer CPUs, better optimizations overall,
and more advanced language support.

GCC 4.6 aka lang/gcc or lang/gcc46 is the new default version of GCC
in ports.

The system compiler version of GCC 4.2 is still available up to and
including FreeBSD 9.x and users of USE_GCC=4.2+ will be transparently
redirected to lang/gcc if, or rather when, this changes.

PR:		163103
Feature safe:	yes
2011-12-11 09:09:02 +00:00
Gerald Pfeifer
53d60cc444 Fix the post-patch target to properly report this as a FreeBSD Ports
Collection variant of GCC. [1]

Strip down distinfo on the way.

Reported by:	Bjoern Koenig <bkoenig@alpha-tierchen.de> [1]
2011-05-21 19:34:29 +00:00
Gerald Pfeifer
ce7e82a309 Remove support for the Java frontend. The purpose of this port at this
point is only to support FreeBSD 6.x systems who have an older system
compiler than FreeBSD 7 and beyond.
2010-08-14 17:30:47 +00:00
Alex Dupre
8cbf48bd4b Chase mpfr library and bump PORTREVISION. 2010-06-11 15:09:45 +00:00
Alex Dupre
bf330a57d4 Switch to use newer GMP version.
PR:		ports/144487
Submitted by:	ale
Approved by:	portmgr (-exp run by erwin)
2010-04-19 10:43:42 +00:00
Gerald Pfeifer
18b8d038e0 Force the use of system as and ld. This makes building and using this
port consistent across installations and avoids confusing error modes
for users who may have others flavors of these tools earlier in PATH.

On the way, sort CONFIGURE_ARGS.

Triggered by:	glarkin
2010-04-16 16:09:15 +00:00
Mark Linimon
962e4d1f11 Enable build on ia64 to see what happens.
Hat:		portmgr
2010-03-11 23:34:11 +00:00
Greg Larkin
50818aaf50 - Moved fetching of ecj.jar from the post-patch target using the
contrib/download_ecj script to the fetch phase using extra MASTER_SITES
  and DISTFILES. Pointyhat does not allow fetching outside of the
  fetch phase, and the size and checksums of ecj.jar need to be recorded
  in distinfo.

Reported by:	pointyhat (pav)
Approved by:	gerald (via private email)
2010-01-08 16:18:57 +00:00
Gerald Pfeifer
547eaec607 Remove some extra aspects brought in by the previous changeset, and
remove the WITH_JAVA_AWT knob.

Discusssed with:	glarkin
2010-01-02 05:12:53 +00:00
Greg Larkin
058e2a3f61 - Re-enabled the Java (gcj) frontend to support print/pdftk
- Added support for gcj on amd64
- Added call to contrib/download_ecj so gcj executable doesn't die with
  a "file not found" error after it's built

Submitted by:	glarkin
Approved by:	gerald (via email)
2009-12-30 23:53:20 +00:00
Gerald Pfeifer
1e155fe173 Reenable the Objective-C frontend for now, gnustep still uses it.
Reported by:	dinoex
2009-12-03 09:46:36 +00:00
Gerald Pfeifer
83c73c7572 Remove support for the Java frontend and library where users are better
served using GCC 4.4 or later.  This makes this port a whole lot cheaper
and also allows us to remove the (somewhat bogus) check for lang/gcc295
as well as WANT_GNOME.

No longer download Objective-C related files which we don't actually use.

Set MAINTAINER unconditionally.
2009-11-18 22:08:46 +00:00
Gerald Pfeifer
1c13cbbe50 Move the snapshot date from PORTREVISION to being a part of PORTVERSION
to allow for PORTREVISION bumps.

Simplify pre-everything and adjust PLIST_SUB accordingly.

Extract SUFFIX from PORTVERSION.  Use SUFFIX for TARGLIB (and thus for
the library path used by this port).  Also use SUFFIX for the libexec
directory instead of the full port version and flatten the directory
structure and simplify the logic along the way.

Move VERSIONSTRING down to pacify portlint after all those years and
extract it from PORTVERSION, too.

Make the determination of CONFIGURE_SCRIPT more robust.

Address a long term FIXME related to older versions of FreeBSD by
removing NOMANCOMPRESS=yes.

Adjust Makefile header; nothing really left from the original.
2009-05-26 14:26:22 +00:00
Alex Dupre
523a16e2bd Chase libgmp and bump PORTREVISION. 2009-05-13 09:46:02 +00:00
Gerald Pfeifer
3294d9cc54 Update to the 20090325 snapshot of GCC 4.2.5 which should conclude
this GCC branch (I disabled further snapshots upstream).

Set MAKE_JOBS_SAFE to allow for parallel builds.
2009-03-29 11:22:25 +00:00
Gerald Pfeifer
efffee1992 Update to the 20090311 snapshot of GCC 4.2.5.
Remove obsolete code to create (empty) man pages in case regular man
pages cannot be created.  This catches four dummy man pages we are now
able to remove: grepjar42, jar42, rmic42, and rmiregistry42.
2009-03-14 11:51:51 +00:00
Gerald Pfeifer
d076c2da11 Update to the 20090218 snapshot of GCC 4.2.5. 2009-02-20 00:26:37 +00:00
Gerald Pfeifer
46442c306e Set PORTNAME, COMMENT, and LATEST_LINK unconditionally as opposed to
using ?=.

Add powerpc to NOT_FOR_ARCHS. [1]

No longer include the Fortran frontend.  This version has been super-
seded by later ports, and the main purpose of lang/gcc42 is being on
par with the GCC 4.2-based system compiler recent versions of FreeBSD
feature.

Remove gcc-testsuite from DISTFILES, along with the post-build and
check targets.  This reduces disk and bandwidth consumptions for a
feature (apparently) never used.

PR:		130964 [1]
2009-02-01 14:58:35 +00:00
Alex Dupre
4926cbc0b9 Chase mpfr library. 2009-01-30 23:23:18 +00:00
Pav Lucistnik
41d8c3385c - Remove conditional checks for FreeBSD 5.x and older 2009-01-05 20:36:33 +00:00
Gerald Pfeifer
351d3e3659 Replace CONFLICTS=gcc-2.95.*, which actually is too late to prevent
us running into build problems, by an earlier check (pre-extract).

Suggested by:	pav
2009-01-03 19:52:17 +00:00
Gerald Pfeifer
c07b463efd Update to the 20081126 snapshot of GCC 4.2.5. Mostly assorted bugfixes
since the previous snapshot.
2008-11-27 19:39:55 +00:00
Gerald Pfeifer
7b234bcf3b Remove alpha from NOT_FOR_ARCHS based on a report and request by
Anton Shterenlikht <mexas@bristol.ac.uk> and no objections from
the freebsd-alpha@ list.
2008-07-20 08:21:30 +00:00
Gerald Pfeifer
ede379158b Update to the 20080702 snapshot of GCC 4.2.5 (which includes everything
in the ultimate GCC 4.2.4 release).
2008-07-06 13:02:54 +00:00
Gerald Pfeifer
b45ecb8859 Update to the 20080430 snapshot of GCC 4.2.4. 2008-05-03 07:54:38 +00:00
Gerald Pfeifer
204fd06853 Update to the 20080409 snapshot of GCC 4.2.4. 2008-04-12 10:16:53 +00:00
Gerald Pfeifer
3a0d87dbc1 Update to the 20080326 snapshot of GCC 4.2.4. 2008-03-27 14:38:21 +00:00
Gerald Pfeifer
e7a7b09337 Update to the 20080305 snapshot of GCC 4.2.4. 2008-03-08 22:34:57 +00:00
Gerald Pfeifer
ac3569924a Update to the 20080220 snapshot of GCC 4.2.4.
Make PORTSNAME overridable.[1]

Submitted by:	maho[1]
2008-02-21 12:59:06 +00:00
Gerald Pfeifer
bdfa051724 Update to the 20080213 snapshot of GCC 4.2.4. 2008-02-17 01:02:51 +00:00
Gerald Pfeifer
408d6cc804 Update to the 20080130 snapshot of GCC 4.2.3 which is more or less the
4.2.3 release itself.
2008-02-02 11:45:04 +00:00
Gerald Pfeifer
a7060f29a7 Update to the 20080123 snapshot of GCC 4.2.3. 2008-01-25 22:13:30 +00:00
Gerald Pfeifer
dd3e626ddf Update to the 20080116 snapshot of GCC 4.2.3. 2008-01-17 13:22:42 +00:00
Gerald Pfeifer
fde8779769 Update to the 20080102 snapshot of GCC 4.2.3. 2008-01-04 08:53:16 +00:00