svn commit: r469602 - in head/devel/libpci: . files

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Thu May 10 23:15:01 UTC 2018


Author: sunpoet
Date: Thu May 10 23:14:57 2018
New Revision: 469602
URL: https://svnweb.freebsd.org/changeset/ports/469602

Log:
  Fix device scan
  
  - Bump PORTREVISION for package change
  
  PR:		227252
  Reported by:	doktornotor <doktornotor at mailinator.com>
  Tested by:	<vidwer at gmail.com>
  Obtained from:	https://github.com/pciutils/pciutils/commit/58d9f25f25c0070c3c3df3073f375d87a9163e88

Modified:
  head/devel/libpci/Makefile
  head/devel/libpci/files/patch-lib-fbsd-device.c

Modified: head/devel/libpci/Makefile
==============================================================================
--- head/devel/libpci/Makefile	Thu May 10 23:14:51 2018	(r469601)
+++ head/devel/libpci/Makefile	Thu May 10 23:14:57 2018	(r469602)
@@ -3,6 +3,7 @@
 
 PORTNAME=	libpci
 PORTVERSION=	3.5.6
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	KERNEL_ORG/software/utils/pciutils \
 		ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/ \

Modified: head/devel/libpci/files/patch-lib-fbsd-device.c
==============================================================================
--- head/devel/libpci/files/patch-lib-fbsd-device.c	Thu May 10 23:14:51 2018	(r469601)
+++ head/devel/libpci/files/patch-lib-fbsd-device.c	Thu May 10 23:14:57 2018	(r469602)
@@ -1,5 +1,14 @@
 --- lib/fbsd-device.c.orig	2017-11-17 12:57:00 UTC
 +++ lib/fbsd-device.c
+@@ -143,7 +143,7 @@ fbsd_scan(struct pci_access *a)
+ 	  t = pci_alloc_dev(a);
+ 	  t->bus = matches[i].pc_sel.pc_bus;
+ 	  t->dev = matches[i].pc_sel.pc_dev;
+-	  t->dev = matches[i].pc_sel.pc_dev;
++	  t->func = matches[i].pc_sel.pc_func;
+ 	  t->domain = matches[i].pc_sel.pc_domain;
+ 	  t->domain_16 = matches[i].pc_sel.pc_domain;
+ 	  t->vendor_id = matches[i].pc_vendor;
 @@ -254,7 +254,7 @@ fbsd_read(struct pci_dev *d, int pos, by
  
    if (d->access->fd_rw < 0)


More information about the svn-ports-all mailing list