Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 May 2018 23:14:57 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r469602 - in head/devel/libpci: . files
Message-ID:  <201805102314.w4ANEv7B094997@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@mailinator.com>
  Tested by:	<vidwer@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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805102314.w4ANEv7B094997>