Commit graph

86 commits

Author SHA1 Message Date
Steve Wills
f0349c982c Add CPE info
Approved by:	bapt (maintainer)
2017-10-11 13:59:38 +00:00
Mark Linimon
45cb752a04 Begin deorbit burn of ia64. We have not attempted to build packages for
it for many years.

While here, alphabetize ARCHs, pet portlint, and modernize usages.

Approved by:	portmgr (tier-2 blanket)
2017-06-25 00:29:09 +00:00
Baptiste Daroussin
ef30b05662 Actulally update binutils 2017-03-22 21:12:23 +00:00
Bryan Drewery
6c28251713 Build aarch64-binutils as static by default.
This is required to build Arm64 packages using QEMU.  Poudriere copies
the native ld from the host into the jail and uses that during the build.
This only works if ld is static.

Reported by:	krion
Approved by:	bapt
2017-02-22 23:33:44 +00:00
Bryan Drewery
7fa3463087 Add a STATIC option to build the toolchain as static.
Approved by:	bapt
2017-02-22 23:32:19 +00:00
Dmitry Marakasov
9d79e7b146 - Remove always-true/false conditions after FreeBSD 9, 10.1, 10.2 EOL
Approved by:	portmgr blanket
2017-01-09 13:16:49 +00:00
Andrew Turner
263f32f717 Fix booting the arm64 kernel when built with clang 3.9.0
Clang 3.9.0 changes how weak extern is handled. They now use the got to
handle them. This is a problem as ld.bfd doesn't fill out any default value
in the got so pointers become NULL. This caused the kernel to fail to boot
as we use this in linker sets.

This fixes the issue by setting a default value in the got. The kernel
still loads data through it, but because we always load it at a fixed
virtual address the address it finds is valid.

Approved by:	bapt
Differential Revision:	https://reviews.freebsd.org/D8622
2016-11-29 13:44:46 +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
Brooks Davis
168c370f20 Fix mips64-binutils ld to default to mips64 rather than mips32.
Discussed with:	bapt
2016-09-26 13:41:17 +00:00
Antoine Brodin
22fdd4fbb7 Do not use .init_array/.fini_array sections on FreeBSD 9
This should fix build failures of llvm37 and a few others

PR:		212249
With hat:	portmgr
2016-08-31 21:15:04 +00:00
Baptiste Daroussin
f9a1410b31 Bump portrevision after recent changes 2016-08-31 08:47:55 +00:00
Baptiste Daroussin
364d4f89b6 Add missing && 2016-08-31 06:37:59 +00:00
Baptiste Daroussin
ec0cbff112 Disable gold on powerpc*
Submitted by:	swills
2016-08-31 06:26:25 +00:00
Baptiste Daroussin
504f74df0a Stop trying to remove the empty lib/ for cloudabi find(1) complains about it on
FreeBSD 9. I have no time to investigated. Reverted make the package build again
2016-08-27 12:25:04 +00:00
Baptiste Daroussin
6459b1319d Remove from the package some binaries to avoid conflicts
Some binaries were added by the fact all targets have been enabled. This causes
conflicts with other tools. Given those binaries are already provided by the
mingw32-binutils there is no need for this one to provide them as well
2016-08-27 12:20:17 +00:00
Baptiste Daroussin
5af442e679 WIP: external toolchain cross buildable: binutils
Add a cross buildable binutils package.
The new category is not linked to the regular ports tree to avoid make install,
poudriere and others to catch it automagically

instead of ending with a very complex file removal in the stage, prefer to use
specific plist per arch.

For now only sparc64 tested and added. This version of binutils is stipped down
only the components that are not supported by elftoolchain
2016-08-27 00:14:11 +00:00
Baptiste Daroussin
a03e26e477 Update to 2.27
Remove aarch64 patches which are now upstream
Disable new x86 relocation to avoid incompatibilities with the old base binutils
Activate all targets on the default binutils (requested by royger@)
Add a RELRO option (default off) to be able to define the default behaviour of
ld(1) on passing or not -z relro
2016-08-26 14:18:50 +00:00
Ed Maste
5bed7c7337 Enable determinstic archives by default in GNU ar
Approved by:	bapt
2016-06-09 22:43:52 +00:00
Dmitry Marakasov
1d1f878054 - Fix trailing whitespace in pkg-descrs, categories [a-f]*
Approved by:	portmgr blanket
2016-05-19 10:21:23 +00:00
Baptiste Daroussin
6c7ad0e828 Fix port when BUREMOVE is not defined 2016-04-13 07:00:42 +00:00
Ed Schouten
d0b20036ad Switch the cloudabi-toolchain port over to llvm-devel.
Farnsworth: "Good news, everyone!" The latest revisions of LLVM trunk
not only have a version of LLD that creates usable binaries for x86-64
and aarch64, it also does a better job at creating Position Independent
Executables than the GNU linker.

Because PIE is going to become pretty important for some of the upcoming
projects (emulation on other OSes), I'd like to go ahead and switch the
cloudabi-toolchain port over to the latest snapshot of LLVM. My goal is
to revert back to a stable version (3.9) when available.

Switching to LLD involves patching up the Binutils ports to no longer
install the GNU linker (and remove the linker scripts that it uses). We
can then simply add a couple of extra symlinks to cloudabi-toolchain to
point to the LLD binary.

At the same time, let's switch over to using the ELF toolchain tools on
FreeBSD 11. That way we can even drop the dependency on Binutils on
those systems.

Reviewed by:	bapt, emaste
Differential Revision:	https://reviews.freebsd.org/D5874
2016-04-13 06:41:56 +00:00
Mathieu Arnold
4e1b79a0a6 Remove ${PORTSDIR}/ from dependencies, categories d, e, f, and g.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:00:51 +00:00
Andrew Turner
2fd073c5b5 Stop calling sbrk from binutils. This will help remive the need for this
function on arm64.

PR:		208255
Approved by:	bapt
Sponsored by:	ABT Systems Ltd
2016-03-29 14:09:47 +00:00
Ed Schouten
4d4b697954 Extend the Binutils ports to allow deletion of specific tools.
For CloudABI I slowly want to switch away from certain tools provided by
Binutils. For example, it would be really nice if we could switch from
GNU ld to LLD some time in the future. LLD is not ready yet. Some bug
fixes didn't manage to land into 3.8 and it doesn't support aarch64
properly. There are already some tools that we can use, such as nm,
objdump, size, ar and ranlib.

Introduce a BUREMOVE variable that can be set in Binutils slave ports to
remove specific utilities that are installed by default. There doesn't
seem to be any other elegant way to solve this. Set a bunch of utilities
by default and then extend cloudabi-clang to set up symlinks to the LLVM
versions of the tools.

Reviewed by:	bapt
Differential Revision:	https://reviews.freebsd.org/D5684
2016-03-21 19:32:23 +00:00
Baptiste Daroussin
e164a344f1 Revert update to binutils 2.25.1 and bump portepoch to reflect that revert
binutils has build issues on 10.x i386 and is full of regressions on 9.x:
unexpected build failures on nss and others

Reported by:	antoine
Pointyhat to:	bapt
2016-01-27 07:49:45 +00:00
Baptiste Daroussin
0d9b5790d6 Update binutils to 2.26 2016-01-26 19:25:29 +00:00
Mathieu Arnold
7f0f664d7e Drop 8 support.
With hat:	portmgr
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D3694
2015-10-15 14:55:14 +00:00
Baptiste Daroussin
e272da95b7 Update to 2.25.1 2015-07-25 09:57:39 +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
Dimitry Andric
739c18f83e Fix undefined behavior in gas/contrib/tc-arm.c's rotate_left() macro,
similar to https://svnweb.freebsd.org/base?view=revision&revision=274856

This fixes possible "invalid constant after fixup" errors from gas, when
it has been compiled with high levels of optimization.

Obtained from:	binutils commit d840c081f8082e8b9e63fead5306643975a97bb3
PR:		197806
Approved by:	maintainer (bapt)
2015-02-18 22:23:06 +00:00
Sean Bruno
30e3cf13fb Add mips64 to list of ARCH that disable gold.
Enables binutils for MIPS64
2015-02-12 17:44:34 +00:00
Baptiste Daroussin
6040c7f0da Remove @dirrm entries 2015-02-04 23:40:06 +00:00
Ed Maste
8d1f655216 Update aarch64 patch for binutils 2.25
Approved by:	bapt
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D1516
2015-01-13 21:26:59 +00:00
Antoine Brodin
2b3747ab7f binutils 2.15 turned "no group info for section" from a warning to an error
On FreeBSD 8.x, a dozen of ports exhibit this warning so allow it again

Approved by:	maintainer
2014-12-26 22:02:20 +00:00
Antoine Brodin
c2f6f44afb avr-binutils patch has to be updated for binutils 2.25 2014-12-26 18:40:20 +00:00
Baptiste Daroussin
2ae9bc50f6 Do not build gold if compiler is clang version lower to 3.4
Reported by:	many
2014-12-26 18:23:53 +00:00
Baptiste Daroussin
e263287c61 Update binutils to 2.25
This release incorporates most of the FreeBSD patches
Mark aach64 as broken as the patchset needs to be updated
2014-12-25 22:48:42 +00:00
Dmitry Marakasov
caf35a8b6b - Unbreak build on mips, gold is not build there
PR:		196027
Submitted by:	amdmi3
Approved by:	bapt
2014-12-19 17:34:18 +00:00
Ed Maste
e3935acbc0 Add 64-bit ARM binutils port
This is a port version of Andrew Turner's AArch64-FreeBSD binutils git
branch, https://github.com/zxombie/aarch64-freebsd-binutils

Reviewed by:	bapt
Approvied by:	bapt
Differential Revision: https://reviews.freebsd.org/D912
2014-11-11 22:41:57 +00:00
Andrew Turner
c3d8b8b1d2 Don't remove the directory containing the tools when
PKGNAMEPREFIX == BUTARGET.

Differential Revision:	https://reviews.freebsd.org/D968
Approved by:	bapt
2014-10-20 16:51:10 +00:00
Antoine Brodin
7a867a3e13 Fix i386-linux-binutils 2014-10-11 21:42:10 +00:00
Baptiste Daroussin
1bf999a060 Integrate a sparc64 patch from base version of binutils
Submitted by:	marius
2014-10-10 14:38:39 +00:00
Baptiste Daroussin
36eae11317 Add size into the bin/ directory 2014-10-10 07:26:24 +00:00
Baptiste Daroussin
3c371f6783 Remove now useless plist entries 2014-09-22 07:10:00 +00:00
Baptiste Daroussin
e34b28815e Allow to specify full target directly from the slave 2014-09-10 06:05:46 +00:00
Baptiste Daroussin
c96b3db2c6 Make the cross binutils able to tweak his sysroot 2014-08-31 17:32:07 +00:00
Baptiste Daroussin
e014f33ecc Make the port ready to have slave ports for cross building targets 2014-08-29 23:22:53 +00:00
Baptiste Daroussin
95c499bbd7 Import arm support patches
Take maintainership [1]
Convert to USES=libtool

Approved by:	zeising [1]
Tested by:	sbruno
2014-08-29 17:12:34 +00:00
Martin Wilke
d0404ab4ed - Convert gmake, bzip2 to USES
Approved by:	portmgr
2014-05-29 15:09:42 +00:00
John Marino
ff91fe3b9f devel/binutils: Revert r353788, it was already covered
I forgot that this port was already fixed in arguably a better way:
In dports, the Makefile.DragonFly file contains this:

  .if ${DFLYVERSION} > 300702
  CONFIGURE_ARGS+= --with-lib-path=/lib:/usr/lib
  .endif

The main makefile should probably have the CONFIGURE_ARGS+= line
added to it unconditionally because it doesn't make sense to
search /usr/local/lib when PORTSDIR != /usr/local.

So DragonFly is fine with the original fix, but FreeBSD should
look at taking it.  I don't think the DFLYVERSION needs to be checked
either.
2014-05-12 11:17:44 +00:00