Gentoo Archives: gentoo-commits

From: Michael Haubenwallner <haubi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/prefix:master commit in: sys-devel/binutils/
Date: Thu, 02 May 2019 11:09:34
Message-Id: 1556795359.8259df57a50a6e2122f50dc3d0918c14288e7ff0.haubi@gentoo
1 commit: 8259df57a50a6e2122f50dc3d0918c14288e7ff0
2 Author: Michael Haubenwallner <haubi <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 2 10:55:20 2019 +0000
4 Commit: Michael Haubenwallner <haubi <AT> gentoo <DOT> org>
5 CommitDate: Thu May 2 11:09:19 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=8259df57
7
8 sys-devel/binutils: sync
9
10 gold+cxx are p.use.masked in profile now except for linux,
11 not sure if plugins are linux only as well.
12
13 Package-Manager: Portage-2.3.62-prefix, Repoman-2.3.12
14 RepoMan-Options: --force
15 Signed-off-by: Michael Haubenwallner <haubi <AT> gentoo.org>
16
17 sys-devel/binutils/Manifest | 2 +
18 sys-devel/binutils/binutils-2.32-r1.ebuild | 449 +++++++++++++++++++++++++++++
19 sys-devel/binutils/metadata.xml | 23 +-
20 3 files changed, 464 insertions(+), 10 deletions(-)
21
22 diff --git a/sys-devel/binutils/Manifest b/sys-devel/binutils/Manifest
23 index 8e9fc88f0c..f0b01a4653 100644
24 --- a/sys-devel/binutils/Manifest
25 +++ b/sys-devel/binutils/Manifest
26 @@ -6,3 +6,5 @@ DIST binutils-2.29.1-patches-3.tar.xz 20904 BLAKE2B 5549cb2412123e4ad3a13935762c
27 DIST binutils-2.29.1.tar.bz2 29123355 BLAKE2B 83de518a27bae0f13c57b1979493dd7f7cabae424cff5e8495d1f064da24b6ef9e1c19d1d1adad2dca7142372782023f66b4b4223170a49b96ba3834266fe878 SHA512 4063d34555526922376ccceb3f14b43e287442e82a8038cf50f4f51ad97d438c672c0e310ca4b856c9aff5aa9911073e256e8298a7a3f1844eeb60b90d955592
28 DIST binutils-2.31.1-patches-3.tar.xz 12640 BLAKE2B 3444b219dd02ad513e6c36214d649a8a74638382103c88ec8de76a579be0ee13f8d1450e3b8d82dfddad55f2f851b32aee910a99230c7d8673f8426fc79a4cd9 SHA512 67b23c17518305561d190a15cba4a1af18a0a3cf1d7e62583ac7667d2fa40e7c7ec024cc981009d5d1caf1939633ab55fc0a198b69af02dc7841be43ff1acd13
29 DIST binutils-2.31.1.tar.xz 20467996 BLAKE2B 6b914df1fbb7cf54f2159f71b2c2b09f3f6a569b7a3cb4cf9790d0a3733a7548bc0ea32334a178ed3b56e8b97656ae99c7abaf212601beeaeae9a0884c0f6051 SHA512 0fca326feb1d5f5fe505a827b20237fe3ec9c13eaf7ec7e35847fd71184f605ba1cefe1314b1b8f8a29c0aa9d88162849ee1c1a3e70c2f7407d88339b17edb30
30 +DIST binutils-2.32-patches-2.tar.xz 145672 BLAKE2B 8218e621f99cb4bcd1638c3011449b94480d207eaeb79cf75c0072e0f1a86bfd1603fc4515bc40d3ac1921a18b9a211b20568f59b11b13eb44e6cff1329c5af9 SHA512 55c25a603f6175af3ade6848e5c1faba06a147d72e9a4f53d44502d97db76499485a67b278a654d18884714a7bf7b360c77c9e42dba3cdc188f805bfe461f09f
31 +DIST binutils-2.32.tar.xz 20774880 BLAKE2B d1bdbd9c8487c091665c197974ce4bdf520b7a67ed6997a81b87e6a0af9514a091458244f583acec5ae580ac2ee5e908f67f483b8e5263cd18ced794cb235da6 SHA512 d326408f12a03d9a61a9de56584c2af12f81c2e50d2d7e835d51565df8314df01575724afa1e43bd0db45cfc9916b41519b67dfce03232aa4978704492a6994a
32
33 diff --git a/sys-devel/binutils/binutils-2.32-r1.ebuild b/sys-devel/binutils/binutils-2.32-r1.ebuild
34 new file mode 100644
35 index 0000000000..9ec2e77afe
36 --- /dev/null
37 +++ b/sys-devel/binutils/binutils-2.32-r1.ebuild
38 @@ -0,0 +1,449 @@
39 +# Copyright 1999-2019 Gentoo Authors
40 +# Distributed under the terms of the GNU General Public License v2
41 +
42 +EAPI=6
43 +
44 +inherit eutils libtool flag-o-matic gnuconfig multilib versionator
45 +
46 +DESCRIPTION="Tools necessary to build programs"
47 +HOMEPAGE="https://sourceware.org/binutils/"
48 +LICENSE="GPL-3+"
49 +# USE="+cxx" is a transitional flag until llvm migrates to new flags:
50 +# bug #677888
51 +IUSE="+cxx default-gold doc +gold multitarget +nls +plugins static-libs test"
52 +REQUIRED_USE="cxx? ( gold plugins ) default-gold? ( gold )"
53 +
54 +# Variables that can be set here:
55 +# PATCH_VER - the patchset version
56 +# Default: empty, no patching
57 +# PATCH_BINUTILS_VER - the binutils version in the patchset name
58 +# - Default: PV
59 +# PATCH_DEV - Use download URI https://dev.gentoo.org/~{PATCH_DEV}/distfiles/...
60 +# for the patchsets
61 +# Default: dilfridge :)
62 +
63 +PATCH_VER=2
64 +PATCH_DEV=dilfridge
65 +
66 +case ${PV} in
67 + 9999)
68 + EGIT_REPO_URI="https://sourceware.org/git/binutils-gdb.git"
69 + inherit git-r3
70 + S=${WORKDIR}/binutils
71 + EGIT_CHECKOUT_DIR=${S}
72 + SLOT=${PV}
73 + ;;
74 + *.9999)
75 + EGIT_REPO_URI="https://sourceware.org/git/binutils-gdb.git"
76 + inherit git-r3
77 + S=${WORKDIR}/binutils
78 + EGIT_CHECKOUT_DIR=${S}
79 + EGIT_BRANCH=$(get_version_component_range 1-2)
80 + EGIT_BRANCH="binutils-${EGIT_BRANCH/./_}-branch"
81 + SLOT=$(get_version_component_range 1-2)
82 + ;;
83 + *)
84 + SRC_URI="mirror://gnu/binutils/binutils-${PV}.tar.xz"
85 + SLOT=$(get_version_component_range 1-2)
86 + KEYWORDS="~x64-cygwin ~amd64-linux ~x86-linux ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
87 + ;;
88 +esac
89 +
90 +#
91 +# The Gentoo patchset
92 +#
93 +PATCH_BINUTILS_VER=${PATCH_BINUTILS_VER:-${PV}}
94 +PATCH_DEV=${PATCH_DEV:-slyfox}
95 +
96 +[[ -z ${PATCH_VER} ]] || SRC_URI="${SRC_URI}
97 + https://dev.gentoo.org/~${PATCH_DEV}/distfiles/binutils-${PATCH_BINUTILS_VER}-patches-${PATCH_VER}.tar.xz"
98 +
99 +#
100 +# The cross-compile logic
101 +#
102 +export CTARGET=${CTARGET:-${CHOST}}
103 +if [[ ${CTARGET} == ${CHOST} ]] ; then
104 + if [[ ${CATEGORY} == cross-* ]] ; then
105 + export CTARGET=${CATEGORY#cross-}
106 + fi
107 +fi
108 +is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }
109 +
110 +#
111 +# The dependencies
112 +#
113 +RDEPEND="
114 + >=sys-devel/binutils-config-3
115 + sys-libs/zlib
116 +"
117 +DEPEND="${RDEPEND}
118 + doc? ( sys-apps/texinfo )
119 + test? ( dev-util/dejagnu )
120 + nls? ( sys-devel/gettext )
121 + sys-devel/flex
122 + virtual/yacc
123 +"
124 +
125 +MY_BUILDDIR=${WORKDIR}/build
126 +
127 +# Additional patches to apply in default src_prepare
128 +PATCHES=(
129 + "${FILESDIR}"/${PN}-2.22-solaris-anonymous-version-script-fix.patch
130 + "${FILESDIR}"/${PN}-2.24-cygwin-nointl.patch
131 +)
132 +
133 +pkg_setup() {
134 + [[ ${CHOST} == *-mint* ]] && die "mint patches require rebasing to ${P}" # 609274
135 +}
136 +
137 +src_unpack() {
138 + case ${PV} in
139 + *9999)
140 + git-r3_src_unpack
141 + ;;
142 + *)
143 + ;;
144 + esac
145 + default
146 + mkdir -p "${MY_BUILDDIR}"
147 +}
148 +
149 +src_prepare() {
150 + if [[ ! -z ${PATCH_VER} ]] ; then
151 + # Use upstream patch to enable development mode
152 + rm -v "${WORKDIR}/patch"/0000-Gentoo-Git-is-development.patch || die
153 +
154 + einfo "Applying binutils-${PATCH_BINUTILS_VER} patchset ${PATCH_VER}"
155 + eapply "${WORKDIR}/patch"/*.patch
156 + fi
157 +
158 + # This check should probably go somewhere else, like pkg_pretend.
159 + if [[ ${CTARGET} == *-uclibc* ]] ; then
160 + if grep -qs 'linux-gnu' "${S}"/ltconfig ; then
161 + die "sorry, but this binutils doesn't yet support uClibc :("
162 + fi
163 + fi
164 +
165 + # Make sure our explicit libdir paths don't get clobbered. #562460
166 + sed -i \
167 + -e 's:@bfdlibdir@:@libdir@:g' \
168 + -e 's:@bfdincludedir@:@includedir@:g' \
169 + {bfd,opcodes}/Makefile.in || die
170 +
171 + # Fix locale issues if possible #122216
172 + if [[ -e ${FILESDIR}/binutils-configure-LANG.patch ]] ; then
173 + einfo "Fixing misc issues in configure files"
174 + for f in $(find "${S}" -name configure -exec grep -l 'autoconf version 2.13' {} +) ; do
175 + ebegin " Updating ${f/${S}\/}"
176 + patch "${f}" "${FILESDIR}"/binutils-configure-LANG.patch >& "${T}"/configure-patch.log \
177 + || eerror "Please file a bug about this"
178 + eend $?
179 + done
180 + fi
181 +
182 + # Fix conflicts with newer glibc #272594
183 + if [[ -e libiberty/testsuite/test-demangle.c ]] ; then
184 + sed -i 's:\<getline\>:get_line:g' libiberty/testsuite/test-demangle.c
185 + fi
186 +
187 + # Apply things from PATCHES and user dirs
188 + default
189 +
190 + # Run misc portage update scripts
191 + gnuconfig_update
192 + elibtoolize --portage --no-uclibc
193 +}
194 +
195 +toolchain-binutils_bugurl() {
196 + printf "https://bugs.gentoo.org/"
197 +}
198 +toolchain-binutils_pkgversion() {
199 + printf "Gentoo ${PV}"
200 + [[ -n ${PATCH_VER} ]] && printf " p${PATCH_VER}"
201 +}
202 +
203 +src_configure() {
204 + # Setup some paths
205 + LIBPATH=/usr/$(get_libdir)/binutils/${CTARGET}/${PV}
206 + INCPATH=${LIBPATH}/include
207 + DATAPATH=/usr/share/binutils-data/${CTARGET}/${PV}
208 + if is_cross ; then
209 + TOOLPATH=/usr/${CHOST}/${CTARGET}
210 + else
211 + TOOLPATH=/usr/${CTARGET}
212 + fi
213 + BINPATH=${TOOLPATH}/binutils-bin/${PV}
214 +
215 + # Make sure we filter $LINGUAS so that only ones that
216 + # actually work make it through #42033
217 + strip-linguas -u */po
218 +
219 + # Keep things sane
220 + strip-flags
221 +
222 + local x
223 + echo
224 + for x in CATEGORY CBUILD CHOST CTARGET CFLAGS LDFLAGS ; do
225 + einfo "$(printf '%10s' ${x}:) ${!x}"
226 + done
227 + echo
228 +
229 + cd "${MY_BUILDDIR}"
230 + local myconf=()
231 +
232 + if use plugins ; then
233 + myconf+=( --enable-plugins )
234 + fi
235 + # enable gold (installed as ld.gold) and ld's plugin architecture
236 + if use gold ; then
237 + myconf+=( --enable-gold )
238 + if use default-gold; then
239 + myconf+=( --enable-gold=default )
240 + fi
241 + fi
242 +
243 + if use nls ; then
244 + myconf+=( --without-included-gettext )
245 + [[ ${CHOST} == *"-solaris"* ]] && append-libs -lintl
246 + else
247 + myconf+=( --disable-nls )
248 + fi
249 +
250 + myconf+=( --with-system-zlib )
251 +
252 + # For bi-arch systems, enable a 64bit bfd. This matches
253 + # the bi-arch logic in toolchain.eclass. #446946
254 + # We used to do it for everyone, but it's slow on 32bit arches. #438522
255 + case $(tc-arch) in
256 + ppc|sparc|x86) myconf+=( --enable-64-bit-bfd ) ;;
257 + esac
258 +
259 + use multitarget && myconf+=( --enable-targets=all --enable-64-bit-bfd )
260 +
261 + [[ -n ${CBUILD} ]] && myconf+=( --build=${CBUILD} )
262 +
263 + is_cross && myconf+=(
264 + --with-sysroot="${EPREFIX}"/usr/${CTARGET}
265 + --enable-poison-system-directories
266 + )
267 +
268 + # glibc-2.3.6 lacks support for this ... so rather than force glibc-2.5+
269 + # on everyone in alpha (for now), we'll just enable it when possible
270 + has_version ">=${CATEGORY}/glibc-2.5" && myconf+=( --enable-secureplt )
271 + has_version ">=sys-libs/glibc-2.5" && myconf+=( --enable-secureplt )
272 +
273 + # mips can't do hash-style=gnu ...
274 + if [[ $(tc-arch) != mips ]] ; then
275 + myconf+=( --enable-default-hash-style=gnu )
276 + fi
277 +
278 + myconf+=(
279 + --prefix="${EPREFIX}"/usr
280 + --host=${CHOST}
281 + --target=${CTARGET}
282 + --datadir="${EPREFIX}"${DATAPATH}
283 + --datarootdir="${EPREFIX}"${DATAPATH}
284 + --infodir="${EPREFIX}"${DATAPATH}/info
285 + --mandir="${EPREFIX}"${DATAPATH}/man
286 + --bindir="${EPREFIX}"${BINPATH}
287 + --libdir="${EPREFIX}"${LIBPATH}
288 + --libexecdir="${EPREFIX}"${LIBPATH}
289 + --includedir="${EPREFIX}"${INCPATH}
290 + --enable-obsolete
291 + --enable-shared
292 + --enable-threads
293 + # Newer versions (>=2.27) offer a configure flag now.
294 + --enable-relro
295 + # Newer versions (>=2.24) make this an explicit option. #497268
296 + --enable-install-libiberty
297 + --disable-werror
298 + --with-bugurl="$(toolchain-binutils_bugurl)"
299 + --with-pkgversion="$(toolchain-binutils_pkgversion)"
300 + $(use_enable static-libs static)
301 + ${EXTRA_ECONF}
302 + # Disable modules that are in a combined binutils/gdb tree. #490566
303 + --disable-{gdb,libdecnumber,readline,sim}
304 + # Strip out broken static link flags.
305 + # https://gcc.gnu.org/PR56750
306 + --without-stage1-ldflags
307 + # Change SONAME to avoid conflict across
308 + # {native,cross}/binutils, binutils-libs. #666100
309 + --with-extra-soversion-suffix=gentoo-${CATEGORY}-${PN}-$(usex multitarget mt st)
310 + )
311 + echo ./configure "${myconf[@]}"
312 + "${S}"/configure "${myconf[@]}" || die
313 +
314 + # Prevent makeinfo from running if doc is unset.
315 + if ! use doc ; then
316 + sed -i \
317 + -e '/^MAKEINFO/s:=.*:= true:' \
318 + Makefile || die
319 + fi
320 +}
321 +
322 +src_compile() {
323 + cd "${MY_BUILDDIR}"
324 + # see Note [tooldir hack for ldscripts]
325 + emake tooldir="${EPREFIX}${TOOLPATH}" all
326 +
327 + # only build info pages if the user wants them
328 + if use doc ; then
329 + emake info
330 + fi
331 +
332 + # we nuke the manpages when we're left with junk
333 + # (like when we bootstrap, no perl -> no manpages)
334 + find . -name '*.1' -a -size 0 -delete
335 +}
336 +
337 +src_test() {
338 + cd "${MY_BUILDDIR}"
339 +
340 + # bug 637066
341 + filter-flags -Wall -Wreturn-type
342 +
343 + # enable verbose test run and result logging
344 + emake -k check RUNTESTFLAGS='-a -v' VERBOSE=1
345 +}
346 +
347 +src_install() {
348 + local x d
349 +
350 + cd "${MY_BUILDDIR}"
351 + # see Note [tooldir hack for ldscripts]
352 + emake DESTDIR="${D}" tooldir="${EPREFIX}${LIBPATH}" install
353 + rm -rf "${ED}"/${LIBPATH}/bin
354 + use static-libs || find "${ED}" -name '*.la' -delete
355 +
356 + # Newer versions of binutils get fancy with ${LIBPATH} #171905
357 + cd "${ED}"/${LIBPATH}
358 + for d in ../* ; do
359 + [[ ${d} == ../${PV} ]] && continue
360 + mv ${d}/* . || die
361 + rmdir ${d} || die
362 + done
363 +
364 + # Now we collect everything intp the proper SLOT-ed dirs
365 + # When something is built to cross-compile, it installs into
366 + # /usr/$CHOST/ by default ... we have to 'fix' that :)
367 + if is_cross ; then
368 + cd "${ED}"/${BINPATH}
369 + for x in * ; do
370 + mv ${x} ${x/${CTARGET}-}
371 + done
372 +
373 + if [[ -d ${ED}/usr/${CHOST}/${CTARGET} ]] ; then
374 + mv "${ED}"/usr/${CHOST}/${CTARGET}/include "${ED}"/${INCPATH}
375 + mv "${ED}"/usr/${CHOST}/${CTARGET}/lib/* "${ED}"/${LIBPATH}/
376 + rm -r "${ED}"/usr/${CHOST}/{include,lib}
377 + fi
378 + fi
379 + insinto ${INCPATH}
380 + local libiberty_headers=(
381 + # Not all the libiberty headers. See libiberty/Makefile.in:install_to_libdir.
382 + demangle.h
383 + dyn-string.h
384 + fibheap.h
385 + hashtab.h
386 + libiberty.h
387 + objalloc.h
388 + splay-tree.h
389 + )
390 + doins "${libiberty_headers[@]/#/${S}/include/}" || die
391 + if [[ -d ${ED}/${LIBPATH}/lib ]] ; then
392 + mv "${ED}"/${LIBPATH}/lib/* "${ED}"/${LIBPATH}/
393 + rm -r "${ED}"/${LIBPATH}/lib
394 + fi
395 +
396 + # Generate an env.d entry for this binutils
397 + insinto /etc/env.d/binutils
398 + cat <<-EOF > "${T}"/env.d
399 + TARGET="${CTARGET}"
400 + VER="${PV}"
401 + LIBPATH="${EPREFIX}${LIBPATH}"
402 + EOF
403 + newins "${T}"/env.d ${CTARGET}-${PV}
404 +
405 + # Handle documentation
406 + if ! is_cross ; then
407 + cd "${S}"
408 + dodoc README
409 + docinto bfd
410 + dodoc bfd/ChangeLog* bfd/README bfd/PORTING bfd/TODO
411 + docinto binutils
412 + dodoc binutils/ChangeLog binutils/NEWS binutils/README
413 + docinto gas
414 + dodoc gas/ChangeLog* gas/CONTRIBUTORS gas/NEWS gas/README*
415 + docinto gprof
416 + dodoc gprof/ChangeLog* gprof/TEST gprof/TODO gprof/bbconv.pl
417 + docinto ld
418 + dodoc ld/ChangeLog* ld/README ld/NEWS ld/TODO
419 + docinto libiberty
420 + dodoc libiberty/ChangeLog* libiberty/README
421 + docinto opcodes
422 + dodoc opcodes/ChangeLog*
423 + fi
424 +
425 + # Remove shared info pages
426 + rm -f "${ED}"/${DATAPATH}/info/{dir,configure.info,standards.info}
427 +
428 + # Trim all empty dirs
429 + find "${ED}" -depth -type d -exec rmdir {} + 2>/dev/null
430 +}
431 +
432 +pkg_postinst() {
433 + # Make sure this ${CTARGET} has a binutils version selected
434 + [[ -e ${EROOT}/etc/env.d/binutils/config-${CTARGET} ]] && return 0
435 + binutils-config ${CTARGET}-${PV}
436 +}
437 +
438 +pkg_postrm() {
439 + local current_profile=$(binutils-config -c ${CTARGET})
440 +
441 + # If no other versions exist, then uninstall for this
442 + # target ... otherwise, switch to the newest version
443 + # Note: only do this if this version is unmerged. We
444 + # rerun binutils-config if this is a remerge, as
445 + # we want the mtimes on the symlinks updated (if
446 + # it is the same as the current selected profile)
447 + if [[ ! -e ${EPREFIX}${BINPATH}/ld ]] && [[ ${current_profile} == ${CTARGET}-${PV} ]] ; then
448 + local choice=$(binutils-config -l | grep ${CTARGET} | awk '{print $2}')
449 + choice=${choice//$'\n'/ }
450 + choice=${choice/* }
451 + if [[ -z ${choice} ]] ; then
452 + env -i ROOT="${ROOT}" binutils-config -u ${CTARGET}
453 + else
454 + binutils-config ${choice}
455 + fi
456 + elif [[ $(CHOST=${CTARGET} binutils-config -c) == ${CTARGET}-${PV} ]] ; then
457 + binutils-config ${CTARGET}-${PV}
458 + fi
459 +}
460 +
461 +# Note [slotting support]
462 +# -----------------------
463 +# Gentoo's layout for binutils files is non-standard as Gentoo
464 +# supports slotted installation for binutils. Many tools
465 +# still expect binutils to reside in known locations.
466 +# binutils-config package restores symlinks into known locations,
467 +# like:
468 +# /usr/bin/${CTARGET}-<tool>
469 +# /usr/bin/${CHOST}/${CTARGET}/lib/ldscrips
470 +# /usr/include/
471 +#
472 +# Note [tooldir hack for ldscripts]
473 +# ---------------------------------
474 +# Build system does not allow ./configure to tweak every location
475 +# we need for slotting binutils hence all the shuffling in
476 +# src_install(). This note is about SCRIPTDIR define handling.
477 +#
478 +# SCRIPTDIR defines 'ldscripts/' directory location. SCRIPTDIR value
479 +# is set at build-time in ld/Makefile.am as: 'scriptdir = $(tooldir)/lib'
480 +# and hardcoded as -DSCRIPTDIR='"$(scriptdir)"' at compile time.
481 +# Thus we can't just move files around after compilation finished.
482 +#
483 +# Our goal is the following:
484 +# - at build-time set scriptdir to point to symlinked location:
485 +# ${TOOLPATH}: /usr/${CHOST} (or /usr/${CHOST}/${CTARGET} for cross-case)
486 +# - at install-time set scriptdir to point to slotted location:
487 +# ${LIBPATH}: /usr/$(get_libdir)/binutils/${CTARGET}/${PV}
488
489 diff --git a/sys-devel/binutils/metadata.xml b/sys-devel/binutils/metadata.xml
490 index 3b4e0782a8..66f4f23df4 100644
491 --- a/sys-devel/binutils/metadata.xml
492 +++ b/sys-devel/binutils/metadata.xml
493 @@ -1,14 +1,17 @@
494 <?xml version="1.0" encoding="UTF-8"?>
495 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
496 <pkgmetadata>
497 -<maintainer type="project">
498 -<email>toolchain@g.o</email>
499 -<name>Gentoo Toolchain Project</name>
500 -</maintainer>
501 -<use>
502 -<flag name="multitarget">Adds support to binutils for cross compiling (does not work with gas)</flag>
503 -</use>
504 -<upstream>
505 -<remote-id type="cpe">cpe:/a:gnu:binutils</remote-id>
506 -</upstream>
507 + <maintainer type="project">
508 + <email>toolchain@g.o</email>
509 + <name>Gentoo Toolchain Project</name>
510 + </maintainer>
511 + <use>
512 + <flag name="default-gold">Set ld to point to ld.gold instead of ld.bfd</flag>
513 + <flag name="gold">Build ld.gold linker</flag>
514 + <flag name="plugins">Enable plugin support in tools</flag>
515 + <flag name="multitarget">Adds support to binutils for cross compiling (does not work with gas)</flag>
516 + </use>
517 + <upstream>
518 + <remote-id type="cpe">cpe:/a:gnu:binutils</remote-id>
519 + </upstream>
520 </pkgmetadata>