CROSSCOMPILE_OPTS is a USE_EXPAND of a single item: headers-only.
Convert it to a global USE flag instead.
Mechanical ebuild rename done as:
$ sed -e 's@crosscompile_opts_headers-only@headers-only@g' \
-i $(git grep -l headers-only)
'headers-only' flag is used by crossdev to bootstrap stage1 compiler
before libc is available.
crossdev switched to USE=headers-only in =sys-devel/crossdev-
20171230.
Bug: https://bugs.gentoo.org/642712
Package-Manager: Portage-2.3.19, Repoman-2.3.6
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
fi
IUSE="atm bluetooth ssl hesiod ipv6 kerberos usb netware
- build crosscompile_opts_headers-only zfs pam xinetd
+ build headers-only zfs pam xinetd
userland_GNU userland_BSD"
QA_DT_NEEDED="lib/libc.so.7 usr/lib32/libc.so.7"
cd "${WORKDIR}/include"
$(freebsd_get_bmake) CC="$(tc-getCC)" SRCTOP="${WORKDIR}" || die "make include failed"
- use crosscompile_opts_headers-only && return 0
+ use headers-only && return 0
# Bug #270098
append-flags $(test-flags -fno-strict-aliasing)
CTARGET="${CHOST}" \
install_includes ${INCLUDEDIR}
- is_crosscompile && use crosscompile_opts_headers-only && return 0
+ is_crosscompile && use headers-only && return 0
# Install a libusb.pc for better compat with Linux's libusb
if use usb ; then
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=2
fi
IUSE="atm bluetooth ssl hesiod ipv6 kerberos usb netware
- build bootstrap crosscompile_opts_headers-only"
+ build bootstrap headers-only"
pkg_setup() {
[ -c /dev/zero ] || \
cd "${WORKDIR}/include"
$(freebsd_get_bmake) CC="$(tc-getCC)" || die "make include failed"
- use crosscompile_opts_headers-only && return 0
+ use headers-only && return 0
# Bug #270098
append-flags $(test-flags -fno-strict-aliasing)
doins "${S}/msun/src/math.h"
fi
- use crosscompile_opts_headers-only && return 0
+ use headers-only && return 0
local mylibdir=$(get_libdir)
if [ "${CTARGET}" != "${CHOST}" ]; then
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
fi
IUSE="atm bluetooth ssl hesiod ipv6 kerberos usb netware
- build crosscompile_opts_headers-only zfs
+ build headers-only zfs
userland_GNU userland_BSD"
QA_DT_NEEDED="lib/libc.so.7 usr/lib32/libc.so.7"
cd "${WORKDIR}/include"
$(freebsd_get_bmake) CC="$(tc-getCC)" || die "make include failed"
- use crosscompile_opts_headers-only && return 0
+ use headers-only && return 0
# Bug #270098
append-flags $(test-flags -fno-strict-aliasing)
CTARGET="${CHOST}" \
install_includes ${INCLUDEDIR}
- is_crosscompile && use crosscompile_opts_headers-only && return 0
+ is_crosscompile && use headers-only && return 0
for i in $(get_subdirs) ; do
einfo "Installing in ${i}..."