Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 360860 Details for
Bug 487982
freebsd-sources-9.2: please add zfs and debug USE flags.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
sample patch for freebsd-sources-9.2_rc3.ebuild
487982.patch (text/plain), 1.96 KB, created by
Yuta SATOH
on 2013-10-14 09:26:57 UTC
(
hide
)
Description:
sample patch for freebsd-sources-9.2_rc3.ebuild
Filename:
MIME Type:
Creator:
Yuta SATOH
Created:
2013-10-14 09:26:57 UTC
Size:
1.96 KB
patch
obsolete
>diff --git a/freebsd-sources-9.2_rc3.ebuild b/freebsd-sources-9.2_rc3.ebuild >index eb9dc94..eb6f429 100644 >--- a/freebsd-sources-9.2_rc3.ebuild >+++ b/freebsd-sources-9.2_rc3.ebuild >@@ -9,7 +9,7 @@ inherit bsdmk freebsd flag-o-matic toolchain-funcs > DESCRIPTION="FreeBSD kernel sources" > SLOT="0" > >-IUSE="+build-generic dtrace profile" >+IUSE="+build-generic debug dtrace profile zfs" > > if [[ ${PV} != *9999* ]]; then > KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd" >@@ -29,7 +29,7 @@ RESTRICT="strip binchecks" > > S="${WORKDIR}/sys" > >-KERN_BUILD=GENERIC >+KERN_BUILD=GENTOO > > PATCHES=( "${FILESDIR}/${PN}-9.0-disable-optimization.patch" > "${FILESDIR}/${PN}-9.2-gentoo.patch" >@@ -42,7 +42,13 @@ PATCHES=( "${FILESDIR}/${PN}-9.0-disable-optimization.patch" > "${FILESDIR}/${PN}-9.2-gentoo-gcc.patch" > "${FILESDIR}/${PN}-7.0-tmpfs_whiteout_stub.patch" ) > >+pkg_setup() { >+ use zfs || mymakeopts="${mymakeopts} WITHOUT_CDDL=" >+} >+ > src_prepare() { >+ local conf="${S}/$(tc-arch-kernel)/conf/${KERN_BUILD}" >+ > # This replaces the gentoover patch, it doesn't need reapply every time. > sed -i -e 's:^REVISION=.*:REVISION="'${PVR}'":' \ > -e 's:^BRANCH=.*:BRANCH="Gentoo":' \ >@@ -60,6 +66,11 @@ src_prepare() { > -i "${S}/conf/kern.pre.mk" \ > -i "${S}/conf/kmod.mk" || die > >+ # Set the kernel configuration using USE flags. >+ cp -f "${FILESDIR}/config-GENTOO" "${conf}" || die >+ use debug || echo 'nomakeoptions DEBUG' >> "${conf}" >+ use dtrace || echo 'nomakeoptions WITH_CTF' >> "${conf}" >+ > # Only used with USE=build-generic, let the kernel build with its own flags, its safer. > unset LDFLAGS CFLAGS CXXFLAGS ASFLAGS KERNEL > } >@@ -74,12 +85,9 @@ src_configure() { > > src_compile() { > if use build-generic ; then >- local myconf >- use dtrace || myconf="-DNO_CTF " >- > cd "${S}/$(tc-arch-kernel)/compile/${KERN_BUILD}" || die >- freebsd_src_compile depend ${myconf} >- freebsd_src_compile ${myconf} >+ freebsd_src_compile depend >+ freebsd_src_compile > else > einfo "Nothing to compile.." > fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 487982
: 360860 |
360862
|
360864