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