rpms/lshw/F-7 lshw-B.02.12.01-config-cap.patch, NONE, 1.1 lshw.spec, 1.2, 1.3
Terje Røsten (terjeros)
fedora-extras-commits at redhat.com
Tue Apr 15 19:54:27 UTC 2008
- Previous message (by thread): rpms/sweep/devel .cvsignore, 1.3, 1.4 sources, 1.3, 1.4 sweep.spec, 1.5, 1.6
- Next message (by thread): rpms/lshw/F-8 lshw-B.02.12.01-config-cap.patch, NONE, 1.1 lshw.spec, 1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: terjeros
Update of /cvs/extras/rpms/lshw/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv1683/F-7
Modified Files:
lshw.spec
Added Files:
lshw-B.02.12.01-config-cap.patch
Log Message:
* Tue Apr 15 2008 Terje Rosten <terjeros at phys.ntnu.no> - B.02.12.01-4
- add patch to fix bz #442501
lshw-B.02.12.01-config-cap.patch:
--- NEW FILE lshw-B.02.12.01-config-cap.patch ---
Index: src/core/pci.cc
===================================================================
--- src/core/pci.cc (revisjon 1933)
+++ src/core/pci.cc (revisjon 1934)
@@ -70,6 +70,7 @@
#define PCI_CAP_LIST_NEXT 1 /* Next capability in the list */
#define PCI_CAP_FLAGS 2 /* Capability defined flags (16 bits) */
#define PCI_CAP_SIZEOF 4
+#define PCI_FIND_CAP_TTL 48
#define PCI_SID_ESR 2 /* Expansion Slot Register */
#define PCI_SID_ESR_NSLOTS 0x1f /* Number of expansion slots available */
@@ -668,8 +669,9 @@
{
unsigned int where = get_conf_byte(d, PCI_CAPABILITY_LIST) & ~3;
string buffer;
+ unsigned int ttl = PCI_FIND_CAP_TTL;
- while(where)
+ while(where && ttl--)
{
unsigned int id, next, cap;
@@ -677,7 +679,7 @@
next = get_conf_byte(d, where + PCI_CAP_LIST_NEXT) & ~3;
cap = get_conf_word(d, where + PCI_CAP_FLAGS);
- if(!id)
+ if(!id || id == 0xff)
return false;
switch(id)
Index: lshw.spec
===================================================================
RCS file: /cvs/extras/rpms/lshw/F-7/lshw.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- lshw.spec 5 Nov 2007 19:22:20 -0000 1.2
+++ lshw.spec 15 Apr 2008 19:53:51 -0000 1.3
@@ -1,14 +1,16 @@
-Summary: Hardware lister
-Name: lshw
-Version: B.02.12.01
-Release: 1%{?dist}
-License: GPLv2
-Group: Applications/System
-URL: http://ezix.org/project/wiki/HardwareLiSter
-Source0: http://www.ezix.org/software/files/%{name}-%{version}.tar.gz
-Source1: lshw.desktop
-Source2: lshw.consolehelper
-Source3: lshw.pam
+Summary: Hardware lister
+Name: lshw
+Version: B.02.12.01
+Release: 4%{?dist}
+License: GPLv2
+Group: Applications/System
+URL: http://ezix.org/project/wiki/HardwareLiSter
+Source0: http://www.ezix.org/software/files/%{name}-%{version}.tar.gz
+Source1: lshw.desktop
+Source2: lshw.consolehelper
+Source3: lshw.pam
+Patch0: lshw-B.02.12.01-gcc43.patch
+Patch1: lshw-B.02.12.01-config-cap.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
@@ -35,6 +37,8 @@
%prep
%setup -q -n %{name}-%{version}
+%patch -p1
+%patch1 -p0
%{__sed} -i 's|-g -Wall -g|%{optflags}|' src/Makefile
%{__sed} -i 's|-g -Wall -Os|%{optflags}|' src/core/Makefile
@@ -106,6 +110,15 @@
%{_datadir}/applications/fedora-%{name}.desktop
%changelog
+* Tue Apr 15 2008 Terje Rosten <terjeros at phys.ntnu.no> - B.02.12.01-4
+- add patch to fix bz #442501
+
+* Mon Feb 11 2008 Terje Rosten <terjeros at phys.ntnu.no> - B.02.12.01-3
+- add patch to build with gcc-4.3
+
+* Mon Feb 9 2008 Terje Rosten <terjeros at phys.ntnu.no> - B.02.12.01-2
+- rebuild
+
* Mon Nov 5 2007 Terje Rosten <terjeros at phys.ntnu.no> - B.02.12.01-1
- B.02.12.01
- Replace trademark icons
- Previous message (by thread): rpms/sweep/devel .cvsignore, 1.3, 1.4 sources, 1.3, 1.4 sweep.spec, 1.5, 1.6
- Next message (by thread): rpms/lshw/F-8 lshw-B.02.12.01-config-cap.patch, NONE, 1.1 lshw.spec, 1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list