From e810ac4a0e6af9f763f4433863042b34609075a7 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 10 Jul 2024 12:25:06 +0100 Subject: gentoo auto-resync : 10:07:2024 - 12:25:06 --- dev-util/Manifest.gz | Bin 64972 -> 64988 bytes dev-util/bear/Manifest | 2 + dev-util/bear/bear-3.1.4-r1.ebuild | 112 +++++++++++++++++++++++++++++ dev-util/bear/files/bear-3.1.4-tests.patch | 49 +++++++++++++ dev-util/bootconfig/Manifest | 6 +- dev-util/bootconfig/bootconfig-5.18.ebuild | 108 ---------------------------- dev-util/bootconfig/bootconfig-6.6.ebuild | 104 +++++++++++++++++++++++++++ dev-util/bootconfig/bootconfig-6.9.ebuild | 104 +++++++++++++++++++++++++++ dev-util/pkgcheck/Manifest | 4 +- dev-util/pkgcheck/pkgcheck-0.10.30.ebuild | 2 +- dev-util/pkgcheck/pkgcheck-9999.ebuild | 2 +- dev-util/pkgdev/Manifest | 4 +- dev-util/pkgdev/pkgdev-0.2.10-r1.ebuild | 2 +- dev-util/pkgdev/pkgdev-9999.ebuild | 2 +- 14 files changed, 383 insertions(+), 118 deletions(-) create mode 100644 dev-util/bear/bear-3.1.4-r1.ebuild create mode 100644 dev-util/bear/files/bear-3.1.4-tests.patch delete mode 100644 dev-util/bootconfig/bootconfig-5.18.ebuild create mode 100644 dev-util/bootconfig/bootconfig-6.6.ebuild create mode 100644 dev-util/bootconfig/bootconfig-6.9.ebuild (limited to 'dev-util') diff --git a/dev-util/Manifest.gz b/dev-util/Manifest.gz index 21dbde7352db..50b3003139e8 100644 Binary files a/dev-util/Manifest.gz and b/dev-util/Manifest.gz differ diff --git a/dev-util/bear/Manifest b/dev-util/bear/Manifest index 9444aa62d5cf..dc8cd3964ff9 100644 --- a/dev-util/bear/Manifest +++ b/dev-util/bear/Manifest @@ -1,5 +1,7 @@ +AUX bear-3.1.4-tests.patch 2199 BLAKE2B 2f2c97705aec1d55e6166cb13858d3e6eda3cc44e9de0fdff9a9c452a71790542534bcb0740f28e47e061405eaf9e180cca49c12232fef8b63107a3e0fde1166 SHA512 89451e19647064fcbe7c31c328d0eddf33882a4a5b94903bc6e89b24bbfe30f2152afc813c40c0ae5aeb0909e0c9f7e190e21b7d9505b05c9f52741a35525f51 DIST bear-3.1.3.tar.gz 127766 BLAKE2B 8fdb5b9bf8e1e026df2296b0d45f23ce1a9157dda28b2656d36c0799e2f02965711ecdf09780d075e18965afc6a771dbf26501e9e1e3b26f4784d4191e168748 SHA512 34039b51a7cd636bdb7fb716f69d6c70de3e7bfc5e2c83a3040942010fb7effe49b0afa0d29be182eb550d57b024fbe5bea779a7fda5f86201865bf491ba1672 DIST bear-3.1.4.tar.gz 127672 BLAKE2B 18deb1172fcd8afdf4721a04b5d72b182190afd92d645841023033d187c812a0a30805af2bfb67b794ab8a8f0ca42965bebab6d035e95e2a25c5fccfe48a1afd SHA512 c63da7586d25a64dd8b3ff82f37505b36071dd064deb973c012840bc52ff6aec861fca21422b86b11629e86dc43d156b233d21b01e689369f0726799083afa98 EBUILD bear-3.1.3.ebuild 2294 BLAKE2B 567743514d620a381e558bc5f4f6af3d95bdcb16d5aa055002c9777fb349538a68a81bac5bbc95972f70b992aa3367df4ccd52ca6fbb849b4937f271a6b7fed2 SHA512 bfec90ac915f5af0a1d43239ea1234e407991a1841490630f988e12279147afe78316ca212ddf9eec864bd99ecda431169a0d52e24a70791ceb6a4b7fc3a011e +EBUILD bear-3.1.4-r1.ebuild 2671 BLAKE2B fe26bda46cd964c8e112426fb40b3109349e7001784d440b269843d5a45bbedd02aca00797d4f2f5154e3d038a19c63e30d213c6dd57aaf254296891791770a5 SHA512 db6d7b29fb7fab792544ef5c82fab43c537e26355026c625bfdad78f9654b68d3e0315d6a3a7f85490a91637c16fbb68fe250a9a54d72ecac3816d7053050557 EBUILD bear-3.1.4.ebuild 2294 BLAKE2B 931a5a1da0c5dabab6507e3f2ad2cb43d1f711358dbbd6772ac3b4d907715ebed380a8da34be723ace83d2e955792d03204ae0af05cf5dbe7d790f335c8473e4 SHA512 0da412c2b77dc6a3f6102046ca27e1a4151b85c8438c401d2f2ecae6427ddf34229298befb8459bb2056d7d8571287b1e8cc7f68c7119cc01ef65e080aa1d69a MISC metadata.xml 1067 BLAKE2B 180de420c2173d245fa29b092d80e2c94ae2df8ba5c1c9d3fa2d706c75fbbc489d08b61505bf612fe247b7a9384b220682549f47db77b8bc3e7b170be9663380 SHA512 df9e220346c2098767bafc1e212a94fedae90892de64d8f04c599f3caf124d3ab539a9d9f757b5ba5ed4ff895fa39b954409d551514c9ee6fe44296c2317a021 diff --git a/dev-util/bear/bear-3.1.4-r1.ebuild b/dev-util/bear/bear-3.1.4-r1.ebuild new file mode 100644 index 000000000000..d573a78f9b17 --- /dev/null +++ b/dev-util/bear/bear-3.1.4-r1.ebuild @@ -0,0 +1,112 @@ +# Copyright 2020-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) + +inherit cuda cmake multiprocessing python-any-r1 + +DESCRIPTION="Build EAR generates a compilation database for clang tooling" +HOMEPAGE="https://github.com/rizsotto/Bear" +SRC_URI="https://github.com/rizsotto/Bear/archive/${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${P^}" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86" +IUSE="cuda test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-libs/libfmt-9.1.0:= + dev-libs/protobuf:= + >=dev-libs/spdlog-1.11.0:= + >=net-libs/grpc-1.49.2:= + cuda? ( dev-util/nvidia-cuda-toolkit ) +" + +DEPEND=" + ${RDEPEND} + >=dev-cpp/nlohmann_json-3.11.2:= + test? ( + >=dev-cpp/gtest-1.13 + ) +" + +BDEPEND=" + virtual/pkgconfig + test? ( + dev-build/libtool + $(python_gen_any_dep ' + dev-python/lit[${PYTHON_USEDEP}] + ') + ) +" + +PATCHES=( + "${FILESDIR}/${PN}-3.1.4-tests.patch" +) + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + +src_prepare() { + cmake_src_prepare + # Turn off testing before installation + sed -i 's/TEST_BEFORE_INSTALL/TEST_EXCLUDE_FROM_MAIN/g' CMakeLists.txt || die +} + +src_configure() { + # TODO: remove this when https://bugs.gentoo.org/928346 is fixed + export CMAKE_BUILD_PARALLEL_LEVEL=$(makeopts_jobs) + + local mycmakeargs=( + -DENABLE_UNIT_TESTS="$(usex test)" + -DENABLE_FUNC_TESTS="$(usex test)" + ) + cmake_src_configure +} + +src_test() { + if has sandbox "${FEATURES}"; then + ewarn "FEATURES=sandbox detected" + ewarn "Bear overrides LD_PRELOAD and conflicts with gentoo sandbox" + ewarn "tests will fail" + fi + if has usersandbox "${FEATURES}"; then + ewarn "FEATURES=usersandbox detected" + ewarn "tests will fail" + fi + if + has network-sandbox "${FEATURES}"; then + ewarn "FEATURES=network-sandbox detected" + ewarn "tests will fail" + fi + if + has_version -b 'sys-devel/gcc-config[-native-symlinks]'; then + ewarn "\'sys-devel/gcc-config[-native-symlinks]\' detected, tests call /usr/bin/cc directly (hardcoded)" + ewarn "and will fail without generic cc symlink" + fi + + einfo "test may use optional tools if found: gfortran libtool nvcc valgrind" + + # unit tests + BUILD_DIR="${BUILD_DIR}/subprojects/Build/BearSource" cmake_src_test + + # functional tests + if use cuda; then + NVCC_CCBIN="$(cuda_gccdir)" + export NVCC_CCBIN + else + LIT_SKIP_TESTS+=( "cases/compilation/output/compile_cuda.sh" ) + fi + + mylitopts+=(-j "$(makeopts_jobs)" ) + [[ -n "${LIT_SKIP_TESTS[*]}" ]] && mylitopts+=( --filter-out "($( IFS='|'; echo "${CMAKE_SKIP_TESTS[*]}"))" ) + + export LIT_OPTS="${mylitopts[*]}" + + BUILD_DIR="${BUILD_DIR}/subprojects/Build/BearTest" cmake_src_test +} diff --git a/dev-util/bear/files/bear-3.1.4-tests.patch b/dev-util/bear/files/bear-3.1.4-tests.patch new file mode 100644 index 000000000000..d6df55908cbc --- /dev/null +++ b/dev-util/bear/files/bear-3.1.4-tests.patch @@ -0,0 +1,49 @@ +From: Paul Zander +Subject: [PATCH] Fix tests +# https://github.com/rizsotto/Bear/issues/445 +diff --git a/test/lit.cfg b/test/lit.cfg +index 2a3868a..cf0c9de 100644 +--- a/test/lit.cfg ++++ b/test/lit.cfg +@@ -31,6 +31,7 @@ config.excludes = [] + + config.environment['LC_CTYPE'] = 'en_US.UTF-8' + config.environment['PATH'] = ":".join([os.path.join(this_dir, 'bin'), os.environ.get('PATH')]) ++config.environment['PYTHONDONTWRITEBYTECODE'] = '1' + + # add bear install directory in case if it's not in the path + if '_BEAR_BIN_DIR' in lit_config.params: +@@ -161,6 +162,12 @@ if which('nvcc'): + path = which('nvcc') + config.substitutions.append(('%{cuda}', path)) + config.available_features.add('cuda') ++ if 'NVCC_PREPEND_FLAGS' in os.environ: ++ config.environment['NVCC_PREPEND_FLAGS'] = os.environ.get('NVCC_PREPEND_FLAGS') ++ if 'NVCC_APPEND_FLAGS' in os.environ: ++ config.environment['NVCC_APPEND_FLAGS'] = os.environ.get('NVCC_APPEND_FLAGS') ++ if 'NVCC_CCBIN' in os.environ: ++ config.environment['NVCC_CCBIN'] = os.environ.get('NVCC_CCBIN') + + + # check if libtool command is available +@@ -183,7 +183,7 @@ if which('fakeroot'): + + + # check if valgrind is available +-if which('valgrind'): ++if which('valgrind') and False: + path = which('valgrind') + config.substitutions.append(('%{valgrind}', path)) + config.available_features.add('valgrind') +diff --git a/test/cases/compilation/output/compile_cuda.sh b/test/cases/compilation/output/compile_cuda.sh +index 41b8b37..9ef4954 100644 +--- a/test/cases/compilation/output/compile_cuda.sh ++++ b/test/cases/compilation/output/compile_cuda.sh +@@ -8,5 +8,5 @@ + + touch successful_build_1.cu successful_build_2.cu + +-$CC -c -o successful_build_1.o successful_build_1.cu; +-$CC -c -o successful_build_2.o successful_build_2.cu; ++$CC${NVCC_CCBIN:+ -ccbin ${NVCC_CCBIN}}${NVCC_PREPEND_FLAGS:+ ${NVCC_PREPEND_FLAGS}} -c -o successful_build_1.o successful_build_1.cu${NVCC_APPEND_FLAGS:+ ${NVCC_APPEND_FLAGS}}; ++$CC${NVCC_CCBIN:+ -ccbin ${NVCC_CCBIN}}${NVCC_PREPEND_FLAGS:+ ${NVCC_PREPEND_FLAGS}} -c -o successful_build_2.o successful_build_2.cu${NVCC_APPEND_FLAGS:+ ${NVCC_APPEND_FLAGS}}; diff --git a/dev-util/bootconfig/Manifest b/dev-util/bootconfig/Manifest index 733e7f3e7ec4..481eee323da5 100644 --- a/dev-util/bootconfig/Manifest +++ b/dev-util/bootconfig/Manifest @@ -1,4 +1,6 @@ AUX bootconfig-5.18-cflags.patch 743 BLAKE2B 24701e1d6caf51f1ef1307aa2b5cfc140b6251a1e304caa60397e2f1ed522f3d22cfd0c00651c335be1da3983943dbfb4161aa573d4e772dc904ba8ecdd3f171 SHA512 ef937a8980117fc37f3b4cf7a52b68d2bda6d6677982dfa6cfc60c7e8e773ae55c0bd2f1510a4168556385eca2f2968aeabe8f8846796ebd4d6319886ee58b86 -DIST linux-5.18.tar.xz 129790264 BLAKE2B e2745a69eb70169e90505a9318a3993046eab3020496eecde7d8352ecda0eb71a25b21becf7ce93fc593507dce7d1cd61b94ddcdf82b3094d79c0d3d48508eeb SHA512 dbbc9d1395898a498fa4947fceda1781344fa5d360240f753810daa4fa88e519833e2186c4e582a8f1836e6413e9e85f6563c7770523b704e8702d67622f98b5 -EBUILD bootconfig-5.18.ebuild 2401 BLAKE2B 3da8dc232670e9ce9b6b82bbc424bead2e7e208d32392007c4bf635db3af7a1818d93ffa807156fe603f7a1b5f2335a8cea56236032b4144b5ac3a96043b5ba8 SHA512 adf32974e712b0d2d59550b8b652ebd1f09b35ea445a51276030c13e0e37c89105317e790a9182be023df072b3b694b6a22c4342635c2b93d63e9cd99dc99707 +DIST linux-6.6.tar.xz 140064536 BLAKE2B 5f02fd8696d42f7ec8c5fbadec8e7270bdcfcb1f9844a6c4db3e1fd461c93ce1ccda650ca72dceb4890ebcbbf768ba8fba0bce91efc49fbd2c307b04e95665f2 SHA512 458b2c34d46206f9b4ccbac54cc57aeca1eaecaf831bc441e59701bac6eadffc17f6ce24af6eadd0454964e843186539ac0d63295ad2cc32d112b60360c39a35 +DIST linux-6.9.tar.xz 144034416 BLAKE2B 4cf86c3cfe6e6534745d42dfaeca59b17ea1168c4e8b615c80e6d8aac735f11283cd85fa992b440b5d4452917e94b9f08397a64af0be5894e3df23c68892377e SHA512 fed3b4cd1fbfb4d94618587c1934273d2ecc8b6e42a3d586ff8a5f24980be930f2ef803aa2923ca3bfa5e4e619f967f3af315368f24fa76f610b10443624a579 +EBUILD bootconfig-6.6.ebuild 2382 BLAKE2B 821d88a7af2fc711d633c013c3d3d97e97a7116d525d31ba41e9d94fa028b5ad85299a8d31262a8dc0720283997aeac7876581ebdfb1197a044faa8989759ff2 SHA512 553b552eeb06a20cb1d160aa3fc5d21c1ad2ca4c75ba193b6a04feea8b7427be6177e67daa911c324064cbff830e68eb872a209145d3e039074998b8bf4bd2da +EBUILD bootconfig-6.9.ebuild 2382 BLAKE2B 821d88a7af2fc711d633c013c3d3d97e97a7116d525d31ba41e9d94fa028b5ad85299a8d31262a8dc0720283997aeac7876581ebdfb1197a044faa8989759ff2 SHA512 553b552eeb06a20cb1d160aa3fc5d21c1ad2ca4c75ba193b6a04feea8b7427be6177e67daa911c324064cbff830e68eb872a209145d3e039074998b8bf4bd2da MISC metadata.xml 496 BLAKE2B 1c245242c7686f263ad845873b6407a25d0bb2b450bc7590721d6f8024a89d139ad2c084388b1b35ed572803886431dc67064f97a50c65ac53031f8e249f1d0d SHA512 0ca29d43896b501d4f24c8f441cae5679424fc83701e2ec044f5109b74cb1aefad6f91a635dd301b05a46cff182ebae20549afd5d77945b2cb48c7822e229277 diff --git a/dev-util/bootconfig/bootconfig-5.18.ebuild b/dev-util/bootconfig/bootconfig-5.18.ebuild deleted file mode 100644 index 3db6300cf029..000000000000 --- a/dev-util/bootconfig/bootconfig-5.18.ebuild +++ /dev/null @@ -1,108 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit estack linux-info - -DESCRIPTION="Bootconfig tools for kernel command line to support key-value" -HOMEPAGE="https://kernel.org/" - -LINUX_V="${PV:0:1}.x" -if [[ ${PV} == *_rc* ]] ; then - LINUX_VER=$(ver_cut 1-2).$(($(ver_cut 3)-1)) - PATCH_VERSION=$(ver_cut 1-3) - LINUX_PATCH=patch-${PV//_/-}.xz - SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH} - https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}" -elif [[ ${PV} == *.*.* ]] ; then - # stable-release series - LINUX_VER=$(ver_cut 1-2) - LINUX_PATCH=patch-${PV}.xz - SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_PATCH}" -else - LINUX_VER=${PV} - SRC_URI="" -fi - -LINUX_SOURCES="linux-${LINUX_VER}.tar.xz" -SRC_URI+=" https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~riscv" -IUSE="examples" - -BDEPEND=" - ${LINUX_PATCH+dev-util/patchutils} -" - -RDEPEND="" - -DEPEND="${RDEPEND} - >=sys-kernel/linux-headers-5.10 -" - -S_K="${WORKDIR}/linux-${LINUX_VER}" -S="${S_K}/tools/bootconfig" - -CONFIG_CHECK="~BOOT_CONFIG" - -PATCHES=( "${FILESDIR}"/${P}-cflags.patch ) - -src_unpack() { - local paths=( - tools/arch tools/build tools/include tools/lib tools/bootconfig tools/scripts - scripts include lib "arch/*/lib" - ) - - # We expect the tar implementation to support the -j option (both - # GNU tar and libarchive's tar support that). - echo ">>> Unpacking ${LINUX_SOURCES} (${paths[*]}) to ${PWD}" - tar --wildcards -xpf "${DISTDIR}"/${LINUX_SOURCES} \ - "${paths[@]/#/linux-${LINUX_VER}/}" || die - - if [[ -n ${LINUX_PATCH} ]] ; then - eshopts_push -o noglob - ebegin "Filtering partial source patch" - filterdiff -p1 ${paths[@]/#/-i } -z "${DISTDIR}"/${LINUX_PATCH} \ - > ${P}.patch - eend $? || die "filterdiff failed" - eshopts_pop - fi - - local a - for a in ${A}; do - [[ ${a} == ${LINUX_SOURCES} ]] && continue - [[ ${a} == ${LINUX_PATCH} ]] && continue - unpack ${a} - done -} - -src_prepare() { - default - if [[ -n ${LINUX_PATCH} ]] ; then - pushd "${S_K}" >/dev/null || die - eapply "${WORKDIR}"/${P}.patch - popd || die - fi -} - -src_compile() { - emake bootconfig -} - -src_test() { - : -} - -src_install() { - dobin bootconfig - - if use examples; then - dodoc -r scripts - - docinto examples - dodoc -r samples/* - fi -} diff --git a/dev-util/bootconfig/bootconfig-6.6.ebuild b/dev-util/bootconfig/bootconfig-6.6.ebuild new file mode 100644 index 000000000000..487db83fc96d --- /dev/null +++ b/dev-util/bootconfig/bootconfig-6.6.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit estack linux-info + +DESCRIPTION="Bootconfig tools for kernel command line to support key-value" +HOMEPAGE="https://kernel.org/" + +LINUX_V="${PV:0:1}.x" +if [[ ${PV} == *_rc* ]] ; then + LINUX_VER=$(ver_cut 1-2).$(($(ver_cut 3)-1)) + PATCH_VERSION=$(ver_cut 1-3) + LINUX_PATCH=patch-${PV//_/-}.xz + SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH} + https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}" +elif [[ ${PV} == *.*.* ]] ; then + # stable-release series + LINUX_VER=$(ver_cut 1-2) + LINUX_PATCH=patch-${PV}.xz + SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_PATCH}" +else + LINUX_VER=${PV} +fi + +LINUX_SOURCES="linux-${LINUX_VER}.tar.xz" +SRC_URI+=" https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}" +S_K="${WORKDIR}/linux-${LINUX_VER}" +S="${S_K}/tools/bootconfig" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~riscv" +IUSE="examples" + +BDEPEND=" + ${LINUX_PATCH+dev-util/patchutils} +" + +DEPEND="${RDEPEND} + >=sys-kernel/linux-headers-5.10 +" + +CONFIG_CHECK="~BOOT_CONFIG" + +PATCHES=( "${FILESDIR}"/${PN}-5.18-cflags.patch ) + +src_unpack() { + local paths=( + tools/arch tools/build tools/include tools/lib tools/bootconfig tools/scripts + scripts include lib "arch/*/lib" + ) + + # We expect the tar implementation to support the -j option (both + # GNU tar and libarchive's tar support that). + echo ">>> Unpacking ${LINUX_SOURCES} (${paths[*]}) to ${PWD}" + tar --wildcards -xpf "${DISTDIR}"/${LINUX_SOURCES} \ + "${paths[@]/#/linux-${LINUX_VER}/}" || die + + if [[ -n ${LINUX_PATCH} ]] ; then + eshopts_push -o noglob + ebegin "Filtering partial source patch" + filterdiff -p1 ${paths[@]/#/-i } -z "${DISTDIR}"/${LINUX_PATCH} \ + > ${P}.patch + eend $? || die "filterdiff failed" + eshopts_pop + fi + + local a + for a in ${A}; do + [[ ${a} == ${LINUX_SOURCES} ]] && continue + [[ ${a} == ${LINUX_PATCH} ]] && continue + unpack ${a} + done +} + +src_prepare() { + default + if [[ -n ${LINUX_PATCH} ]] ; then + pushd "${S_K}" >/dev/null || die + eapply "${WORKDIR}"/${P}.patch + popd || die + fi +} + +src_compile() { + emake bootconfig +} + +src_test() { + : +} + +src_install() { + dobin bootconfig + + if use examples; then + dodoc -r scripts + + docinto examples + dodoc -r samples/* + fi +} diff --git a/dev-util/bootconfig/bootconfig-6.9.ebuild b/dev-util/bootconfig/bootconfig-6.9.ebuild new file mode 100644 index 000000000000..487db83fc96d --- /dev/null +++ b/dev-util/bootconfig/bootconfig-6.9.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit estack linux-info + +DESCRIPTION="Bootconfig tools for kernel command line to support key-value" +HOMEPAGE="https://kernel.org/" + +LINUX_V="${PV:0:1}.x" +if [[ ${PV} == *_rc* ]] ; then + LINUX_VER=$(ver_cut 1-2).$(($(ver_cut 3)-1)) + PATCH_VERSION=$(ver_cut 1-3) + LINUX_PATCH=patch-${PV//_/-}.xz + SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH} + https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}" +elif [[ ${PV} == *.*.* ]] ; then + # stable-release series + LINUX_VER=$(ver_cut 1-2) + LINUX_PATCH=patch-${PV}.xz + SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_PATCH}" +else + LINUX_VER=${PV} +fi + +LINUX_SOURCES="linux-${LINUX_VER}.tar.xz" +SRC_URI+=" https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}" +S_K="${WORKDIR}/linux-${LINUX_VER}" +S="${S_K}/tools/bootconfig" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~riscv" +IUSE="examples" + +BDEPEND=" + ${LINUX_PATCH+dev-util/patchutils} +" + +DEPEND="${RDEPEND} + >=sys-kernel/linux-headers-5.10 +" + +CONFIG_CHECK="~BOOT_CONFIG" + +PATCHES=( "${FILESDIR}"/${PN}-5.18-cflags.patch ) + +src_unpack() { + local paths=( + tools/arch tools/build tools/include tools/lib tools/bootconfig tools/scripts + scripts include lib "arch/*/lib" + ) + + # We expect the tar implementation to support the -j option (both + # GNU tar and libarchive's tar support that). + echo ">>> Unpacking ${LINUX_SOURCES} (${paths[*]}) to ${PWD}" + tar --wildcards -xpf "${DISTDIR}"/${LINUX_SOURCES} \ + "${paths[@]/#/linux-${LINUX_VER}/}" || die + + if [[ -n ${LINUX_PATCH} ]] ; then + eshopts_push -o noglob + ebegin "Filtering partial source patch" + filterdiff -p1 ${paths[@]/#/-i } -z "${DISTDIR}"/${LINUX_PATCH} \ + > ${P}.patch + eend $? || die "filterdiff failed" + eshopts_pop + fi + + local a + for a in ${A}; do + [[ ${a} == ${LINUX_SOURCES} ]] && continue + [[ ${a} == ${LINUX_PATCH} ]] && continue + unpack ${a} + done +} + +src_prepare() { + default + if [[ -n ${LINUX_PATCH} ]] ; then + pushd "${S_K}" >/dev/null || die + eapply "${WORKDIR}"/${P}.patch + popd || die + fi +} + +src_compile() { + emake bootconfig +} + +src_test() { + : +} + +src_install() { + dobin bootconfig + + if use examples; then + dodoc -r scripts + + docinto examples + dodoc -r samples/* + fi +} diff --git a/dev-util/pkgcheck/Manifest b/dev-util/pkgcheck/Manifest index 9397efa4b844..b564e4cd3bf4 100644 --- a/dev-util/pkgcheck/Manifest +++ b/dev-util/pkgcheck/Manifest @@ -7,6 +7,6 @@ DIST pkgcheck-0.10.30.tar.gz 378098 BLAKE2B f80224d707f7656ca45f58932936e1ce780d EBUILD pkgcheck-0.10.27-r3.ebuild 2416 BLAKE2B 32b890aa40bb2827a074ba30f8a3db9d3958ca918c5cb3c16cf48aa49dcec56382221a0843898ffb2b9b996cf5f32fe60c325162dabeae5c4234e375ffa0d02f SHA512 fb062ca539a2ee5bea0ea8980b7b6f923defdbef2dbba1039c6f4665878dd6d3c9124987b80be0e576f6c66699841ac10928c449ebfcc43827144b582f7fa59c EBUILD pkgcheck-0.10.28-r2.ebuild 2331 BLAKE2B 0090512494d2ff2741d938d688f57eadbbe013c6708fd71af673669008673fd9eb660698a3576a10b4b02c4cf111aa1d142c08d80f44a7e0e6a31eb28fad89ca SHA512 d9de08af50e69d9ea98e1bee8bed0447fed65cded57fa171434df92fb4e15879cb18027667365d0bb98d6dc283d172ce6ef4117323eabba9cdc08ff6a52c255a EBUILD pkgcheck-0.10.29-r1.ebuild 2265 BLAKE2B 07df3c4de9de91102c70f4da1ecb42ba9e607afc1ad542038b6f97607c08f099ee3902a320cd1ed9c31186c418d85dde89249bb3f502c2f1c34eed93f34f2c91 SHA512 b8d3cafc37a7c978ec70a1c614f2c28f61f48550af70677e5c90b1157d548c3c4f1e8f55766f8d9dfe149a172bed171716771371164974a12e976f6a7e147f14 -EBUILD pkgcheck-0.10.30.ebuild 2205 BLAKE2B 23efd8c2f1df9e1145e84c3709904f7a1b3d11e56fdc021b731b42d4443c9c9822c049a493bfd035e1a5a0a90f28ec15711c1b41d0be45b6d5653b6e25614cc3 SHA512 257616b47e655f4af514ac55c62fb01f5f26c215e7f75de7bab3ac5af25f9f60de1219adc2a94db199a9dbcac729d67cff142e3dff3e97b79d5d97b194844739 -EBUILD pkgcheck-9999.ebuild 2223 BLAKE2B b3bb51d84c9be035ead6b753ef8406b2daddf5b27e681af8592214d0f14395663b1a6fd3696fbbcc8b8feeb47cb2080464b50213de149a6731252024dfbd5e0a SHA512 cb10fd31194f6cd4e3a2e0daf7060bf06a350b8beb73fd58be5622c12619f662ff214c523d03542b830b6300e67aa007a4ec320037e967bd333d611b9d04d65a +EBUILD pkgcheck-0.10.30.ebuild 2205 BLAKE2B 9f328f690ff3f85b443fda734056b54920986feaa504a615691d8fdc91e49dcb1feb14492cc4847fecc6824eefec91ded4fae27dd2d95e8be40ed23137dd0563 SHA512 a3886c64d32c005dd830e6a5bfce1ea168e210ebc7274e692c2a0c5816d8dfc8c69177f96560c9626a2a7d8262423a20d1511ac9bf67b2345d9cace569cb228f +EBUILD pkgcheck-9999.ebuild 2223 BLAKE2B 4981c0f78a1723d2de4c58c8d41ac5f8a104f55e928dd113c86f670b0d8abb675b6011951202b564470529bea692f8515e9c7a91261238dc3db44b0c858bb0ce SHA512 d0c59363ec3ddfdb14ec9b4acd2a71440d2fc973b852a0a7a7922ffb38e76b42321f134a48cc2e746b0aa614374db5f12240296cb536f35202268976a2ff21b1 MISC metadata.xml 455 BLAKE2B b544db3532ef1da966833d5edbc79988cc1fd85b6d6276476684b49d4485814d6e2d969e742d3633c8176e7f37cae6614dae1654fd1424d71475f022166f6e6a SHA512 5abd1584f486e88992bab8c51c191b4915a5854752130f8a591147ff4b2af2102fdc8ab182e7358c3e4bbb3fdc8400563a250e2dba1793d365f0edc7c5f7c33a diff --git a/dev-util/pkgcheck/pkgcheck-0.10.30.ebuild b/dev-util/pkgcheck/pkgcheck-0.10.30.ebuild index b7fd5d779476..87be860a7d37 100644 --- a/dev-util/pkgcheck/pkgcheck-0.10.30.ebuild +++ b/dev-util/pkgcheck/pkgcheck-0.10.30.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=standalone -PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_COMPAT=( python3_{10..13} ) inherit elisp-common distutils-r1 optfeature if [[ ${PV} == *9999 ]] ; then diff --git a/dev-util/pkgcheck/pkgcheck-9999.ebuild b/dev-util/pkgcheck/pkgcheck-9999.ebuild index 8663081bce93..cb978064beda 100644 --- a/dev-util/pkgcheck/pkgcheck-9999.ebuild +++ b/dev-util/pkgcheck/pkgcheck-9999.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=standalone -PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_COMPAT=( python3_{10..13} ) inherit elisp-common distutils-r1 optfeature if [[ ${PV} == *9999 ]] ; then diff --git a/dev-util/pkgdev/Manifest b/dev-util/pkgdev/Manifest index 46237e130823..784933597c26 100644 --- a/dev-util/pkgdev/Manifest +++ b/dev-util/pkgdev/Manifest @@ -1,5 +1,5 @@ DIST pkgdev-0.2.10.tar.gz 85476 BLAKE2B 2002daa38d445f90cbc2f17ad0e42045b32b5dcefdd85a3485b6e253d9703ad7e59119873718259874de32e7c50e4f5acbacc6c3b40770d55f4d38dbbd7805c4 SHA512 aa9f6465ba44ff67f2b160bc9249583c355e7cc807ce4c797cc8b6d2a4858414a82e702e47ff5b87dc0f6ba70b9c83d515c59a732406437e5325aa3ae7ff95aa -EBUILD pkgdev-0.2.10-r1.ebuild 1806 BLAKE2B afe832fa24855c0e3daafb76f9789263d9190353b42e60f7244076beaa160fd2375e27b5ff7c3f9583c485e6514bd65422b500bb5c5b1b4deb6fa3d96ff34542 SHA512 c1a1b2e9e85947b2d0f578fbaeca44f0ff6c0a17c2f6c2436c23dd553c6efe1e0b98c2e928e9ecef72a99a652893aa8836b16696258a4b8a2c27bbbe4fb6cccf +EBUILD pkgdev-0.2.10-r1.ebuild 1806 BLAKE2B a88d950c46560d3c4ac4d4f6a2eae107b82ea47f0cfe8e14a3912704a921e731c878338b0b75455e57a84673d30d7a023342bf8805bad5e800bfa2a5d3a598de SHA512 f5f5dc1fb49c01fc88da77c1dce6b4a249ae332c39f2c53122d4b765a9dad3697bc84b573a38c4964412098ed7f476db5e168a6ea74e1137385f2217acb7683f EBUILD pkgdev-0.2.10.ebuild 1727 BLAKE2B e0d47b1da47f758d779e3056df523379d44bf558b8ef1e6722ce7549d90f8a28fa2bf3eae6fffa8c5a17b9fa971e8129f74561206cc1ee2c84bfe9ec7372e1de SHA512 497c7a6417c510ca3e4db16aa8fcf927ba6f59364dcac8153774e8f5e2e4f984422174278572f9eabba5a26664523bbbc3ea26927300039703b74a6a90f8bc12 -EBUILD pkgdev-9999.ebuild 1800 BLAKE2B 079de03e55c642251d2d3e206beece76d5e23282ee97b7ba75ac32811cbc2eb358b74689fde314c3b0aa7c40ada561ffc03a75b828026f4c15157ab80f731e26 SHA512 ee99685aaa7f0a0214edd6b3a9d6b01f750f3515e71c1d983f35eb931bf4263a235a23f56abd84c0c24f9999b1db616f9d01db0b73fa3492fe0d632392c4c1ef +EBUILD pkgdev-9999.ebuild 1800 BLAKE2B 80454a0ceeb7eba037c74d6b49d4d4de95de732ececed704d90e00637d367a30d0fb96f664acd44868f64566522e1608395e45c141dd77e1141c80ead43e5b1e SHA512 8f9f5ef77ff5f13cb32607a78385180e3386e18869f361bb89af4826d00f4f1c8dd1b4104f73936b163eb99a0ae90c31e922bffa9401029a825947f74b2a3446 MISC metadata.xml 449 BLAKE2B f440d395e5453394e7bcc857ccd07b6735bce1b68b3e4ce9d33068c28c5794f6ba65d7394ed6f585dcd3e58ccd3f49ecee4d001ff4e40893db721b5ac869f7ae SHA512 a07c315d071af0ad53ee79f9db3cfd1a8acbdbabfad960cf64025eea1a3759f1ef7d5dcf71bf07b17cbfb6f912513edf118c28d3c24de06223a7a3420cc4438d diff --git a/dev-util/pkgdev/pkgdev-0.2.10-r1.ebuild b/dev-util/pkgdev/pkgdev-0.2.10-r1.ebuild index 1fc8f43e2948..23adc3795862 100644 --- a/dev-util/pkgdev/pkgdev-0.2.10-r1.ebuild +++ b/dev-util/pkgdev/pkgdev-0.2.10-r1.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=standalone -PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_COMPAT=( python3_{10..13} ) inherit distutils-r1 optfeature if [[ ${PV} == *9999 ]] ; then diff --git a/dev-util/pkgdev/pkgdev-9999.ebuild b/dev-util/pkgdev/pkgdev-9999.ebuild index a1858addd1ea..67e6010bb58b 100644 --- a/dev-util/pkgdev/pkgdev-9999.ebuild +++ b/dev-util/pkgdev/pkgdev-9999.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=standalone -PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_COMPAT=( python3_{10..13} ) inherit distutils-r1 optfeature if [[ ${PV} == *9999 ]] ; then -- cgit v1.2.3