forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'freebsd10.2' of github.com:nigoro/gentoo
Reviewed-by: Michał Górny <[email protected]>
- Loading branch information
Showing
54 changed files
with
2,880 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.. | ||
../../../../../../arch/amd64-fbsd/clang |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Copyright 1999-2015 Gentoo Foundation. | ||
# Distributed under the terms of the GNU General Public License, v2 | ||
# $Id$ | ||
|
||
CHOST="x86_64-gentoo-freebsd10.2" | ||
CHOST_amd64_fbsd="x86_64-gentoo-freebsd10.2" | ||
CHOST_x86_fbsd="i686-gentoo-freebsd10.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# >=dev-lang/python-3.2 requires threads, #494744 | ||
=dev-lang/python-3.2* threads | ||
=dev-lang/python-3.3* threads | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.. | ||
../../../../../releases/freebsd-10.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Copyright 1999-2015 Gentoo Foundation. | ||
# Distributed under the terms of the GNU General Public License, v2 | ||
# $Id$ | ||
|
||
CHOST="i486-gentoo-freebsd10.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.. | ||
../../../../../releases/freebsd-10.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Copyright 1999-2015 Gentoo Foundation. | ||
# Distributed under the terms of the GNU General Public License, v2 | ||
# $Id$ | ||
|
||
# Make sure we don't get wrong versions | ||
<sys-freebsd/freebsd-pam-modules-10.2_alpha | ||
>sys-freebsd/freebsd-pam-modules-10.2.99 | ||
<sys-freebsd/freebsd-rescue-10.2_alpha | ||
>sys-freebsd/freebsd-rescue-10.2.99 | ||
<sys-freebsd/freebsd-pf-10.2_alpha | ||
>sys-freebsd/freebsd-pf-10.2.99 | ||
<sys-freebsd/freebsd-mk-defs-10.2_alpha | ||
>sys-freebsd/freebsd-mk-defs-10.2.99 | ||
<sys-freebsd/freebsd-lib-10.2_alpha | ||
>sys-freebsd/freebsd-lib-10.2.99 | ||
<sys-freebsd/freebsd-libexec-10.2_alpha | ||
>sys-freebsd/freebsd-libexec-10.2.99 | ||
<sys-freebsd/freebsd-bin-10.2_alpha | ||
>sys-freebsd/freebsd-bin-10.2.99 | ||
<sys-freebsd/freebsd-sbin-10.2_alpha | ||
>sys-freebsd/freebsd-sbin-10.2.99 | ||
<sys-freebsd/freebsd-ubin-10.2_alpha | ||
>sys-freebsd/freebsd-ubin-10.2.99 | ||
>sys-freebsd/freebsd-usbin-10.2.99 | ||
<sys-freebsd/freebsd-share-10.2_alpha | ||
>sys-freebsd/freebsd-share-10.2.99 | ||
<sys-freebsd/freebsd-contrib-10.2_alpha | ||
>sys-freebsd/freebsd-contrib-10.2.99 | ||
>sys-freebsd/freebsd-cddl-10.2.99 | ||
<sys-freebsd/boot0-10.2_alpha | ||
>sys-freebsd/boot0-10.2.99 | ||
<sys-freebsd/freebsd-sources-10.2_alpha | ||
>sys-freebsd/freebsd-sources-10.2.99 | ||
|
||
# Mask version of -cddl and -usbin is different for ease of upgrade. bug #491774 | ||
# Please keep <freebsd-cddl-9.2_alpha and <freebsd-usbin-9.1_alpha. | ||
<sys-freebsd/freebsd-cddl-9.2_alpha | ||
<sys-freebsd/freebsd-usbin-9.1_alpha | ||
|
||
# Alexis Ballier <[email protected]> (07 Nov 2011) | ||
# It is in freebsd-ubin starting from FreeBSD 9.0 | ||
sys-process/fuser-bsd | ||
|
||
# Alexis Ballier <[email protected]> (11 May 2012) | ||
# freebsd-lib provides a utempter compatible interface starting from FreeBSD 9.0 | ||
# via libulog. | ||
# this package does not build anymore as it requires utmp | ||
sys-libs/libutempter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Copyright 1999-2015 Gentoo Foundation. | ||
# Distributed under the terms of the GNU General Public License, v2 | ||
# $Id$ | ||
|
||
# freebsd-sources[build-generic] requires clang | ||
sys-devel/llvm clang |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Copyright 1999-2015 Gentoo Foundation. | ||
# Distributed under the terms of the GNU General Public License, v2 | ||
# $Id$ | ||
|
||
*>=sys-apps/baselayout-2.0.0 | ||
*>=sys-apps/openrc-0.2.5 | ||
|
||
# Not necessary dev-libs/libiconv and freebsd-contrib in 10.0 and later. | ||
-*dev-libs/libiconv | ||
-*sys-freebsd/freebsd-contrib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Copyright 1999-2015 Gentoo Foundation. | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
-dev-libs/libiconv | ||
-sys-freebsd/freebsd-contrib | ||
sys-freebsd/freebsd-share |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Copyright 1999-2015 Gentoo Foundation. | ||
# Distributed under the terms of the GNU General Public License, v2 | ||
# $Id$ | ||
|
||
bsd-fbsd10fix(){ | ||
# http://svnweb.freebsd.org/ports/head/Mk/bsd.port.mk | ||
|
||
for f in `find ${WORKDIR} -type f \( -name config.libpath -o \ | ||
-name config.rpath -o -name configure -o -name libtool.m4 -o \ | ||
-name ltconfig -o -name libtool -o -name aclocal.m4 -o \ | ||
-name acinclude.m4 \)` ; do \ | ||
sed -i.fbsd10bak \ | ||
-e 's|freebsd1\*)|freebsd1.\*)|g' \ | ||
-e 's|freebsd\[12\]\*)|freebsd[12].*)|g' \ | ||
-e 's|freebsd\[123\]\*)|freebsd[123].*)|g' \ | ||
-e 's|freebsd\[\[12\]\]\*)|freebsd[[12]].*)|g' \ | ||
-e 's|freebsd\[\[123\]\]\*)|freebsd[[123]].*)|g' \ | ||
${f} ; \ | ||
touch -mr ${f}.fbsd10bak ${f} ; \ | ||
rm -f ${f}.fbsd10bak ; \ | ||
einfo "===> FreeBSD 10 autotools fix applied to ${f}"; \ | ||
done | ||
} | ||
|
||
if [[ -n $EAPI ]] ; then | ||
case "$EAPI" in | ||
0|1) | ||
post_src_unpack() { bsd-patch_install-sh ; bsd-fbsd10fix ; } | ||
;; | ||
*) | ||
post_src_prepare() { bsd-patch_install-sh ; bsd-fbsd10fix ; } | ||
;; | ||
esac | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
DIST freebsd-contrib-9.1.tar.bz2 54751432 SHA256 e7ffa056d4050ce03ee8e23e276e2a9a494326a98d60c43bee2afcc59576deb8 SHA512 71be13049258c6e6b5e4f63cc16da5d349a89d68f04d87446e4ad33ae8bf2a93ea67d9c256b7bec60b61e65db0487268070cfb77a484c3ac0f8ba368b48c2438 WHIRLPOOL a2a84423175499208d34809e802284d6ba649f317c3a9ad8b7312fa19efe142ebadab0048bac0db8e988e59f9a7468ac7c5d0d25e78b82bdb269a20d18153cee | ||
DIST freebsd-lib-9.1.tar.bz2 3206685 SHA256 f31fa8107b4de711c548f6d0c1bb1f81d09f51bcc3b14a1e9e90bb0e7cc4a35d SHA512 40d0c36b6b889c404fa0e0afa38ba4e84a55bc88ffa2f98a70afbd7a32c4f32c158617ba770567d082a986d62c09b3ec8db3dc5ab853ee1c9bbe0b90bb82396e WHIRLPOOL 581878bf9c43184b043b4293409b85901c9ed1f9bd279e965414aca41ba50950848ebda3ee10a503a028135dfd2765e95a11acd4e62a11c528e104392bbbd8d0 | ||
DIST freebsd-src-10.1.tar.xz 115049476 SHA256 f919287a5ef51d4f133f27c99c54f2e8054f408d3dd53bc60f4e233cc75ec03d SHA512 4ded32b451e2807e24a06305502f88ea633b2899a7ccd9cab3dc98fc865ef91324c93c512a08cf6e295313a8d7e79aa9d7af07da40e7276d986b06419b984152 WHIRLPOOL 1eff9419d89b8a70f064171883d92e160b250cd637972eb9107a19d7b3c904b554c4f51eaa9ff9642ef2c4234bde05cf9aef16d0c39280b55084f831700dea80 | ||
DIST freebsd-src-10.2.tar.xz 124551336 SHA256 6a59ea716bae96135983ad70cd7123e3b35ec91b191a82fe282ade88a61560b1 SHA512 fba4588fdaa94fa4582a8de566a84cf4f2badc87c7b2e0745d7a31c1e349b2d5f59dbdbb16a9d43421155c1ac4bdec8db24c5d32ac5a92be687d4ed70fe35835 WHIRLPOOL e325db3c07118762021d802c4f20c7a5fd4b816f08cab6f92b408399f1b3bf8ad89728d51c354ab21478265a4539463c94aae9ae49f0ac10cd3c3f8f640dc186 | ||
DIST freebsd-sys-8.2.tar.bz2 25835329 SHA256 0c6c7b61aae94db2931f985d5899f3bca78fc8ffab6b598fbaa158142d676f16 SHA512 6ea4516a5c52e25c4f993f7acb875463a5caea93dbdf250c5d48eee95fff226956e9f030cab7e341b5e6a132325bc3dbf93dcb4b1185acb011918e50b1a22be3 WHIRLPOOL 870deeff877c6b9fc812a4260e4fdbb6715a5dc2065cab3bfbf2a42d876f6654703ccb124275a4e2c410cef48f3db02b63cc76059eccf9cf90244826f35b7a15 | ||
DIST freebsd-sys-9.1.tar.bz2 32588103 SHA256 b93a7ac8334ac16cc9f60665048e5ef812c0a6c62f10d0b0a674aec3f56516a8 SHA512 7dc9d9e00dde8f592bb171f4386d02b655b73cb4f153fe5ec063d010a148ef0639eae0dcdb3eeb09ecd1e3653c69e49a2d261329fa6d0381d2ddabe258ddde6d WHIRLPOOL c8348344dfb14bad64bd3a78ee615ddd29203175b292233254f8ba175e7a3fb7218af6f95f7b4dbf394c0354bafe9d8bb0c21cdf0ceaeb697214964b280469b3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# Copyright 1999-2015 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
EAPI=5 | ||
|
||
inherit bsdmk freebsd flag-o-matic toolchain-funcs | ||
|
||
DESCRIPTION="FreeBSD's bootloader" | ||
SLOT="0" | ||
|
||
IUSE="bzip2 ieee1394 tftp zfs" | ||
|
||
if [[ ${PV} != *9999* ]]; then | ||
KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd" | ||
fi | ||
|
||
EXTRACTONLY=" | ||
sys/ | ||
lib/ | ||
contrib/bzip2/ | ||
" | ||
|
||
RDEPEND="" | ||
DEPEND="=sys-freebsd/freebsd-mk-defs-${RV}* | ||
=sys-freebsd/freebsd-lib-${RV}*" | ||
|
||
S="${WORKDIR}/sys/boot" | ||
|
||
PATCHES=( "${FILESDIR}/${PN}-10.1-gcc46.patch" | ||
"${FILESDIR}/${PN}-10.1-drop-unsupport-cflags.patch" | ||
"${FILESDIR}/${PN}-add-nossp-cflags.patch" ) | ||
|
||
boot0_use_enable() { | ||
use ${1} && mymakeopts="${mymakeopts} LOADER_${2}_SUPPORT=\"yes\"" | ||
use ${1} || mymakeopts="${mymakeopts} WITHOUT_${2}= " | ||
} | ||
|
||
pkg_setup() { | ||
boot0_use_enable ieee1394 FIREWIRE | ||
boot0_use_enable zfs ZFS | ||
boot0_use_enable tftp TFTP | ||
boot0_use_enable bzip2 BZIP2 | ||
} | ||
|
||
src_prepare() { | ||
sed -e '/-mno-align-long-strings/d' \ | ||
-i "${S}"/i386/boot2/Makefile \ | ||
-i "${S}"/i386/gptboot/Makefile \ | ||
-i "${S}"/i386/gptzfsboot/Makefile \ | ||
-i "${S}"/i386/zfsboot/Makefile || die | ||
} | ||
|
||
src_compile() { | ||
strip-flags | ||
append-flags "-fno-strict-aliasing" | ||
|
||
if use amd64-fbsd; then | ||
cd "${S}/userboot/libstand" || die | ||
freebsd_src_compile | ||
cd "${S}/userboot/zfs" || die | ||
freebsd_src_compile | ||
fi | ||
|
||
cd "${S}/libstand32" || die | ||
freebsd_src_compile | ||
|
||
# bug542676 | ||
if [[ $(tc-getCC) == *clang* ]]; then | ||
cd "${S}/i386/btx" || die | ||
freebsd_src_compile | ||
cd "${S}/i386/boot2" || die | ||
CC=${CHOST}-gcc freebsd_src_compile | ||
fi | ||
|
||
cd "${WORKDIR}/lib/libstand" || die | ||
freebsd_src_compile | ||
|
||
cd "${S}" | ||
CFLAGS="${CFLAGS} -I${WORKDIR}/lib/libstand" | ||
LDFLAGS="${LDFLAGS} -L${WORKDIR}/lib/libstand" | ||
export LIBSTAND="${WORKDIR}/lib/libstand/libstand.a" | ||
NOFLAGSTRIP="yes" freebsd_src_compile | ||
} | ||
|
||
src_install() { | ||
dodir /boot/defaults | ||
mkinstall FILESDIR=/boot || die "mkinstall failed" | ||
|
||
cd "${WORKDIR}/sys/$(tc-arch-kernel)/conf" || die | ||
insinto /boot | ||
newins GENERIC.hints device.hints | ||
|
||
echo 'CONFIG_PROTECT="/boot/device.hints"' > "${T}"/50boot0 | ||
doenvd "${T}"/50boot0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Copyright 1999-2015 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
EAPI=5 | ||
|
||
inherit bsdmk freebsd | ||
|
||
DESCRIPTION="FreeBSD /bin tools" | ||
SLOT="0" | ||
|
||
IUSE="" | ||
|
||
if [[ ${PV} != *9999* ]]; then | ||
KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd" | ||
fi | ||
|
||
EXTRACTONLY=" | ||
bin/ | ||
usr.bin/ | ||
sbin/ | ||
lib/ | ||
" | ||
|
||
RDEPEND="=sys-freebsd/freebsd-lib-${RV}* | ||
>=dev-libs/libedit-20120311.3.0-r1 | ||
sys-libs/ncurses | ||
sys-apps/ed | ||
!app-misc/realpath | ||
!<sys-freebsd/freebsd-ubin-8" | ||
DEPEND="${RDEPEND} | ||
=sys-freebsd/freebsd-mk-defs-${RV}* | ||
>=sys-devel/flex-2.5.31-r2" | ||
|
||
S=${WORKDIR}/bin | ||
|
||
# csh and tcsh are provided by tcsh package, rmail is sendmail stuff. | ||
REMOVE_SUBDIRS="csh rmail ed freebsd-version" | ||
|
||
pkg_setup() { | ||
mymakeopts="${mymakeopts} WITHOUT_TCSH= WITHOUT_SENDMAIL= WITHOUT_RCMDS= " | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.