Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 369100 Details for
Bug 498832
sys-kernel/dracut: qa violation with regard to use flags and improvement with regard to best practices with patches
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
dracut-036.ebuild
dracut-036.ebuild (text/plain), 5.62 KB, created by
William Hubbs
on 2014-01-30 04:10:06 UTC
(
hide
)
Description:
dracut-036.ebuild
Filename:
MIME Type:
Creator:
William Hubbs
Created:
2014-01-30 04:10:06 UTC
Size:
5.62 KB
patch
obsolete
># Copyright 1999-2014 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >EAPI=4 > >inherit bash-completion-r1 eutils linux-info multilib systemd > >DESCRIPTION="Generic initramfs generation tool" >HOMEPAGE="http://dracut.wiki.kernel.org" >AIDECOE_DISTFILES="http://dev.gentoo.org/~aidecoe/distfiles" >SRC_URI="mirror://kernel/linux/utils/boot/${PN}/${P}.tar.xz" >LICENSE="GPL-2" >SLOT="0" >KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86" > >IUSE="selinux systemd" > >RESTRICT="test" > >CDEPEND="virtual/udev > !<sys-apps/systemd-199 > selinux? ( sec-policy/selinux-dracut )" >RDEPEND="${CDEPEND} > app-arch/cpio > >=app-shells/bash-4.0 > >=sys-apps/baselayout-1.12.14-r1 > >sys-apps/kmod-5[tools] > || ( >=sys-apps/sysvinit-2.87-r3 sys-apps/systemd-sysv-utils ) > >=sys-apps/util-linux-2.21" >DEPEND="${CDEPEND} > app-text/asciidoc > >=dev-libs/libxslt-1.1.26 > app-text/docbook-xml-dtd:4.5 > >=app-text/docbook-xsl-stylesheets-1.75.2 > virtual/pkgconfig " > >DOCS=( AUTHORS HACKING NEWS README README.generic README.kernel README.modules > README.testsuite TODO ) > ># ># Helper functions ># > ># Removes module from modules.d. ># $1 = module name ># Module name can be specified without number prefix. >rm_module() { > local force m > [[ $1 = -f ]] && force=-f > > for m in $@; do > if [[ $m =~ ^[0-9][0-9][^\ ]*$ ]]; then > rm ${force} --interactive=never -r "${modules_dir}"/$m > else > rm ${force} --interactive=never -r "${modules_dir}"/[0-9][0-9]$m > fi > done >} > ># ># ebuild functions ># > >src_prepare() { > # QA: Why do we need this? > local libdirs="/$(get_libdir) /usr/$(get_libdir)" > [[ $libdirs =~ /lib\ ]] || libdirs+=" /lib /usr/lib" > einfo "Setting libdirs to \"${libdirs}\" ..." > sed -e "3alibdirs=\"${libdirs}\"" \ > -i "${S}/dracut.conf.d/gentoo.conf.example" || die > > local udevdir="$("$(tc-getPKG_CONFIG)" udev --variable=udevdir)" > einfo "Setting udevdir to ${udevdir}..." > sed -r -e "s|^(udevdir=).*$|\1${udevdir}|" \ > -i "${S}/dracut.conf.d/gentoo.conf.example" || die > > if use systemd; then > local systemdutildir="$(systemd_get_utildir)" > local systemdsystemunitdir="$(systemd_get_unitdir)" > local systemdsystemconfdir="$("$(tc-getPKG_CONFIG)" systemd \ > --variable=systemdsystemconfdir)" > [[ ${systemdsystemconfdir} ]] \ > || systemdsystemconfdir=/etc/systemd/system > einfo "Setting systemdutildir to ${systemdutildir} and ..." > sed -e "5asystemdutildir=\"${systemdutildir}\"" \ > -i "${S}/dracut.conf.d/gentoo.conf.example" || die > einfo "Setting systemdsystemunitdir to ${systemdsystemunitdir} and..." > sed -e "6asystemdsystemunitdir=\"${systemdsystemunitdir}\"" \ > -i "${S}/dracut.conf.d/gentoo.conf.example" || die > einfo "Setting systemdsystemconfdir to ${systemdsystemconfdir}..." > sed -e "7asystemdsystemconfdir=\"${systemdsystemconfdir}\"" \ > -i "${S}/dracut.conf.d/gentoo.conf.example" || die > fi > > epatch_user >} > >src_configure() { > local myconf="--libdir=${MY_LIBDIR}" > myconf+=" --bashcompletiondir=$(get_bashcompdir)" > > if use systemd; then > myconf+=" --systemdsystemunitdir='$(systemd_get_unitdir)'" > fi > > econf ${myconf} >} > >src_compile() { > tc-export CC > emake doc install/dracut-install >} > >src_install() { > default > > echo "DRACUT_VERSION=$PVR" > "${D}/usr/lib/dracut/dracut-version.sh" > > insinto "/usr/lib/dracut/dracut.conf.d" > newins dracut.conf.d/gentoo.conf.example gentoo.conf > > insinto /etc/logrotate.d > newins dracut.logrotate dracut > > dodir /var/lib/dracut/overlay > > dohtml dracut.html > > # > # Modules > # > local module > modules_dir="${D}/usr/lib/dracut/modules.d" > > # Remove S/390 modules which are not tested at all > # QA: not tested by us, or by upstream? > rm_module 80cms 95dasd 95dasd_mod 95zfcp 95znet > > # Remove modules which won't work for sure > # QA: Why no tools for this module? > rm_module 95fcoe # no tools > # fips module depends on masked app-crypt/hmaccalc > # QA: why is this still masked? > rm_module 01fips 02fips-aesni > > # Remove extra modules which go to future dracut-extras > # QA: have these moved to extras yet? If not, shouldn't we let > # people use them? > rm_module 05busybox 97masterkey 98ecryptfs 98integrity >} > >pkg_postinst() { > if linux-info_get_any_version && linux_config_src_exists; then > ewarn "" > ewarn "If the following test report contains a missing kernel" > ewarn "configuration option, you should reconfigure and rebuild your" > ewarn "kernel before booting image generated with this Dracut version." > ewarn "" > > local CONFIG_CHECK="~BLK_DEV_INITRD ~DEVTMPFS" > > # Kernel configuration options descriptions: > local desc_DEVTMPFS="Maintain a devtmpfs filesystem to mount at /dev" > local desc_BLK_DEV_INITRD="Initial RAM filesystem and RAM disk "\ >"(initramfs/initrd) support" > > local opt desc > > # Generate ERROR_* variables for check_extra_config. > for opt in ${CONFIG_CHECK}; do > opt=${opt#\~} > desc=desc_${opt} > eval "local ERROR_${opt}='CONFIG_${opt}: \"${!desc}\"" \ > "is missing and REQUIRED'" > done > > check_extra_config > echo > else > ewarn "" > ewarn "Your kernel configuration couldn't be checked. Do you have" > ewarn "/usr/src/linux/.config file there? Please check manually if" > ewarn "following options are enabled:" > ewarn "" > ewarn " CONFIG_BLK_DEV_INITRD" > ewarn " CONFIG_DEVTMPFS" > ewarn "" > fi > > if [[ -n $REPLACING_VERSIONS && $REPLACING_VERSIONS < 024 ]]; then > if ! [[ $(</proc/cmdline) =~ rd.auto[\ =] ]]; then > ewarn "Autoassembly of special devices like cryptoLUKS, dmraid, " > ewarn "mdraid or lvm is off for default as of >=dracut-024." > ewarn "Use rd.auto option to turn it on." > fi > fi > # Here is where your elog would go. > # I would just point out the names of the packages that dracut > # supports if they are present on the system > # and maybe refer to the README.generic file. >}
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 Raw
Actions:
View
Attachments on
bug 498832
: 369100