From 507f39c94c9cc2d64709108b8921bfe1400069cd Mon Sep 17 00:00:00 2001 From: Bertrand Jacquin Date: Fri, 31 Jan 2014 00:45:44 +0100 Subject: sys-kernel/longterm-sources: Version bump Package-Manager: portage-2.2.8-r1 RepoMan-Options: --force --- sys-kernel/longterm-sources/ChangeLog | 6 + sys-kernel/longterm-sources/Manifest | 6 +- .../longterm-sources-3.4.77.ebuild | 198 --------------------- .../longterm-sources-3.4.78.ebuild | 198 +++++++++++++++++++++ 4 files changed, 207 insertions(+), 201 deletions(-) delete mode 100644 sys-kernel/longterm-sources/longterm-sources-3.4.77.ebuild create mode 100644 sys-kernel/longterm-sources/longterm-sources-3.4.78.ebuild (limited to 'sys-kernel') diff --git a/sys-kernel/longterm-sources/ChangeLog b/sys-kernel/longterm-sources/ChangeLog index ea9ce462..1beea8f7 100644 --- a/sys-kernel/longterm-sources/ChangeLog +++ b/sys-kernel/longterm-sources/ChangeLog @@ -2,6 +2,12 @@ # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*longterm-sources-3.4.78 (30 Jan 2014) + + 30 Jan 2014; Bertrand Jacquin + +longterm-sources-3.4.78.ebuild, -longterm-sources-3.4.77.ebuild: + sys-kernel/longterm-sources: Version bump + *longterm-sources-3.10.28 (25 Jan 2014) 25 Jan 2014; Bertrand Jacquin diff --git a/sys-kernel/longterm-sources/Manifest b/sys-kernel/longterm-sources/Manifest index 2c5a2fd7..fd156f0e 100644 --- a/sys-kernel/longterm-sources/Manifest +++ b/sys-kernel/longterm-sources/Manifest @@ -5,10 +5,10 @@ DIST linux-3.4.tar.xz 66748028 SHA256 ff3dee6a855873d12487a6f4070ec2f7996d073019 DIST patch-3.0.101.xz 938412 SHA256 76de0e0179f991501a77c9ea2b52857d2fb5565ec3fba9b9a7123b7b3ea17f53 WHIRLPOOL 99f71b4323cdd2c521bdfc6156ecce9e97e51cabac9b98655e09236afcf8d865e41c9c67380cd5f1e8821449eeab9353474eae8e7e88a0b4cc20e0708d1cfd28 DIST patch-3.10.28.xz 524920 SHA256 b169d1491e69307ef472b86b831ac524deefa542715c065d34c31409d35b674c WHIRLPOOL 41a6fee45c017e3735bec79086b845ad127e1a4a52cd8e7f48300c3ad11e6f78e14232f903bce52f8bb9666565eb37b8bcc7774a48dbd3e57c96fe355c229155 DIST patch-3.2.54.xz 1078228 SHA256 394c0412d099748232d469b7b795c650b7de391d24f306dbbfbe630e74b25d6c WHIRLPOOL bed0f31a1ac2f1fad7064c76a1f794d300d48622ab182c910afb4be6db3b013673b806871a81acedef6ba155dd5f29156011584fcc2ed51afea399584b8c47af -DIST patch-3.4.77.xz 854560 SHA256 bd27f34ecf1f53d82cfe41d3ad7fb9bb133394e6c083ae6b150bcdb60675c660 WHIRLPOOL 84402d8636d2f60234118544703af2e859014084281a69c40d02a43c6144e41e7def8180e03422b89f675d12f1b7c8814fd64f354d1aa6c6a40dd27d78909642 +DIST patch-3.4.78.xz 857284 SHA256 e37b1375df7a0f6140d7f12011090c5b9e5222bf41a8bc7dfb4f921e0a764538 WHIRLPOOL 5f913a2d8558f21bc095708bff908135bb47fea42096a986450b42cdc0a7dbb884c8005b45df4eaaca9c902e9e956463e574c487b8dc282d6c3d5ff47dcd939c EBUILD longterm-sources-3.0.101.ebuild 4490 SHA256 589dca6cd62265338c0dff04a0206a09bf0f2ab0246864fd2e5710af81142aa5 WHIRLPOOL e5dea379436947218d1821727d3ad285e6044ae57f5abb71d6ed0572cb81a0c95ff9cb97bcafe96aa6a0aa607326d981638f17bc7dec98357782d5a8b74576ca EBUILD longterm-sources-3.10.28.ebuild 4490 SHA256 c46cd8799390dc6354e09ce2b7ac6984438cd8c979f8c96e0f9b5d0996f9cb6e WHIRLPOOL 66dd9974f52f72dd9d01c281ecf7bed1aad39862700191ca394a5e18d339fe600292a9bee1418b318615e8bea5452d01d9c0fe6744622b452c879b75166db553 EBUILD longterm-sources-3.2.54.ebuild 4490 SHA256 c46cd8799390dc6354e09ce2b7ac6984438cd8c979f8c96e0f9b5d0996f9cb6e WHIRLPOOL 66dd9974f52f72dd9d01c281ecf7bed1aad39862700191ca394a5e18d339fe600292a9bee1418b318615e8bea5452d01d9c0fe6744622b452c879b75166db553 -EBUILD longterm-sources-3.4.77.ebuild 4490 SHA256 c46cd8799390dc6354e09ce2b7ac6984438cd8c979f8c96e0f9b5d0996f9cb6e WHIRLPOOL 66dd9974f52f72dd9d01c281ecf7bed1aad39862700191ca394a5e18d339fe600292a9bee1418b318615e8bea5452d01d9c0fe6744622b452c879b75166db553 -MISC ChangeLog 20106 SHA256 16d8278e6250b1f3a57002ee4d39c242a2d1222eda347597326510f9cf12a580 WHIRLPOOL b339bd2e7986a5e3a7daa59c50702227c2fdf162c07d09deca0ebc927d8c41077f62818a2f5384ae95f274620b42eea8a6391326a2fd1a00d27fc863abe2cf41 +EBUILD longterm-sources-3.4.78.ebuild 4490 SHA256 c46cd8799390dc6354e09ce2b7ac6984438cd8c979f8c96e0f9b5d0996f9cb6e WHIRLPOOL 66dd9974f52f72dd9d01c281ecf7bed1aad39862700191ca394a5e18d339fe600292a9bee1418b318615e8bea5452d01d9c0fe6744622b452c879b75166db553 +MISC ChangeLog 20312 SHA256 0654ee2395bff1617bb3a80facd77504d757a671c436d6c3ad668004eaf8ee15 WHIRLPOOL 6fc0b53b18be2d5fd11e39940ecd7979c9226bb8e477ab9a14b02fab0b8d1b5ff5c191df5f1c62175aaac214cbddd36a8351ea4f564655d6491700a9c4d05710 MISC metadata.xml 254 SHA256 c56bc3d6780712c960298c70bb86867aeb6661e97a317cc624516b0e16b72fcc WHIRLPOOL 2ebbfaa14ef0c1847284fe64a79f052cd7e73b25a724fba728c084aaaf2dd0692e068eedcf42ccef7e205077f00c35780ded7ec69118dc01ddb988b4802e46ae diff --git a/sys-kernel/longterm-sources/longterm-sources-3.4.77.ebuild b/sys-kernel/longterm-sources/longterm-sources-3.4.77.ebuild deleted file mode 100644 index f93a01a7..00000000 --- a/sys-kernel/longterm-sources/longterm-sources-3.4.77.ebuild +++ /dev/null @@ -1,198 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=5 -ETYPE="sources" - -inherit savedconfig kernel-2 -detect_version - -SLOT="${PV%.*}" - -DESCRIPTION="Kernel stable sources and build" -HOMEPAGE="http://www.kernel.org" -SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}" - -KEYWORDS="amd64 x86" - -SRCDIR="${WORKDIR}/linux-${KV_FULL}" -BUILDDIR="${WORKDIR}/build" - -KV_EXTRA="${EXTRAVERSION}" -S="${SRCDIR}" - -IUSE="build source zlib lzma" -REQUIRED_USE=" - ?? ( zlib lzma ) - zlib? ( build ) - lzma? ( build ) - symlink? ( source ) - " - -DEPEND=" - sys-devel/bc - || ( - sys-apps/kmod[zlib?,lzma?] - sys-apps/module-init-tools - )" - -configval () { - local _v="CONFIG_$1" - - # Export only the needed config value - # when not already define - declare -p ${_v} > /dev/null 2>&1 \ - || . <(sed -n "/^${_v}=/ p" ${BUILDDIR}/.config) - - case "${!_v}" in - "") declare "$_v=n" ; export $_v ; return 1 ;; - *) export $_v ; return 0 ;; - esac -} - -do_prepare_build () { - mkdir "${BUILDDIR}" - - restore_config "${BUILDDIR}/.config" - if [ ! -e "${BUILDDIR}/.config" ] ; then - ewarn "Generate .config using 'defconfig'" - emake defconfig "${myopt[@]}" - fi - - mkdir "${WORKDIR}/boot" - - if configval CMDLINE_BOOL && configval CMDLINE ; then - einfo "Creating kernel.arg" - einfo " CONFIG_CMDLINE='${CONFIG_CMDLINE}'" - echo "${CONFIG_CMDLINE}" > "${WORKDIR}/boot/kernel.arg" - fi - - configval MODULES || ewarn "CONFIG_MODULES is not set" - configval UEVENT_HELPER_PATH \ - && ewarn "CONFIG_UEVENT_HELPER_PATH should be empty" -} - -src_prepare () { - bopt=( - -C "${BUILDDIR}" - -f "${SRCDIR}/Makefile" - KBUILD_SRC="${SRCDIR}" - KCONFIG_CONFIG="${BUILDDIR}/.config" - - KBUILD_BUILD_USER="${KBUILD_BUILD_USER:-$PORTAGE_USERNAME}" - ) - - copt=( - CC="$(tc-getCC)" HOSTCC="${CBUILD}-gcc" CROSS_COMPILE="${CHOST}-" - ARCH="$(tc-arch-kernel)" SUBARCH="$(tc-arch-kernel)" - ) - - vopt=( - EXTRAVERSION="${KV_EXTRA}" - LOCALVERSION= CONFIG_LOCALVERSION= - V=1 - ) - - myopt=( "${bopt[@]}" "${copt[@]}" "${vopt[@]}" ) - - use build && do_prepare_build -} - -do_compile_build () { - einfo "Checking configuration file" - emake oldconfig "${myopt[@]}" < /dev/null - - if diff -Nu0 "${BUILDDIR}/.config.old" "${BUILDDIR}/.config" \ - | egrep -q '^(\-|\+)CONFIG_' ; then - eerror "You configuration is not up to date" - diff -Nu "${BUILDDIR}/.config.old" "${BUILDDIR}/.config" - die "Bad configuration" - fi - - einfo "Building kernel" - emake bzImage "${myopt[@]}" - - if configval MODULES ; then - einfo "Building modules" - emake modules "${myopt[@]}" - fi -} - -src_compile () { - use build && do_compile_build -} - -do_install_sources () { - kernel-2_src_install -} - -do_install_build () { - einfo "Installing kernel" - emake install "${myopt[@]}" \ - INSTALL_PATH="${WORKDIR}/boot" - - insinto "/boot/${KV_FULL}" - - newins "${WORKDIR}/boot/config-${KV_FULL}" kernel.cfg - newins "${WORKDIR}/boot/vmlinuz-${KV_FULL}" kernel.img - newins "${WORKDIR}/boot/System.map-${KV_FULL}" System.map - - if configval CMDLINE_BOOL && configval CMDLINE ; then - doins "${WORKDIR}/boot/kernel.arg" - fi - - if configval MODULES ; then - einfo "Installing modules" - emake modules_install "${myopt[@]}" \ - INSTALL_MOD_PATH="${WORKDIR}" \ - INSTALL_MOD_STRIP="${PORTAGE_STRIP_FLAGS}" - - # kmod only support zlib and lzma - # See libkmod/libkmod-util.c / struct kmod_ext kmod_exts - if use zlib || use lzma ; then - use zlib && { local cmp="gzip -9c" ; local ext="gz" ; } - use lzma && { local cmp="xz -9c" ; local ext="xz" ; } - - einfo "Compressing modules" - find "${WORKDIR}/lib/modules" \ - -type f -name "*.ko" \ - | while read ; do - ${cmp} < "${REPLY}" > "${REPLY}.${ext}" \ - || die "${cmp} ${REPLY} failed" - rm "${REPLY}" - done - fi - - einfo "Generating modules.dep" - depmod -ae -F "${BUILDDIR}/System.map" -b "${WORKDIR}" "${KV_FULL}" \ - || die "depmod failed" - - rm "${WORKDIR}/lib/modules/${KV_FULL}/build" - rm "${WORKDIR}/lib/modules/${KV_FULL}/source" - - insinto /lib - doins -r "${WORKDIR}/lib/modules" - - # No need to make firmware_install, make modules_install does - if [ -e "${WORKDIR}/lib/firmware" ] ; then - einfo "Installing firmwares" - - insinto /lib - doins -r "${WORKDIR}/lib/firmware" - fi - fi -} - -src_install () { - use build && do_install_build - use source && do_install_sources - use savedconfig && save_config "${BUILDDIR}/.config" -} - -pkg_postinst () { - kernel-2_pkg_postinst - - einfo "You may need to:" - einfo " make menuconfig ${copt[@]}" -} diff --git a/sys-kernel/longterm-sources/longterm-sources-3.4.78.ebuild b/sys-kernel/longterm-sources/longterm-sources-3.4.78.ebuild new file mode 100644 index 00000000..f93a01a7 --- /dev/null +++ b/sys-kernel/longterm-sources/longterm-sources-3.4.78.ebuild @@ -0,0 +1,198 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 +ETYPE="sources" + +inherit savedconfig kernel-2 +detect_version + +SLOT="${PV%.*}" + +DESCRIPTION="Kernel stable sources and build" +HOMEPAGE="http://www.kernel.org" +SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}" + +KEYWORDS="amd64 x86" + +SRCDIR="${WORKDIR}/linux-${KV_FULL}" +BUILDDIR="${WORKDIR}/build" + +KV_EXTRA="${EXTRAVERSION}" +S="${SRCDIR}" + +IUSE="build source zlib lzma" +REQUIRED_USE=" + ?? ( zlib lzma ) + zlib? ( build ) + lzma? ( build ) + symlink? ( source ) + " + +DEPEND=" + sys-devel/bc + || ( + sys-apps/kmod[zlib?,lzma?] + sys-apps/module-init-tools + )" + +configval () { + local _v="CONFIG_$1" + + # Export only the needed config value + # when not already define + declare -p ${_v} > /dev/null 2>&1 \ + || . <(sed -n "/^${_v}=/ p" ${BUILDDIR}/.config) + + case "${!_v}" in + "") declare "$_v=n" ; export $_v ; return 1 ;; + *) export $_v ; return 0 ;; + esac +} + +do_prepare_build () { + mkdir "${BUILDDIR}" + + restore_config "${BUILDDIR}/.config" + if [ ! -e "${BUILDDIR}/.config" ] ; then + ewarn "Generate .config using 'defconfig'" + emake defconfig "${myopt[@]}" + fi + + mkdir "${WORKDIR}/boot" + + if configval CMDLINE_BOOL && configval CMDLINE ; then + einfo "Creating kernel.arg" + einfo " CONFIG_CMDLINE='${CONFIG_CMDLINE}'" + echo "${CONFIG_CMDLINE}" > "${WORKDIR}/boot/kernel.arg" + fi + + configval MODULES || ewarn "CONFIG_MODULES is not set" + configval UEVENT_HELPER_PATH \ + && ewarn "CONFIG_UEVENT_HELPER_PATH should be empty" +} + +src_prepare () { + bopt=( + -C "${BUILDDIR}" + -f "${SRCDIR}/Makefile" + KBUILD_SRC="${SRCDIR}" + KCONFIG_CONFIG="${BUILDDIR}/.config" + + KBUILD_BUILD_USER="${KBUILD_BUILD_USER:-$PORTAGE_USERNAME}" + ) + + copt=( + CC="$(tc-getCC)" HOSTCC="${CBUILD}-gcc" CROSS_COMPILE="${CHOST}-" + ARCH="$(tc-arch-kernel)" SUBARCH="$(tc-arch-kernel)" + ) + + vopt=( + EXTRAVERSION="${KV_EXTRA}" + LOCALVERSION= CONFIG_LOCALVERSION= + V=1 + ) + + myopt=( "${bopt[@]}" "${copt[@]}" "${vopt[@]}" ) + + use build && do_prepare_build +} + +do_compile_build () { + einfo "Checking configuration file" + emake oldconfig "${myopt[@]}" < /dev/null + + if diff -Nu0 "${BUILDDIR}/.config.old" "${BUILDDIR}/.config" \ + | egrep -q '^(\-|\+)CONFIG_' ; then + eerror "You configuration is not up to date" + diff -Nu "${BUILDDIR}/.config.old" "${BUILDDIR}/.config" + die "Bad configuration" + fi + + einfo "Building kernel" + emake bzImage "${myopt[@]}" + + if configval MODULES ; then + einfo "Building modules" + emake modules "${myopt[@]}" + fi +} + +src_compile () { + use build && do_compile_build +} + +do_install_sources () { + kernel-2_src_install +} + +do_install_build () { + einfo "Installing kernel" + emake install "${myopt[@]}" \ + INSTALL_PATH="${WORKDIR}/boot" + + insinto "/boot/${KV_FULL}" + + newins "${WORKDIR}/boot/config-${KV_FULL}" kernel.cfg + newins "${WORKDIR}/boot/vmlinuz-${KV_FULL}" kernel.img + newins "${WORKDIR}/boot/System.map-${KV_FULL}" System.map + + if configval CMDLINE_BOOL && configval CMDLINE ; then + doins "${WORKDIR}/boot/kernel.arg" + fi + + if configval MODULES ; then + einfo "Installing modules" + emake modules_install "${myopt[@]}" \ + INSTALL_MOD_PATH="${WORKDIR}" \ + INSTALL_MOD_STRIP="${PORTAGE_STRIP_FLAGS}" + + # kmod only support zlib and lzma + # See libkmod/libkmod-util.c / struct kmod_ext kmod_exts + if use zlib || use lzma ; then + use zlib && { local cmp="gzip -9c" ; local ext="gz" ; } + use lzma && { local cmp="xz -9c" ; local ext="xz" ; } + + einfo "Compressing modules" + find "${WORKDIR}/lib/modules" \ + -type f -name "*.ko" \ + | while read ; do + ${cmp} < "${REPLY}" > "${REPLY}.${ext}" \ + || die "${cmp} ${REPLY} failed" + rm "${REPLY}" + done + fi + + einfo "Generating modules.dep" + depmod -ae -F "${BUILDDIR}/System.map" -b "${WORKDIR}" "${KV_FULL}" \ + || die "depmod failed" + + rm "${WORKDIR}/lib/modules/${KV_FULL}/build" + rm "${WORKDIR}/lib/modules/${KV_FULL}/source" + + insinto /lib + doins -r "${WORKDIR}/lib/modules" + + # No need to make firmware_install, make modules_install does + if [ -e "${WORKDIR}/lib/firmware" ] ; then + einfo "Installing firmwares" + + insinto /lib + doins -r "${WORKDIR}/lib/firmware" + fi + fi +} + +src_install () { + use build && do_install_build + use source && do_install_sources + use savedconfig && save_config "${BUILDDIR}/.config" +} + +pkg_postinst () { + kernel-2_pkg_postinst + + einfo "You may need to:" + einfo " make menuconfig ${copt[@]}" +} -- cgit v1.2.3