summaryrefslogtreecommitdiffstats
path: root/patches
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2022-05-08 09:36:19 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2022-05-08 09:36:19 +0200
commite97f00789290a153a1b801ca903baf5b365ef47c (patch)
treed7d7106ffbc8dac30c1479660ff4c3fe2d258614 /patches
parent516f4484c59d97d91a24f24a77d6ed6493b62786 (diff)
downloadptxdist-e97f00789290a153a1b801ca903baf5b365ef47c.tar.gz
ptxdist-e97f00789290a153a1b801ca903baf5b365ef47c.tar.xz
pciutils: fix building with gcc <= 9.x
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'patches')
-rw-r--r--patches/pciutils-3.8.0/0001-work-around-build-issue-with-gcc-9.x.patch47
-rw-r--r--patches/pciutils-3.8.0/series4
2 files changed, 51 insertions, 0 deletions
diff --git a/patches/pciutils-3.8.0/0001-work-around-build-issue-with-gcc-9.x.patch b/patches/pciutils-3.8.0/0001-work-around-build-issue-with-gcc-9.x.patch
new file mode 100644
index 000000000..46b492476
--- /dev/null
+++ b/patches/pciutils-3.8.0/0001-work-around-build-issue-with-gcc-9.x.patch
@@ -0,0 +1,47 @@
+From: Michael Olbrich <m.olbrich@pengutronix.de>
+Date: Sun, 8 May 2022 09:34:43 +0200
+Subject: [PATCH] work around build issue with gcc <= 9.x
+
+Without this, building fails with:
+
+...-gcc -O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -fPIC -fvisibility=hidden -c -o filter.o filter.c
+/tmp/ccwDUrvo.s: Assembler messages:
+/tmp/ccwDUrvo.s:6: Error: multiple versions [`pci_filter_init@@LIBPCI_3.8'|`pci_filter_init@LIBPCI_3.3'] for symbol `pci_filter_init_v38'
+/tmp/ccwDUrvo.s:8: Error: multiple versions [`pci_filter_parse_slot@@LIBPCI_3.8'|`pci_filter_parse_slot@LIBPCI_3.3'] for symbol `pci_filter_parse_slot_v38'
+/tmp/ccwDUrvo.s:10: Error: multiple versions [`pci_filter_parse_id@@LIBPCI_3.8'|`pci_filter_parse_id@LIBPCI_3.3'] for symbol `pci_filter_parse_id_v38'
+/tmp/ccwDUrvo.s:12: Error: multiple versions [`pci_filter_match@@LIBPCI_3.8'|`pci_filter_match@LIBPCI_3.3'] for symbol `pci_filter_match_v38'
+make[1]: *** [<builtin>: filter.o] Error 1
+
+See also:
+https://github.com/pciutils/pciutils/issues/98
+
+Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
+---
+ lib/filter.c | 4 ----
+ 1 file changed, 4 deletions(-)
+
+diff --git a/lib/filter.c b/lib/filter.c
+index b881b6bc9083..bc34e8c2bab9 100644
+--- a/lib/filter.c
++++ b/lib/filter.c
+@@ -304,20 +304,16 @@ pci_filter_match_v30(struct pci_filter_v30 *f, struct pci_dev *d)
+
+ STATIC_ALIAS(void pci_filter_init(struct pci_access *a, struct pci_filter *f), pci_filter_init_v38(a, f));
+ SYMBOL_VERSION(pci_filter_init_v30, pci_filter_init@LIBPCI_3.0);
+-SYMBOL_VERSION(pci_filter_init_v38, pci_filter_init@LIBPCI_3.3);
+ SYMBOL_VERSION(pci_filter_init_v38, pci_filter_init@@LIBPCI_3.8);
+
+ STATIC_ALIAS(char *pci_filter_parse_slot(struct pci_filter *f, char *str), pci_filter_parse_slot_v38(f, str));
+ SYMBOL_VERSION(pci_filter_parse_slot_v30, pci_filter_parse_slot@LIBPCI_3.0);
+-SYMBOL_VERSION(pci_filter_parse_slot_v38, pci_filter_parse_slot@LIBPCI_3.3);
+ SYMBOL_VERSION(pci_filter_parse_slot_v38, pci_filter_parse_slot@@LIBPCI_3.8);
+
+ STATIC_ALIAS(char *pci_filter_parse_id(struct pci_filter *f, char *str), pci_filter_parse_id_v38(f, str));
+ SYMBOL_VERSION(pci_filter_parse_id_v30, pci_filter_parse_id@LIBPCI_3.0);
+-SYMBOL_VERSION(pci_filter_parse_id_v38, pci_filter_parse_id@LIBPCI_3.3);
+ SYMBOL_VERSION(pci_filter_parse_id_v38, pci_filter_parse_id@@LIBPCI_3.8);
+
+ STATIC_ALIAS(int pci_filter_match(struct pci_filter *f, struct pci_dev *d), pci_filter_match_v38(f, d));
+ SYMBOL_VERSION(pci_filter_match_v30, pci_filter_match@LIBPCI_3.0);
+-SYMBOL_VERSION(pci_filter_match_v38, pci_filter_match@LIBPCI_3.3);
+ SYMBOL_VERSION(pci_filter_match_v38, pci_filter_match@@LIBPCI_3.8);
diff --git a/patches/pciutils-3.8.0/series b/patches/pciutils-3.8.0/series
new file mode 100644
index 000000000..5a33b91d4
--- /dev/null
+++ b/patches/pciutils-3.8.0/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-work-around-build-issue-with-gcc-9.x.patch
+# eb31c34f54f4dccb7d7cc774287fa37b - git-ptx-patches magic