import pciutils-3.6.4-2.el8

This commit is contained in:
CentOS Sources 2020-07-28 05:59:13 -04:00 committed by Stepan Oksanichenko
parent c4a8fc81c7
commit 92eec7c13d
4 changed files with 14 additions and 97 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/pciutils-3.5.6.tar.gz SOURCES/pciutils-3.6.4.tar.xz

View File

@ -1 +1 @@
5e7add50fcebcbaf56846368fef568a0b6ebf730 SOURCES/pciutils-3.5.6.tar.gz 977b33f6beb8bbfd72a1ca4ac19ee50771b5924f SOURCES/pciutils-3.6.4.tar.xz

View File

@ -1,85 +0,0 @@
diff -up pciutils-3.5.6/lib/init.c.vafix pciutils-3.5.6/lib/init.c
--- pciutils-3.5.6/lib/init.c.vafix 2018-08-21 15:44:16.245141888 +0200
+++ pciutils-3.5.6/lib/init.c 2018-08-21 16:31:06.836445935 +0200
@@ -98,6 +98,7 @@ pci_generic_error(char *msg, ...)
va_start(args, msg);
fputs("pcilib: ", stderr);
vfprintf(stderr, msg, args);
+ va_end(args);
fputc('\n', stderr);
exit(1);
}
@@ -110,6 +111,7 @@ pci_generic_warn(char *msg, ...)
va_start(args, msg);
fputs("pcilib: ", stderr);
vfprintf(stderr, msg, args);
+ va_end(args);
fputc('\n', stderr);
}
diff -up pciutils-3.5.6/lib/names.c.vafix pciutils-3.5.6/lib/names.c
--- pciutils-3.5.6/lib/names.c.vafix 2018-08-21 16:32:35.268983348 +0200
+++ pciutils-3.5.6/lib/names.c 2018-08-21 16:33:22.184737911 +0200
@@ -148,11 +148,13 @@ pci_lookup_name(struct pci_access *a, ch
case PCI_LOOKUP_VENDOR:
iv = va_arg(args, int);
sprintf(numbuf, "%04x", iv);
+ va_end(args);
return format_name(buf, size, flags, id_lookup(a, flags, ID_VENDOR, iv, 0, 0, 0), numbuf, "Vendor");
case PCI_LOOKUP_DEVICE:
iv = va_arg(args, int);
id = va_arg(args, int);
sprintf(numbuf, "%04x", id);
+ va_end(args);
return format_name(buf, size, flags, id_lookup(a, flags, ID_DEVICE, iv, id, 0, 0), numbuf, "Device");
case PCI_LOOKUP_VENDOR | PCI_LOOKUP_DEVICE:
iv = va_arg(args, int);
@@ -160,11 +162,13 @@ pci_lookup_name(struct pci_access *a, ch
sprintf(numbuf, "%04x:%04x", iv, id);
v = id_lookup(a, flags, ID_VENDOR, iv, 0, 0, 0);
d = id_lookup(a, flags, ID_DEVICE, iv, id, 0, 0);
+ va_end(args);
return format_name_pair(buf, size, flags, v, d, numbuf);
case PCI_LOOKUP_SUBSYSTEM | PCI_LOOKUP_VENDOR:
isv = va_arg(args, int);
sprintf(numbuf, "%04x", isv);
v = id_lookup(a, flags, ID_VENDOR, isv, 0, 0, 0);
+ va_end(args);
return format_name(buf, size, flags, v, numbuf, "Unknown vendor");
case PCI_LOOKUP_SUBSYSTEM | PCI_LOOKUP_DEVICE:
iv = va_arg(args, int);
@@ -172,6 +176,7 @@ pci_lookup_name(struct pci_access *a, ch
isv = va_arg(args, int);
isd = va_arg(args, int);
sprintf(numbuf, "%04x", isd);
+ va_end(args);
return format_name(buf, size, flags, id_lookup_subsys(a, flags, iv, id, isv, isd), numbuf, "Device");
case PCI_LOOKUP_VENDOR | PCI_LOOKUP_DEVICE | PCI_LOOKUP_SUBSYSTEM:
iv = va_arg(args, int);
@@ -181,6 +186,7 @@ pci_lookup_name(struct pci_access *a, ch
v = id_lookup(a, flags, ID_VENDOR, isv, 0, 0, 0);
d = id_lookup_subsys(a, flags, iv, id, isv, isd);
sprintf(numbuf, "%04x:%04x", isv, isd);
+ va_end(args);
return format_name_pair(buf, size, flags, v, d, numbuf);
case PCI_LOOKUP_CLASS:
icls = va_arg(args, int);
@@ -191,6 +197,7 @@ pci_lookup_name(struct pci_access *a, ch
if (!(flags & PCI_LOOKUP_NUMERIC)) /* Include full class number */
flags |= PCI_LOOKUP_MIXED;
}
+ va_end(args);
return format_name(buf, size, flags, cls, numbuf, "Class");
case PCI_LOOKUP_PROGIF:
icls = va_arg(args, int);
@@ -210,8 +217,10 @@ pci_lookup_name(struct pci_access *a, ch
if (*pif)
pif++;
}
+ va_end(args);
return format_name(buf, size, flags, pif, numbuf, "ProgIf");
default:
+ va_end(args);
return "<pci_lookup_name: invalid request>";
}
}

View File

@ -1,7 +1,7 @@
Name: pciutils Name: pciutils
Version: 3.5.6 Version: 3.6.4
Release: 4%{?dist} Release: 2%{?dist}
Source: ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/%{name}-%{version}.tar.gz Source: https://mirrors.edge.kernel.org/pub/software/utils/pciutils/%{name}-%{version}.tar.xz
Source1: multilibconfigh Source1: multilibconfigh
#change pci.ids directory to hwdata, fedora/rhel specific #change pci.ids directory to hwdata, fedora/rhel specific
@ -9,7 +9,6 @@ Patch1: pciutils-2.2.1-idpath.patch
#add support for directory with another pci.ids, rejected by upstream, rhbz#195327 #add support for directory with another pci.ids, rejected by upstream, rhbz#195327
Patch2: pciutils-dir-d.patch Patch2: pciutils-dir-d.patch
Patch3: pciutils-3.5.6-vafix.patch
Patch4: pciutils-3.5.6-freefix.patch Patch4: pciutils-3.5.6-freefix.patch
License: GPLv2+ License: GPLv2+
@ -55,7 +54,6 @@ devices connected to the PCI bus.
%setup -q -n pciutils-%{version} %setup -q -n pciutils-%{version}
%patch1 -p1 -b .idpath %patch1 -p1 -b .idpath
%patch2 -p1 -b .dird %patch2 -p1 -b .dird
%patch3 -p1 -b .vafix
%patch4 -p1 -b .freefix %patch4 -p1 -b .freefix
%build %build
@ -96,20 +94,17 @@ install -p lib/libpci.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig
%postun libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig
%files %files
%defattr(-,root,root,-) %doc README ChangeLog pciutils.lsm
%doc README ChangeLog pciutils.lsm COPYING
/sbin/lspci /sbin/lspci
/sbin/setpci /sbin/setpci
%{_sbindir}/update-pciids %{_sbindir}/update-pciids
%{_mandir}/man8/* %{_mandir}/man8/*
%files libs %files libs
%doc COPYING %license COPYING
%defattr(-,root,root,-)
/%{_lib}/libpci.so.* /%{_lib}/libpci.so.*
%files devel-static %files devel-static
%defattr(-,root,root,-)
%{_libdir}/libpci.a %{_libdir}/libpci.a
%files devel %files devel
@ -119,6 +114,13 @@ install -p lib/libpci.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig
%{_includedir}/pci %{_includedir}/pci
%changelog %changelog
* Wed May 06 2020 Michal Hlavinka <mhlavink@redhat.com> - 3.6.4-2
- rebuild package
* Mon May 04 2020 Michal Hlavinka <mhlavink@redhat.com> - 3.6.4-1
- pciutils updated to 3.6.4
- some of the VPD data fields were displayed as unknown (#1828741)
* Tue Oct 16 2018 Michal Hlavinka <mhlavink@redhat.com> - 3.5.6-4 * Tue Oct 16 2018 Michal Hlavinka <mhlavink@redhat.com> - 3.5.6-4
- fix covscan found issues (#1607017) - fix covscan found issues (#1607017)