From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/pciutils/
Date: Wed, 12 Jun 2024 05:03:38 +0000 (UTC) [thread overview]
Message-ID: <1718168541.70e6b1f5c899438bf42723122462f98986902785.sam@gentoo> (raw)
commit: 70e6b1f5c899438bf42723122462f98986902785
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 12 05:02:21 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jun 12 05:02:21 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70e6b1f5
sys-apps/pciutils: add 3.13.0
Signed-off-by: Sam James <sam <AT> gentoo.org>
sys-apps/pciutils/Manifest | 1 +
sys-apps/pciutils/pciutils-3.13.0.ebuild | 173 +++++++++++++++++++++++++++++++
2 files changed, 174 insertions(+)
diff --git a/sys-apps/pciutils/Manifest b/sys-apps/pciutils/Manifest
index 9fa3e0d36361..8621ab558ac2 100644
--- a/sys-apps/pciutils/Manifest
+++ b/sys-apps/pciutils/Manifest
@@ -1,2 +1,3 @@
DIST pciutils-3.10.0.tar.gz 931711 BLAKE2B 2e1255eb5508c9d1339f5bc772c2592a03cae4d8d097e8939748c9bb5d5d949be53d705d1b7d903f7ea88b2abeea91e39de16e39d2f46f0a1f62f8a9e32c6faa SHA512 3da1af4af8b0fa3cf4d3f06095524e25dc292182beec10aa2c16c5c6ba751fe469d0e7f54e43413b6f3f5bcdbd1fba3c66df1d8e39d2e1962ae36a2d9c06238e
DIST pciutils-3.12.0.tar.gz 668358 BLAKE2B 6d57b0654a26e959d2a953a102fd616ba0a0a183ec6d40f65a1274ad33330df9c81b95d4b2274edc240cbcf576ce93a0b61252bae0b6348a29df659b3fc219eb SHA512 b1efd3e24efad4f80e1a942d23d6ea12acec9642714e47d24bff7f7c53ff475b0252c6f75c0053b7ec64635037e72b150b3e313229b36479dc0cbf96902096c5
+DIST pciutils-3.13.0.tar.gz 672999 BLAKE2B d779ca0fd8c96a54bf81f6234d6a38eae2882d39dd1a52a508246bc46b5f4ac9318bbca20266378ec3917e72fe6ec30c47b1b5e9df4e86d3f59cbe860e2ac70e SHA512 73f99b5c2251676368738e0dc9d82529f3516966f1658a96149768b9775a0e177d630512dc7ea33087a7fcb960a3498f0c4c1a9f7233ec1cf242b9ab087fa0d1
diff --git a/sys-apps/pciutils/pciutils-3.13.0.ebuild b/sys-apps/pciutils/pciutils-3.13.0.ebuild
new file mode 100644
index 000000000000..dd3c7a05627e
--- /dev/null
+++ b/sys-apps/pciutils/pciutils-3.13.0.ebuild
@@ -0,0 +1,173 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs multilib-minimal flag-o-matic
+
+DESCRIPTION="Various utilities dealing with the PCI bus"
+HOMEPAGE="https://mj.ucw.cz/sw/pciutils/ https://git.kernel.org/?p=utils/pciutils/pciutils.git"
+SRC_URI="https://mj.ucw.cz/download/linux/pci/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="dns +kmod static-libs +udev zlib"
+REQUIRED_USE="static-libs? ( !udev )"
+
+# Have the sub-libs in RDEPEND with [static-libs] since, logically,
+# our libpci.a depends on libz.a/etc... at runtime.
+LIB_DEPEND="zlib? ( >=sys-libs/zlib-1.2.8-r1[static-libs(+),${MULTILIB_USEDEP}] )"
+DEPEND="
+ kmod? ( sys-apps/kmod )
+ udev? ( >=virtual/libudev-208[${MULTILIB_USEDEP}] )
+ static-libs? ( ${LIB_DEPEND} )
+ !static-libs? ( ${LIB_DEPEND//static-libs([+-]),} )
+"
+RDEPEND="
+ ${DEPEND}
+ sys-apps/hwdata
+"
+# See bug #847133 re binutils check
+BDEPEND="
+ || ( >=sys-devel/binutils-2.37:* sys-devel/lld sys-devel/native-cctools )
+ kmod? ( virtual/pkgconfig )
+"
+
+MULTILIB_WRAPPED_HEADERS=( /usr/include/pci/config.h )
+
+switch_config() {
+ [[ $# -ne 2 ]] && return 1
+ local opt=$1 val=$2
+
+ sed "s@^\(${opt}=\).*\$@\1${val}@" -i Makefile || die
+ return 0
+}
+
+check_binutils_version() {
+ if [[ -z ${I_KNOW_WHAT_I_AM_DOING} ]] && ! tc-ld-is-gold && ! tc-ld-is-lld ; then
+ # Okay, hopefully it's Binutils' bfd.
+ # bug #847133
+
+ # Convert this:
+ # ```
+ # GNU ld (Gentoo 2.38 p4) 2.38
+ # Copyright (C) 2022 Free Software Foundation, Inc.
+ # This program is free software; you may redistribute it under the terms of
+ # the GNU General Public License version 3 or (at your option) a later version.
+ # This program has absolutely no warranty.
+ # ```
+ #
+ # into...
+ # ```
+ # 2.38
+ # ```
+ local ver=$($(tc-getLD) --version 2>&1 | head -n 1 | rev | cut -d' ' -f1 | rev)
+
+ if ! [[ ${ver} =~ [0-9].[0-9][0-9] ]] ; then
+ # Skip if unrecognised format so we don't pass something
+ # odd into ver_cut.
+ return
+ fi
+
+ ver_major=$(ver_cut 1 "${ver}")
+ ver_minor=$(ver_cut 2 "${ver}")
+
+ # We use 2.37 here, not 2.35, as https://github.com/pciutils/pciutils/issues/98 mentions
+ # because we've had other miscompiles with older Binutils (not just build failures!)
+ # and we don't want people running any unsupported versions of Binutils. An example
+ # of this is where glibc is completely broken with old binutils: bug #802036. It's
+ # just not sustainable to support.
+ if [[ ${ver_major} -eq 2 && ${ver_minor} -lt 37 ]] ; then
+ eerror "Old version of binutils activated! ${P} cannot be built with an old version."
+ eerror "Please follow these steps:"
+ eerror "1. Select a newer binutils (>= 2.37) using binutils-config"
+ eerror " (If no such version is installed, run emerge -v1 sys-devel/binutils)"
+ eerror "2. Run: . /etc/profile"
+ eerror "3. Try emerging again with: emerge -v1 ${CATEGORY}/${P}"
+ eerror "4. Complete your world upgrade if you were performing one."
+ eerror "5. Perform a depclean (emerge -acv)"
+ eerror "\tYou MUST depclean after every world upgrade in future!"
+ die "Old binutils found! Change to a newer ld using binutils-config (bug #847133)."
+ fi
+ fi
+}
+
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && check_binutils_version
+}
+
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && check_binutils_version
+}
+
+src_prepare() {
+ default
+
+ if use static-libs ; then
+ cp -pPR "${S}" "${S}.static" || die
+ mv "${S}.static" "${S}/static" || die
+ fi
+
+ multilib_copy_sources
+}
+
+multilib_src_configure() {
+ # bug #640836, bug #852929
+ # Still broken in 3.10.0, see https://github.com/pciutils/pciutils/pull/144.
+ filter-lto
+
+ # bug #471102
+ append-lfs-flags
+}
+
+pemake() {
+ emake \
+ HOST="${CHOST}" \
+ CROSS_COMPILE="${CHOST}-" \
+ CC="$(tc-getCC)" \
+ AR="$(tc-getAR)" \
+ PKG_CONFIG="$(tc-getPKG_CONFIG)" \
+ RANLIB="$(tc-getRANLIB)" \
+ DNS=$(usex dns) \
+ IDSDIR='$(SHAREDIR)/hwdata' \
+ MANDIR='$(SHAREDIR)/man' \
+ PREFIX="${EPREFIX}/usr" \
+ SHARED="yes" \
+ STRIP="" \
+ ZLIB=$(usex zlib) \
+ PCI_COMPRESSED_IDS=0 \
+ PCI_IDS=pci.ids \
+ LIBDIR="\${PREFIX}/$(get_libdir)" \
+ LIBKMOD=$(multilib_native_usex kmod) \
+ HWDB=$(usex udev) \
+ "$@"
+}
+
+multilib_src_compile() {
+ pemake OPT="${CFLAGS}" all
+
+ if use static-libs ; then
+ pemake \
+ -C "${BUILD_DIR}"/static \
+ OPT="${CFLAGS}" \
+ SHARED="no" \
+ lib/libpci.a
+ fi
+}
+
+multilib_src_install() {
+ pemake DESTDIR="${D}" install install-lib
+
+ use static-libs && dolib.a "${BUILD_DIR}"/static/lib/libpci.a
+}
+
+multilib_src_install_all() {
+ dodoc ChangeLog README TODO
+
+ rm "${ED}"/usr/sbin/update-pciids "${ED}"/usr/share/man/man8/update-pciids.8* || die
+ rm -r "${ED}"/usr/share/hwdata || die
+
+ newinitd "${FILESDIR}"/init.d-pciparm pciparm
+ newconfd "${FILESDIR}"/conf.d-pciparm pciparm
+}
next reply other threads:[~2024-06-12 5:03 UTC|newest]
Thread overview: 147+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-12 5:03 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-12-12 10:51 [gentoo-commits] repo/gentoo:master commit in: sys-apps/pciutils/ Sam James
2024-07-17 4:59 Sam James
2024-07-17 4:56 Sam James
2024-07-17 4:56 Sam James
2024-07-17 4:44 Sam James
2024-07-17 4:44 Sam James
2024-07-17 4:44 Sam James
2024-07-17 4:36 Sam James
2024-06-02 5:35 Sam James
2024-05-30 3:24 Sam James
2024-05-30 3:24 Sam James
2024-05-30 3:24 Sam James
2024-05-30 3:24 Sam James
2024-05-30 3:24 Sam James
2024-05-30 3:24 Sam James
2024-05-30 3:24 Sam James
2024-04-08 6:28 Sam James
2024-02-29 4:34 Sam James
2023-06-11 20:44 Sam James
2023-06-09 19:08 Arthur Zamarin
2023-06-09 16:13 Arthur Zamarin
2023-06-09 14:17 Sam James
2023-06-09 13:51 Arthur Zamarin
2023-06-09 13:51 Arthur Zamarin
2023-06-09 13:50 Sam James
2023-06-09 13:48 Sam James
2023-05-01 18:20 Sam James
2023-01-13 12:17 Arthur Zamarin
2022-12-26 3:20 Sam James
2022-12-25 21:24 Sam James
2022-12-25 20:32 Arthur Zamarin
2022-12-25 20:15 Arthur Zamarin
2022-12-25 20:13 Sam James
2022-12-25 20:11 Sam James
2022-12-25 20:08 Arthur Zamarin
2022-11-21 8:14 Sam James
2022-09-23 2:09 Sam James
2022-07-28 13:20 Sam James
2022-07-17 15:24 Sam James
2022-07-12 17:20 Arthur Zamarin
2022-07-12 6:47 Agostino Sarubbo
2022-07-12 6:47 Agostino Sarubbo
2022-07-12 6:46 Agostino Sarubbo
2022-07-12 2:42 Sam James
2022-07-12 2:42 Sam James
2022-07-12 1:16 Sam James
2022-07-12 1:16 Sam James
2022-07-07 3:13 Sam James
2022-06-24 5:26 Sam James
2022-05-24 21:27 Sam James
2022-05-24 21:20 Sam James
2022-05-24 21:14 Sam James
2022-05-24 21:14 Sam James
2022-05-24 21:06 Sam James
2022-05-22 11:27 Jakov Smolić
2022-05-22 6:22 Agostino Sarubbo
2022-05-22 6:19 Agostino Sarubbo
2022-05-22 6:17 Agostino Sarubbo
2022-05-22 3:25 Sam James
2022-05-22 3:21 Sam James
2022-05-22 3:20 Sam James
2022-05-22 3:18 Sam James
2022-05-19 10:35 WANG Xuerui
2022-05-15 15:44 Mike Gilbert
2022-04-19 22:09 Sam James
2022-04-19 21:47 Sam James
2021-12-25 0:02 Mike Gilbert
2021-12-07 20:29 Sam James
2021-11-28 20:08 Mike Gilbert
2021-09-07 17:37 Mike Gilbert
2021-05-14 22:14 David Seifert
2021-03-31 15:25 Sergei Trofimovich
2021-03-31 14:08 Agostino Sarubbo
2021-03-31 14:05 Agostino Sarubbo
2021-03-31 13:53 Agostino Sarubbo
2021-03-31 2:24 Sam James
2021-03-31 2:24 Sam James
2021-03-31 2:23 Sam James
2021-03-31 2:23 Sam James
2020-08-01 2:20 Lars Wendler
2020-07-10 19:30 Sam James
2020-07-10 11:05 Sam James
2020-07-09 8:34 Agostino Sarubbo
2020-07-08 12:23 Michał Górny
2020-07-07 6:58 Sergei Trofimovich
2020-07-06 16:43 Sergei Trofimovich
2020-07-06 7:22 Sergei Trofimovich
2020-07-06 7:02 Sergei Trofimovich
2020-05-31 9:13 Lars Wendler
2020-05-31 9:13 Lars Wendler
2020-02-06 22:00 Mike Gilbert
2020-01-26 14:40 Lars Wendler
2020-01-23 8:45 Lars Wendler
2020-01-23 1:40 Thomas Deutschmann
2020-01-12 15:12 Lars Wendler
2019-10-27 15:31 Michał Górny
2018-09-03 14:31 Mikle Kolyada
2018-09-03 14:31 Mikle Kolyada
2018-08-30 20:07 Markus Meier
2018-08-21 10:06 Mart Raudsepp
2018-08-21 0:13 Sergei Trofimovich
2018-08-20 3:37 Mikle Kolyada
2018-08-18 22:24 Sergei Trofimovich
2018-08-18 22:18 Sergei Trofimovich
2018-08-16 0:39 Thomas Deutschmann
2018-08-14 0:41 Mikle Kolyada
2018-08-13 21:20 Sergei Trofimovich
2018-08-13 20:43 Sergei Trofimovich
2018-08-13 6:42 Lars Wendler
2018-08-13 6:42 Lars Wendler
2018-07-13 11:24 Lars Wendler
2018-07-01 13:54 Lars Wendler
2018-07-01 13:54 Lars Wendler
2017-11-22 16:02 Lars Wendler
2017-11-22 16:02 Lars Wendler
2017-07-05 21:46 Lars Wendler
2017-07-05 21:46 Lars Wendler
2017-02-26 13:04 Lars Wendler
2017-02-26 13:04 Lars Wendler
2017-02-15 23:59 Lars Wendler
2017-01-19 14:14 Mike Frysinger
2017-01-17 16:23 Lars Wendler
2016-10-04 8:16 Lars Wendler
2016-07-01 4:41 Jeroen Roovers
2016-06-20 4:22 Mike Frysinger
2016-06-01 12:25 Tobias Klausmann
2016-05-31 19:28 Markus Meier
2016-05-31 4:20 Jeroen Roovers
2016-05-27 12:46 Lars Wendler
2016-05-26 20:37 Lars Wendler
2016-05-22 16:02 Lars Wendler
2016-05-19 19:56 Lars Wendler
2016-05-19 19:56 Lars Wendler
2016-03-07 21:29 Mike Frysinger
2016-01-14 2:29 Mike Frysinger
2016-01-04 9:22 Lars Wendler
2015-09-15 7:12 Lars Wendler
2015-09-15 1:54 Mike Gilbert
2015-09-14 21:13 Lars Wendler
2015-09-14 21:13 Lars Wendler
2015-08-24 5:16 Jeroen Roovers
2015-08-21 16:41 Markus Meier
2015-08-18 4:32 Jeroen Roovers
2015-08-16 17:35 Mikle Kolyada
2015-08-12 12:56 Sergey Popov
2015-08-09 11:20 Mikle Kolyada
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1718168541.70e6b1f5c899438bf42723122462f98986902785.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox