From e6b36de4c1c4c9f0bed5fbc4ed5e3f0657448a86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Terje=20R=F8sten?= Date: Sun, 5 Sep 2010 19:46:19 +0200 Subject: [PATCH] - Add patch to fix build with gcc-4.5 --- lshw-B.02.14-gcc45.patch | 11 +++++++++++ lshw.spec | 9 +++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 lshw-B.02.14-gcc45.patch diff --git a/lshw-B.02.14-gcc45.patch b/lshw-B.02.14-gcc45.patch new file mode 100644 index 0000000..b259884 --- /dev/null +++ b/lshw-B.02.14-gcc45.patch @@ -0,0 +1,11 @@ +--- lshw-B.02.14/src/core/scsi.cc~ 2010-09-05 19:36:47.411010711 +0200 ++++ lshw-B.02.14/src/core/scsi.cc 2010-09-05 19:02:19.148903622 +0200 +@@ -842,7 +842,7 @@ + + if (!controller) + { +- controller = node.addChild(hwNode::hwNode("scsi", hw::storage)); ++ controller = node.addChild(hwNode("scsi", hw::storage)); + if (controller) + { + controller->setLogicalName(host_logicalname(number)); diff --git a/lshw.spec b/lshw.spec index 6f1ea0b..de6ad4e 100644 --- a/lshw.spec +++ b/lshw.spec @@ -1,7 +1,7 @@ Summary: Hardware lister Name: lshw Version: B.02.14 -Release: 4%{?dist} +Release: 5%{?dist} License: GPLv2 Group: Applications/System URL: http://ezix.org/project/wiki/HardwareLiSter @@ -10,6 +10,7 @@ Source1: lshw.desktop Source2: lshw.consolehelper Source3: lshw.pam Patch0: lshw-ext4.patch +Patch1: lshw-B.02.14-gcc45.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: hwdata @@ -40,6 +41,7 @@ plain, XML or HTML format. %prep %setup -q -n %{name}-%{version} %patch0 -p0 +%patch1 -p1 %{__sed} -i 's|-g -Wall -g|%{optflags}|' src/Makefile %{__sed} -i 's|-g -Wall -Os|%{optflags}|' src/core/Makefile @@ -116,8 +118,11 @@ desktop-file-install --vendor fedora \ %{_datadir}/applications/fedora-%{name}.desktop %changelog +* Sun Sep 05 2010 Terje Rosten - B.02.14-5 +- Add patch to fix build with gcc-4.5 + * Sun Sep 05 2010 Terje Rosten - B.02.14-4 -- Add patch to fix ext4 issue. +- Add patch to fix ext4 issue * Sat Jul 25 2009 Fedora Release Engineering - B.02.14-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild