pciutils/pciutils-strip.patch
cvsdist 8b8f09f037 auto-import changelog data from pciutils-2.1.10-7.src.rpm
Wed Feb 12 2003 Bill Nottingham <notting@redhat.com>
- don't segfault when there's no pci bus (#84146)
Wed Jan 22 2003 Tim Powers <timp@redhat.com>
- rebuilt
Thu Dec 05 2002 Elliot Lee <sopwith@redhat.com> 2.1.10-5
- Add patch4 for ppc64. The basic rule seems to be that on any platform
    where it is possible to be running a 64-bit kernel, we need to always
    print out 64-bit addresses.
Mon Nov 04 2002 Bill Nottingham <notting@redhat.com> 2.1.10-4
- fix dir perms on /usr/include/pci
Tue Oct 15 2002 Bill Nottingham <notting@redhat.com> 2.1.10-3
- use %{_libdir}
- own /usr/include/pci
- build library with -fPIC
2004-09-09 10:00:52 +00:00

43 lines
1.4 KiB
Diff

--- pciutils-2.1.10/Makefile.strip 2002-03-30 10:42:16.000000000 -0500
+++ pciutils-2.1.10/Makefile 2002-07-18 21:15:59.000000000 -0400
@@ -2,7 +2,7 @@
# Makefile for Linux PCI Utilities
# (c) 1998--2002 Martin Mares <mj@ucw.cz>
-OPT=-O2 -fomit-frame-pointer
+OPT=-O2
#OPT=-O2 -g
CFLAGS=$(OPT) -Wall -W -Wno-parentheses -Wstrict-prototypes
@@ -59,7 +59,7 @@
install: all
# -c is ignored on Linux, but required on FreeBSD
$(DIRINSTALL) -m 755 $(ROOT)/sbin $(PREFIX)/share $(MANDIR)/man8
- $(INSTALL) -c -m 755 -s lspci setpci $(ROOT)/sbin
+ $(INSTALL) -c -m 755 lspci setpci $(ROOT)/sbin
if [ ! -f $(PREFIX)/share/pci.ids -o pci.ids -nt $(PREFIX)/share/pci.ids ] ; then \
$(INSTALL) -c -m 644 pci.ids $(PREFIX)/share ; \
elif [ -f $(PREFIX)/share/pci.ids ] ; then \
--- pciutils-2.1.9/lspci.c.old Tue May 28 23:54:03 2002
+++ pciutils-2.1.9/lspci.c Wed May 29 00:29:39 2002
@@ -1506,7 +1506,7 @@
break;
case 's':
if (msg = pci_filter_parse_slot(&filter, optarg))
- die("-f: %s", msg);
+ die("-s: %s", msg);
break;
case 'd':
if (msg = pci_filter_parse_id(&filter, optarg))
--- pciutils-2.1.10/Makefile.foo 2002-10-15 15:37:50.000000000 -0400
+++ pciutils-2.1.10/Makefile 2002-10-15 15:36:57.000000000 -0400
@@ -36,7 +36,7 @@
all: lib lspci setpci lspci.8 setpci.8 pci.ids
lib: lib/config.h
- $(MAKE) -C lib all
+ CFLAGS="$(CFLAGS) -fPIC" $(MAKE) -C lib all
lib/config.h:
cd lib && ./configure $(PREFIX) $(VERSION)