From 897ee1c2dce14bd5c432f9f2b32b11850c7672f8 Mon Sep 17 00:00:00 2001 From: jchzhou Date: Mon, 7 Apr 2025 17:15:40 +0800 Subject: [PATCH] rebase & add the patch for supporting specifying CC back --- 0002-Support-specify-CC.patch | 26 ++++++++++++++++++++++++++ pciutils.spec | 9 ++++++++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 0002-Support-specify-CC.patch diff --git a/0002-Support-specify-CC.patch b/0002-Support-specify-CC.patch new file mode 100644 index 0000000..3c25eca --- /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 ed96ab5..2b33a8b 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 -- Gitee