Commit MetaInfo

Revisionb4b1e1f561e4ba6e0aeeb4579f47e2e263522910 (tree)
Zeit2022-07-09 22:48:21
Autorhalcon74 <halcon@tuta...>
Commiterhalcon74

Log Message

bump pciutils to 3.8.0

Ändern Zusammenfassung

Diff

diff -r 56d731ed5dc9 -r b4b1e1f561e4 sys-apps/pciutils/Manifest
--- a/sys-apps/pciutils/Manifest Sat Jul 09 17:47:04 2022 +0400
+++ b/sys-apps/pciutils/Manifest Sat Jul 09 17:48:21 2022 +0400
@@ -2,6 +2,8 @@
22 AUX init.d-pciparm 1758 BLAKE2B a9dd930da942c73d7a150938b2b58543f517542c4c675334cca8f9eb02b83dad456e36ae1bf77ed8fcc0eac52e0dc638f19a41682fa3e1d3623011d09301945b SHA512 c5a527236039edf29f6876d3b07909045dd04e40d863d68014dd96cc021b7b61356470e67541b5b68487d996a299b60b3da46272259f9d0724ea1392e6243646
33 AUX pciutils-3.1.9-static-pc.patch 373 BLAKE2B 39e44412bdde832e9812cd719155f7638d01cd49ebb5be638b2bd10627fe77279c4be79684e13c588b5d3b252eba66dc1a95275d60d40bcf12df46cf8bbdc807 SHA512 e20286ae41569236b549d13c703266f920f335609c1ad2e5d67fd1561f9e9c68d4ac1fd530f93a4451ec79a5496ed226b83db0c74935499f44cd47e94eb74f49
44 DIST pciutils-3.7.0.tar.gz 516418 BLAKE2B fca6720cff73ec20559c666c76fdcd3b59cdf0e33e2c3894a82590d77c5d51cf22e667fe65d9f66a248a624c2b9c868f6e9b69f45f4b6d704b637afe55041e6a SHA512 8a8fb9dc44a8dd31f80e45a48f6693452c11d343b9dfed87dd5cea6846f38d001f294e4010cd7c0545e238fde45b0e9a8e88c67a43d80676a585336e3665a631
5+DIST pciutils-3.8.0.tar.gz 575255 BLAKE2B 7339189f7115af31ccc19663d54e12ef966fbcd75c6b6b4c28c8ddcaafa3e233313ca14300ef70100edb00f5f2e1e767af9d6527a9d836edd07b598f0a40f4f4 SHA512 4b0de02a54c6ed19d5ea85a01d89a62386000bc0f816498872479aba26fb007a8c394cba3f95e77a7ffe52d36ad2726169b7b83bda5ab0647f00e49d8a34bf15
56 EBUILD pciutils-3.7.0-r1.ebuild 2871 BLAKE2B 45bac6fb278e1ce05810ca8bb89a024cbe2e067750d7f7a333bc6ac6d53c65849c21e90c30e5996c357abbf58137f9475a5fd85c2ccd6ab3b9f3a126cc1019be SHA512 8327a20ddba2eec98128f7b58b3085ff0ba259bf7ceaf6a8c8497007bae07d96739ec0145f45d12d9249cc27b57ee642dcad18c7de7c1b3e34da57734a323d27
67 EBUILD pciutils-3.7.0-r2.ebuild 2818 BLAKE2B 89cf5e9979f9de353215ff6cd4d176b56cad8cdff65c8a33aa1d1bf89cda22584af5c6cf433bfeaafbd30858be3a80cc5a69d8ce39962251e2e6d919dc1111a9 SHA512 db6b946e79228fad197219e67a18d6a5fdf985b6130746577e5388eabb492e7db667832ae87762b54071238d89fdcac955377a82be6a63da361f75999f786564
8+EBUILD pciutils-3.8.0.ebuild 4709 BLAKE2B f3954f5bf30d0fc063fdd27b7e1c6824ef396a8f922d5ed0b3180a1ea5036a6d04f79acfb863919f1f00466f6070e1f42338d89fa937fbf2b9318987bea4d7bc SHA512 dfacfe7264bacac6e00c252f20b04366a72cccb47f7629bd8dd12541be9d4daea82c0359f6407bbc566bbcef0d6f875de69bbdcf147506bf19080d2a347d0b98
79 MISC metadata.xml 688 BLAKE2B f360500d35ce7d6be477ff7336c5e09ac620060ba318b8c9f1452c2183f1342d7f86c1eb63ffbead5cbff36efc42090d318520701d23569d43a88a76412915c4 SHA512 5bab70531ad05fd16ea8eff426cbb9cd62bff349a8b45dcea51503aa6ea5d47dae18a971799e7dc9825f7bf328065ecbc7d3821f025955e73aefda7efd539245
diff -r 56d731ed5dc9 -r b4b1e1f561e4 sys-apps/pciutils/pciutils-3.8.0.ebuild
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys-apps/pciutils/pciutils-3.8.0.ebuild Sat Jul 09 17:48:21 2022 +0400
@@ -0,0 +1,163 @@
1+# Copyright 1999-2022 Gentoo Authors
2+# Distributed under the terms of the GNU General Public License v2
3+
4+EAPI=7
5+
6+inherit toolchain-funcs multilib-minimal flag-o-matic
7+
8+DESCRIPTION="Various utilities dealing with the PCI bus"
9+HOMEPAGE="https://mj.ucw.cz/sw/pciutils/ https://git.kernel.org/?p=utils/pciutils/pciutils.git"
10+SRC_URI="https://mj.ucw.cz/download/linux/pci/${P}.tar.gz"
11+
12+LICENSE="GPL-2"
13+SLOT="0"
14+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux"
15+IUSE="dns +kmod static-libs +udev zlib"
16+REQUIRED_USE="static-libs? ( !udev )"
17+
18+# Have the sub-libs in RDEPEND with [static-libs] since, logically,
19+# our libpci.a depends on libz.a/etc... at runtime.
20+LIB_DEPEND="zlib? ( >=sys-libs/zlib-1.2.8-r1[static-libs(+),${MULTILIB_USEDEP}] )"
21+DEPEND="kmod? ( sys-apps/kmod )
22+ udev? ( >=virtual/libudev-208[${MULTILIB_USEDEP}] )
23+ static-libs? ( ${LIB_DEPEND} )
24+ !static-libs? ( ${LIB_DEPEND//static-libs([+-]),} )"
25+RDEPEND="${DEPEND}
26+ sys-apps/hwdata"
27+# See bug #847133 re binutils check
28+BDEPEND="sys-apps/which
29+ || ( >=sys-devel/binutils-2.37:* sys-devel/lld sys-devel/native-cctools )
30+ kmod? ( virtual/pkgconfig )"
31+
32+MULTILIB_WRAPPED_HEADERS=( /usr/include/pci/config.h )
33+
34+switch_config() {
35+ [[ $# -ne 2 ]] && return 1
36+ local opt=$1 val=$2
37+
38+ sed "s@^\(${opt}=\).*\$@\1${val}@" -i Makefile || die
39+ return 0
40+}
41+
42+check_binutils_version() {
43+ if [[ -z ${I_KNOW_WHAT_I_AM_DOING} ]] && ! tc-ld-is-gold && ! tc-ld-is-lld ; then
44+ # Okay, hopefully it's Binutils' bfd.
45+ # bug #847133
46+
47+ # Convert this:
48+ # ```
49+ # GNU ld (Gentoo 2.38 p4) 2.38
50+ # Copyright (C) 2022 Free Software Foundation, Inc.
51+ # This program is free software; you may redistribute it under the terms of
52+ # the GNU General Public License version 3 or (at your option) a later version.
53+ # This program has absolutely no warranty.
54+ # ```
55+ #
56+ # into...
57+ # ```
58+ # 2.38
59+ # ```
60+ local ver=$($(tc-getLD) --version 2>&1 | head -1 | rev | cut -d' ' -f1 | rev)
61+
62+ if ! [[ ${ver} =~ [0-9].[0-9][0-9] ]] ; then
63+ # Skip if unrecognised format so we don't pass something
64+ # odd into ver_cut.
65+ return
66+ fi
67+
68+ ver_major=$(ver_cut 1 "${ver}")
69+ ver_minor=$(ver_cut 2 "${ver}")
70+
71+ # We use 2.37 here, not 2.35, as https://github.com/pciutils/pciutils/issues/98 mentions
72+ # because we've had other miscompiles with older Binutils (not just build failures!)
73+ # and we don't want people running any unsupported versions of Binutils. An example
74+ # of this is where glibc is completely broken with old binutils: bug #802036. It's
75+ # just not sustainable to support.
76+ if [[ ${ver_major} -eq 2 && ${ver_minor} -lt 37 ]] ; then
77+ eerror "Old version of binutils activated! ${P} cannot be built with an old version."
78+ eerror "Please follow these steps:"
79+ eerror "1. Select a newer binutils (>= 2.37) using binutils-config"
80+ eerror "2. Run: . /etc/profile"
81+ eerror "3. Try emerging again with: emerge -v1 ${CATEGORY}/${P}"
82+ eerror "4. Complete your world upgrade if you were performing one."
83+ eerror "4. Perform a depclean (emerge -acv)"
84+ eerror "\tYou MUST depclean after every world upgrade in future!"
85+ die "Old binutils found! Change to a newer ld using binutils-config (bug #847133)."
86+ fi
87+ fi
88+}
89+
90+pkg_pretend() {
91+ [[ ${MERGE_TYPE} != binary ]] && check_binutils_version
92+}
93+
94+pkg_setup() {
95+ [[ ${MERGE_TYPE} != binary ]] && check_binutils_version
96+}
97+
98+src_prepare() {
99+ default
100+
101+ if use static-libs ; then
102+ cp -pPR "${S}" "${S}.static" || die
103+ mv "${S}.static" "${S}/static" || die
104+ fi
105+
106+ multilib_copy_sources
107+}
108+
109+multilib_src_configure() {
110+ # bug #471102
111+ append-lfs-flags
112+}
113+
114+pemake() {
115+ emake \
116+ HOST="${CHOST}" \
117+ CROSS_COMPILE="${CHOST}-" \
118+ CC="$(tc-getCC)" \
119+ AR="$(tc-getAR)" \
120+ PKG_CONFIG="$(tc-getPKG_CONFIG)" \
121+ RANLIB="$(tc-getRANLIB)" \
122+ DNS=$(usex dns) \
123+ IDSDIR='$(SHAREDIR)/hwdata' \
124+ MANDIR='$(SHAREDIR)/man' \
125+ PREFIX="${EPREFIX}/usr" \
126+ SHARED="yes" \
127+ STRIP="" \
128+ ZLIB=$(usex zlib) \
129+ PCI_COMPRESSED_IDS=0 \
130+ PCI_IDS=pci.ids \
131+ LIBDIR="\${PREFIX}/$(get_libdir)" \
132+ LIBKMOD=$(multilib_native_usex kmod) \
133+ HWDB=$(usex udev) \
134+ "$@"
135+}
136+
137+multilib_src_compile() {
138+ pemake OPT="${CFLAGS}" all
139+
140+ if use static-libs ; then
141+ pemake \
142+ -C "${BUILD_DIR}"/static \
143+ OPT="${CFLAGS}" \
144+ SHARED="no" \
145+ lib/libpci.a
146+ fi
147+}
148+
149+multilib_src_install() {
150+ pemake DESTDIR="${D}" install install-lib
151+
152+ use static-libs && dolib.a "${BUILD_DIR}"/static/lib/libpci.a
153+}
154+
155+multilib_src_install_all() {
156+ dodoc ChangeLog README TODO
157+
158+ rm "${ED}"/usr/sbin/update-pciids "${ED}"/usr/share/man/man8/update-pciids.8* || die
159+ rm -r "${ED}"/usr/share/hwdata || die
160+
161+ newinitd "${FILESDIR}"/init.d-pciparm pciparm
162+ newconfd "${FILESDIR}"/conf.d-pciparm pciparm
163+}
Show on old repository browser