sys-freebsd/freebsd-sources: Comment out sparc-fbsd code

Comment out the code specific to sparc-fbsd. Since the arch is being
removed, 'use sparc-fbsd' will no longer be valid.
This commit is contained in:
Michał Górny
2018-01-23 11:49:58 +01:00
parent f7f3b4a2e5
commit caac0f8ddb
4 changed files with 28 additions and 28 deletions

View File

@@ -137,18 +137,18 @@ pkg_preinst() {
rm -f "${ROOT}/usr/src/sys"
fi
if use sparc-fbsd ; then
ewarn "WARNING: kldload currently causes kernel panics"
ewarn "on sparc64. This is probably a gcc-4.1 issue, but"
ewarn "we need gcc-4.1 to compile the kernel correctly :/"
ewarn "Please compile all modules you need into the kernel"
fi
# if use sparc-fbsd ; then
# ewarn "WARNING: kldload currently causes kernel panics"
# ewarn "on sparc64. This is probably a gcc-4.1 issue, but"
# ewarn "we need gcc-4.1 to compile the kernel correctly :/"
# ewarn "Please compile all modules you need into the kernel"
# fi
ewarn "If you want to manually compile (not recommended), please don't forget the following steps."
if ! use sparc-fbsd ; then
ewarn "export CC=clang"
ewarn "export CXX=clang++"
fi
# if ! use sparc-fbsd ; then
# ewarn "export CC=clang"
# ewarn "export CXX=clang++"
# fi
if ! use zfs ; then
ewarn "export WITHOUT_CDDL="
ewarn "Note, Please set USE=zfs if you want to enable modules under the CDDL."

View File

@@ -99,10 +99,10 @@ pkg_postinst() {
eerror "Couldn't create ${ROOT}/usr/src/sys-${RV} symlink."
fi
if use sparc-fbsd ; then
ewarn "WARNING: kldload currently causes kernel panics"
ewarn "on sparc64. This is probably a gcc-4.1 issue, but"
ewarn "we need gcc-4.1 to compile the kernel correctly :/"
ewarn "Please compile all modules you need into the kernel"
fi
# if use sparc-fbsd ; then
# ewarn "WARNING: kldload currently causes kernel panics"
# ewarn "on sparc64. This is probably a gcc-4.1 issue, but"
# ewarn "we need gcc-4.1 to compile the kernel correctly :/"
# ewarn "Please compile all modules you need into the kernel"
# fi
}

View File

@@ -74,10 +74,10 @@ pkg_postinst() {
eerror "Couldn't create ${ROOT}/usr/src/sys symlink."
fi
if use sparc-fbsd ; then
ewarn "WARNING: kldload currently causes kernel panics"
ewarn "on sparc64. This is probably a gcc-4.1 issue, but"
ewarn "we need gcc-4.1 to compile the kernel correctly :/"
ewarn "Please compile all modules you need into the kernel"
fi
# if use sparc-fbsd ; then
# ewarn "WARNING: kldload currently causes kernel panics"
# ewarn "on sparc64. This is probably a gcc-4.1 issue, but"
# ewarn "we need gcc-4.1 to compile the kernel correctly :/"
# ewarn "Please compile all modules you need into the kernel"
# fi
}

View File

@@ -87,10 +87,10 @@ pkg_postinst() {
eerror "Couldn't create ${ROOT}/usr/src/sys symlink."
fi
if use sparc-fbsd ; then
ewarn "WARNING: kldload currently causes kernel panics"
ewarn "on sparc64. This is probably a gcc-4.1 issue, but"
ewarn "we need gcc-4.1 to compile the kernel correctly :/"
ewarn "Please compile all modules you need into the kernel"
fi
# if use sparc-fbsd ; then
# ewarn "WARNING: kldload currently causes kernel panics"
# ewarn "on sparc64. This is probably a gcc-4.1 issue, but"
# ewarn "we need gcc-4.1 to compile the kernel correctly :/"
# ewarn "Please compile all modules you need into the kernel"
# fi
}