1 |
commit: 7a1f7e5a959c1eec0bf6d097b289f4201cf61150 |
2 |
Author: Michael Everitt <gentoo <AT> veremit <DOT> xyz> |
3 |
AuthorDate: Thu Apr 23 06:04:34 2020 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 23 14:56:07 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=7a1f7e5a |
7 |
|
8 |
pciutils: Fixed in upstream commit f15db37, release v3.6.1 |
9 |
|
10 |
v3.6.0 broke musl builds in commit 6d701ce. |
11 |
In-tree v3.5.6 builds fine: |
12 |
>>> Completed installing sys-apps/pciutils-3.5.6-r1 into /var/tmp/portage/sys-apps/pciutils-3.5.6-r1/image/ |
13 |
>>> sys-apps/pciutils-3.5.6-r1 merged. |
14 |
Also v3.6.2: |
15 |
>>> Completed installing sys-apps/pciutils-3.6.2-r1 into /var/tmp/portage/sys-apps/pciutils-3.6.2-r1/image/ |
16 |
|
17 |
Signed-off-by: Michael Everitt <gentoo <AT> veremit.xyz> |
18 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
19 |
|
20 |
sys-apps/pciutils/Manifest | 1 - |
21 |
sys-apps/pciutils/files/conf.d-pciparm | 28 ----- |
22 |
sys-apps/pciutils/files/init.d-pciparm | 79 -------------- |
23 |
.../pciutils/files/pciutils-3.1.9-static-pc.patch | 13 --- |
24 |
.../pciutils/files/pciutils-3.6.0-realpath.patch | 25 ----- |
25 |
sys-apps/pciutils/metadata.xml | 13 --- |
26 |
sys-apps/pciutils/pciutils-3.6.0.ebuild | 121 --------------------- |
27 |
7 files changed, 280 deletions(-) |
28 |
|
29 |
diff --git a/sys-apps/pciutils/Manifest b/sys-apps/pciutils/Manifest |
30 |
deleted file mode 100644 |
31 |
index 7dc8d96..0000000 |
32 |
--- a/sys-apps/pciutils/Manifest |
33 |
+++ /dev/null |
34 |
@@ -1 +0,0 @@ |
35 |
-DIST pciutils-3.6.0.tar.gz 454912 BLAKE2B 1f37307ba21085d5f49dd908781ce34dff98a1e4d818158800a1fbdc1fc689e1b868ee9c762378a8cd28ab17cbaaf1e9255da94c44029bfa2f4a8b5d9fd4b273 SHA512 e59cb5685f1dee2673368c90fdf1f5b7689de9fa45f249ce472258f278288da7a81644c76d1ecb7cc857f8029d3d70c367fe62190caf55328143b51017cc5c6f |
36 |
|
37 |
diff --git a/sys-apps/pciutils/files/conf.d-pciparm b/sys-apps/pciutils/files/conf.d-pciparm |
38 |
deleted file mode 100644 |
39 |
index f036b15..0000000 |
40 |
--- a/sys-apps/pciutils/files/conf.d-pciparm |
41 |
+++ /dev/null |
42 |
@@ -1,28 +0,0 @@ |
43 |
-# PCI tweaking article: |
44 |
-# http://www.gentoo.org/doc/en/articles/hardware-stability-p2.xml |
45 |
-# |
46 |
-# Apply to all devices: |
47 |
-# PCIPARM_ALL="...." |
48 |
-# Cards also can be addressed by vid:pid or by bus:slot.func |
49 |
-# (see setpci man page relative to -d and -s options) |
50 |
-# PCIPARM_(BUS|VENDOR)_#="...." |
51 |
-# Where # is sequentially numbered from zero. |
52 |
- |
53 |
-# Examples: |
54 |
-# "open up" the PCI bus by allowing fairly long bursts |
55 |
-# for all devices, increasing performance |
56 |
-# (equivalent to: setpci -v -d *:* latency_timer=b0) |
57 |
-#PCIPARM_ALL="latency_timer=b0" |
58 |
- |
59 |
-# maximize latency timers for network and audio, |
60 |
-# allowing them to transmit more data per burst, |
61 |
-# preventing buffer over/under-run conditions |
62 |
-#PCIPARM_BUS_0="00:04.0 latency_timer=ff" |
63 |
-#PCIPARM_BUS_1="01:04.0 latency_timer=ff" |
64 |
-#PCIPARM_VENDOR_0="1057:3410 latency_timer=ff" |
65 |
- |
66 |
-# -v : whether to be verbose about changes |
67 |
-# -D : dry-run, no commit |
68 |
-# -f : do not warn if the change is already set |
69 |
-# (see the setpci manpage for more advanced options) |
70 |
-SETPCI_OPT="-f" |
71 |
|
72 |
diff --git a/sys-apps/pciutils/files/init.d-pciparm b/sys-apps/pciutils/files/init.d-pciparm |
73 |
deleted file mode 100644 |
74 |
index 734ca99..0000000 |
75 |
--- a/sys-apps/pciutils/files/init.d-pciparm |
76 |
+++ /dev/null |
77 |
@@ -1,79 +0,0 @@ |
78 |
-#!/sbin/openrc-run |
79 |
-# Copyright 1999-2004 Gentoo Foundation |
80 |
-# Distributed under the terms of the GNU General Public License v2 |
81 |
- |
82 |
-depend() { |
83 |
- before bootmisc hdparm |
84 |
- after localmount |
85 |
-} |
86 |
- |
87 |
-checkconfig() { |
88 |
- if [ ! -f /etc/conf.d/pciparm ]; then |
89 |
- ewarn "/etc/conf.d/pciparm does not exist, skipping" |
90 |
- return 1 |
91 |
- fi |
92 |
- |
93 |
- if [ -z "${PCIPARM_ALL}" -a -z "${PCIPARM_BUS_0}" -a -z "${PCIPARM_VENDOR_0}" ]; then |
94 |
- ewarn "None of PCIPARM_ALL, PCIPARM_BUS_* or PCIPARM_VENDOR_* set in /etc/conf.d/pciparm" |
95 |
- return 1 |
96 |
- fi |
97 |
-} |
98 |
- |
99 |
-do_setpci() { |
100 |
- #ewarn "do_setpci: /usr/sbin/setpci $SETPCI_OPT $@" |
101 |
- SWITCH=$1 |
102 |
- SPEC_ID=$2 |
103 |
- shift 2 |
104 |
- case "$SWITCH" in |
105 |
- -d) DESC=vendor ;; |
106 |
- -s) DESC=bus ;; |
107 |
- *) eerror "Unknown setpci type: $SWITCH" ; return 1 ;; |
108 |
- esac |
109 |
- |
110 |
- if [ -z "$SPEC_ID" ]; then |
111 |
- eerror "Missing device specifier!" |
112 |
- return 1 |
113 |
- fi |
114 |
- if [ -z "$*" ]; then |
115 |
- eerror "Missing configuration to set for ($DESC) $SPEC_ID!" |
116 |
- return 1 |
117 |
- fi |
118 |
- |
119 |
- ebegin "Setting PCI params for ($DESC) $SPEC_ID to $@" |
120 |
- /usr/sbin/setpci $SETPCI_OPT $SWITCH $SPEC_ID "$@" |
121 |
- rc=$? |
122 |
- eend $rc |
123 |
- return $rc |
124 |
-} |
125 |
- |
126 |
-do_setpci_array() { |
127 |
- name=$1 |
128 |
- shift |
129 |
- i=0 |
130 |
- while true; do |
131 |
- eval opt="\$${name}_$i" |
132 |
- # End of loop |
133 |
- [ -z "${opt}" ] && break |
134 |
- # Pass in all other parameters here, in case we want to use multiple |
135 |
- # arguments later. |
136 |
- do_setpci "$@" $opt #|| return 1 |
137 |
- i=$(($i+1)) |
138 |
- done |
139 |
-} |
140 |
- |
141 |
-start() { |
142 |
- if get_bootparam "nopciparm" ; then |
143 |
- ewarn "Skipping pciparm init as requested in kernel cmdline" |
144 |
- return 0 |
145 |
- fi |
146 |
- |
147 |
- checkconfig || return 1 |
148 |
- |
149 |
- # We do not exit after any errors presently, because it might be a |
150 |
- # stability-related fix after a failure. |
151 |
- [ -n "$PCIPARM_ALL" ] && \ |
152 |
- do_setpci -d '*:*' $PCIPARM_ALL #|| return 1 |
153 |
- |
154 |
- do_setpci_array PCIPARM_BUS -s #|| return 1 |
155 |
- do_setpci_array PCIPARM_VENDOR -d #|| return 1 |
156 |
-} |
157 |
|
158 |
diff --git a/sys-apps/pciutils/files/pciutils-3.1.9-static-pc.patch b/sys-apps/pciutils/files/pciutils-3.1.9-static-pc.patch |
159 |
deleted file mode 100644 |
160 |
index 9e63b7e..0000000 |
161 |
--- a/sys-apps/pciutils/files/pciutils-3.1.9-static-pc.patch |
162 |
+++ /dev/null |
163 |
@@ -1,13 +0,0 @@ |
164 |
-make sure all lib entries get into libs.private in the .pc file |
165 |
- |
166 |
---- a/lib/Makefile |
167 |
-+++ b/lib/Makefile |
168 |
-@@ -61,7 +61,7 @@ $(PCILIBPC): libpci.pc.in |
169 |
- -e 's,@LIBDIR@,$(LIBDIR),' \ |
170 |
- -e 's,@IDSDIR@,$(IDSDIR),' \ |
171 |
- -e 's,@VERSION@,$(VERSION),' \ |
172 |
-- -e 's,@LDLIBS@,$(LDLIBS),' |
173 |
-+ -e 's,@LDLIBS@,$(LDLIBS) $(LIB_LDLIBS),' |
174 |
- |
175 |
- init.o: init.c $(INCL) |
176 |
- access.o: access.c $(INCL) |
177 |
|
178 |
diff --git a/sys-apps/pciutils/files/pciutils-3.6.0-realpath.patch b/sys-apps/pciutils/files/pciutils-3.6.0-realpath.patch |
179 |
deleted file mode 100644 |
180 |
index d65f719..0000000 |
181 |
--- a/sys-apps/pciutils/files/pciutils-3.6.0-realpath.patch |
182 |
+++ /dev/null |
183 |
@@ -1,25 +0,0 @@ |
184 |
-From 64716d37e2bed00e06fb3463214d979ca6b3e9c0 Mon Sep 17 00:00:00 2001 |
185 |
-From: |
186 |
-Date: Mon, 2 Jul 2018 18:22:29 -0500 |
187 |
-Subject: [PATCH] canonicalize_file_name only avaliable on glibc systems |
188 |
- |
189 |
---- |
190 |
- lib/sysfs.c | 2 +- |
191 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
192 |
- |
193 |
-diff --git a/lib/sysfs.c b/lib/sysfs.c |
194 |
-index 1adb50f..c909d0c 100644 |
195 |
---- a/lib/sysfs.c |
196 |
-+++ b/lib/sysfs.c |
197 |
-@@ -133,7 +133,7 @@ sysfs_deref_link(struct pci_dev *d, char *link_name) |
198 |
- sysfs_obj_name(d, "", path); |
199 |
- strcat(path, rel_path); |
200 |
- |
201 |
-- return canonicalize_file_name(path); |
202 |
-+ return realpath(path, NULL); |
203 |
- } |
204 |
- |
205 |
- static int |
206 |
--- |
207 |
-2.18.0 |
208 |
- |
209 |
|
210 |
diff --git a/sys-apps/pciutils/metadata.xml b/sys-apps/pciutils/metadata.xml |
211 |
deleted file mode 100644 |
212 |
index 739960f..0000000 |
213 |
--- a/sys-apps/pciutils/metadata.xml |
214 |
+++ /dev/null |
215 |
@@ -1,13 +0,0 @@ |
216 |
-<?xml version="1.0" encoding="UTF-8"?> |
217 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
218 |
-<pkgmetadata> |
219 |
-<maintainer type="project"> |
220 |
- <email>base-system@g.o</email> |
221 |
- <name>Gentoo Base System</name> |
222 |
-</maintainer> |
223 |
-<use> |
224 |
- <flag name="dns">Enable support for querying the central database of PCI IDs using DNS</flag> |
225 |
- <flag name="kmod">Enable <pkg>sys-apps/kmod</pkg> support for the -k switch in lspci command</flag> |
226 |
- <flag name="zlib">Support compressed pci.ids database</flag> |
227 |
-</use> |
228 |
-</pkgmetadata> |
229 |
|
230 |
diff --git a/sys-apps/pciutils/pciutils-3.6.0.ebuild b/sys-apps/pciutils/pciutils-3.6.0.ebuild |
231 |
deleted file mode 100644 |
232 |
index 0a1383a..0000000 |
233 |
--- a/sys-apps/pciutils/pciutils-3.6.0.ebuild |
234 |
+++ /dev/null |
235 |
@@ -1,121 +0,0 @@ |
236 |
-# Copyright 1999-2018 Gentoo Foundation |
237 |
-# Distributed under the terms of the GNU General Public License v2 |
238 |
- |
239 |
-EAPI=6 |
240 |
- |
241 |
-inherit multilib toolchain-funcs multilib-minimal flag-o-matic |
242 |
- |
243 |
-DESCRIPTION="Various utilities dealing with the PCI bus" |
244 |
-HOMEPAGE="http://mj.ucw.cz/sw/pciutils/ https://git.kernel.org/?p=utils/pciutils/pciutils.git" |
245 |
-SRC_URI="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/${P}.tar.gz" |
246 |
- |
247 |
-LICENSE="GPL-2" |
248 |
-SLOT="0" |
249 |
-KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86" |
250 |
-IUSE="dns +kmod static-libs +udev zlib" |
251 |
- |
252 |
-# Have the sub-libs in RDEPEND with [static-libs] since, logically, |
253 |
-# our libpci.a depends on libz.a/etc... at runtime. |
254 |
-LIB_DEPEND=" |
255 |
- zlib? ( >=sys-libs/zlib-1.2.8-r1[static-libs(+),${MULTILIB_USEDEP}] ) |
256 |
- udev? ( >=virtual/libudev-208[static-libs(+),${MULTILIB_USEDEP}] ) |
257 |
-" |
258 |
-DEPEND=" |
259 |
- kmod? ( sys-apps/kmod ) |
260 |
- static-libs? ( ${LIB_DEPEND} ) |
261 |
- !static-libs? ( ${LIB_DEPEND//static-libs(+),} ) |
262 |
-" |
263 |
-RDEPEND=" |
264 |
- ${DEPEND} |
265 |
- sys-apps/hwids |
266 |
-" |
267 |
-DEPEND=" |
268 |
- ${DEPEND} |
269 |
- kmod? ( virtual/pkgconfig ) |
270 |
-" |
271 |
- |
272 |
-PATCHES=( |
273 |
- "${FILESDIR}"/${PN}-3.1.9-static-pc.patch |
274 |
- "${FILESDIR}"/${PN}-3.6.0-realpath.patch |
275 |
-) |
276 |
- |
277 |
-MULTILIB_WRAPPED_HEADERS=( /usr/include/pci/config.h ) |
278 |
- |
279 |
-switch_config() { |
280 |
- [[ $# -ne 2 ]] && return 1 |
281 |
- local opt=$1 val=$2 |
282 |
- |
283 |
- sed "s@^\(${opt}=\).*\$@\1${val}@" -i Makefile || die |
284 |
- return 0 |
285 |
-} |
286 |
- |
287 |
-src_prepare() { |
288 |
- default |
289 |
- |
290 |
- if use static-libs ; then |
291 |
- cp -pPR "${S}" "${S}.static" || die |
292 |
- mv "${S}.static" "${S}/static" || die |
293 |
- fi |
294 |
- |
295 |
- multilib_copy_sources |
296 |
-} |
297 |
- |
298 |
-multilib_src_configure() { |
299 |
- append-lfs-flags #471102 |
300 |
-} |
301 |
- |
302 |
-pemake() { |
303 |
- emake \ |
304 |
- HOST="${CHOST}" \ |
305 |
- CROSS_COMPILE="${CHOST}-" \ |
306 |
- CC="$(tc-getCC)" \ |
307 |
- AR="$(tc-getAR)" \ |
308 |
- PKG_CONFIG="$(tc-getPKG_CONFIG)" \ |
309 |
- RANLIB="$(tc-getRANLIB)" \ |
310 |
- DNS=$(usex dns) \ |
311 |
- IDSDIR='$(SHAREDIR)/misc' \ |
312 |
- MANDIR='$(SHAREDIR)/man' \ |
313 |
- PREFIX="${EPREFIX}/usr" \ |
314 |
- SHARED="yes" \ |
315 |
- STRIP="" \ |
316 |
- ZLIB=$(usex zlib) \ |
317 |
- PCI_COMPRESSED_IDS=0 \ |
318 |
- PCI_IDS=pci.ids \ |
319 |
- LIBDIR="\${PREFIX}/$(get_libdir)" \ |
320 |
- LIBKMOD=$(multilib_native_usex kmod) \ |
321 |
- HWDB=$(usex udev) \ |
322 |
- "$@" |
323 |
-} |
324 |
- |
325 |
-multilib_src_compile() { |
326 |
- pemake OPT="${CFLAGS}" all |
327 |
- if use static-libs ; then |
328 |
- pemake \ |
329 |
- -C "${BUILD_DIR}/static" \ |
330 |
- OPT="${CFLAGS}" \ |
331 |
- SHARED="no" \ |
332 |
- lib/libpci.a |
333 |
- fi |
334 |
-} |
335 |
- |
336 |
-multilib_src_install() { |
337 |
- pemake DESTDIR="${D}" install install-lib |
338 |
- use static-libs && dolib.a "${BUILD_DIR}/static/lib/libpci.a" |
339 |
-} |
340 |
- |
341 |
-multilib_src_install_all() { |
342 |
- dodoc ChangeLog README TODO |
343 |
- |
344 |
- rm "${ED}"/usr/sbin/update-pciids "${ED}"/usr/share/misc/pci.ids \ |
345 |
- "${ED}"/usr/share/man/man8/update-pciids.8* |
346 |
- |
347 |
- newinitd "${FILESDIR}"/init.d-pciparm pciparm |
348 |
- newconfd "${FILESDIR}"/conf.d-pciparm pciparm |
349 |
-} |
350 |
- |
351 |
-pkg_postinst() { |
352 |
- if [[ ${REPLACING_VERSIONS} ]] && [[ ${REPLACING_VERSIONS} < 3.2.0 ]]; then |
353 |
- elog "The 'network-cron' USE flag is gone; if you want a more up-to-date" |
354 |
- elog "pci.ids file, you should use sys-apps/hwids-99999999 (live ebuild)." |
355 |
- fi |
356 |
-} |