diff --git a/0002-Support-specify-CC.patch b/0002-Support-specify-CC.patch new file mode 100644 index 0000000000000000000000000000000000000000..3c25eca4386c3dc8c4940767ad1dbc3ca6068dd7 --- /dev/null +++ b/0002-Support-specify-CC.patch @@ -0,0 +1,26 @@ +From 31159c692224d645275a7fa8ce772ef5748e6a54 Mon Sep 17 00:00:00 2001 +From: luofeng +Date: Thu, 21 Mar 2024 10:41:53 +0800 +Subject: [PATCH] support specify CC + +Tested-by: jchzhou +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 51449ba..9991fdc 100644 +--- a/Makefile ++++ b/Makefile +@@ -50,7 +50,7 @@ ifdef CROSS_COMPILE + STRIP+=--strip-program $(CROSS_COMPILE)strip + CC=$(CROSS_COMPILE)gcc + else +-CC=cc ++CC?=cc + endif + AR=$(CROSS_COMPILE)ar + RANLIB=$(CROSS_COMPILE)ranlib +-- +2.49.0 + diff --git a/pciutils.spec b/pciutils.spec index ed96ab546c40248ecb0ea3e290d378d6db49d2c6..2b33a8bd566fae3873be774afff6f04b19148307 100644 --- a/pciutils.spec +++ b/pciutils.spec @@ -1,11 +1,15 @@ Name: pciutils Version: 3.13.0 -Release: 1 +Release: 2 Summary: PCI bus related utilities License: GPLv2+ URL: http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml Source0: https://mirrors.edge.kernel.org/pub/software/utils/pciutils/%{name}-%{version}.tar.gz +# support building with other compilers +# rebased against 3.13.0 +Patch2: 0002-Support-specify-CC.patch + ExclusiveOS: Linux BuildRequires: gcc sed kmod-devel pkgconfig zlib-devel Requires: hwdata @@ -102,6 +106,9 @@ rm -rf $RPM_BUILD_ROOT/usr/share/hwdata/pci.ids* rm -rf $RPM_BUILD_ROOT %changelog +* Mon Apr 07 2025 jchzhou - 3.13.0-2 +- rebase & add the patch for supporting specifying CC back + * Tue Nov 12 2024 wangmian - 3.13.0-1 - upgrade to 3.13.0