FreeBSD Bugzilla – Attachment 177233 Details for
Bug 214706
devel/libdevq: Update to 0.0.4
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
update devel/libdevq to latest
devel_libdevq.patch (text/plain), 5.66 KB, created by
Matthew Rezny
on 2016-11-21 15:42:47 UTC
(
hide
)
Description:
update devel/libdevq to latest
Filename:
MIME Type:
Creator:
Matthew Rezny
Created:
2016-11-21 15:42:47 UTC
Size:
5.66 KB
patch
obsolete
>Index: devel/libdevq/Makefile >=================================================================== >--- devel/libdevq/Makefile (revision 426717) >+++ devel/libdevq/Makefile (working copy) >@@ -2,19 +2,23 @@ > # $FreeBSD$ > > PORTNAME= libdevq >-PORTVERSION= 0.0.2 >-PORTREVISION= 1 >+PORTVERSION= 0.0.3.20160728 > CATEGORIES= devel >-MASTER_SITES= http://rainbow-runner.nl/freebsd/ > > MAINTAINER= x11@FreeBSD.org > COMMENT= Generic Device Query and Monitor interface > >+USE_GITHUB= yes >+GH_ACCOUNT= freebsd >+GH_TAGNAME= 754df4a >+ > GNU_CONFIGURE= yes >-USES= libtool pathfix tar:xz >+USES= autoreconf libtool pathfix > USE_LDCONFIG= yes > INSTALL_TARGET= install-strip > >+PATHFIX_MAKEFILEIN= Makefile.am >+ > OPTIONS_DEFINE= PROGRAMS > OPTIONS_SUB= yes > PROGRAMS_DESC= Build diagnostic programs >Index: devel/libdevq/distinfo >=================================================================== >--- devel/libdevq/distinfo (revision 426717) >+++ devel/libdevq/distinfo (working copy) >@@ -1,2 +1,3 @@ >-SHA256 (libdevq-0.0.2.tar.xz) = 138ce3a0023ade78b36232343da0f589302db406216e39ea8ffb586ea2417305 >-SIZE (libdevq-0.0.2.tar.xz) = 210960 >+TIMESTAMP = 1479738746 >+SHA256 (freebsd-libdevq-0.0.3.20160728-754df4a_GH0.tar.gz) = 47d612ff33d93c756ec131f19c6a9a6786a5f495119c5dd828b26b5b19b14285 >+SIZE (freebsd-libdevq-0.0.3.20160728-754df4a_GH0.tar.gz) = 10238 >Index: devel/libdevq/files/patch-src_device.c >=================================================================== >--- devel/libdevq/files/patch-src_device.c (revision 426717) >+++ devel/libdevq/files/patch-src_device.c (nonexistent) >@@ -1,125 +0,0 @@ >-From 7b48b8726b85eac66c1b164fab87d154be5aa068 Mon Sep 17 00:00:00 2001 >-From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= <dumbbell@FreeBSD.org> >-Date: Fri, 13 Feb 2015 19:46:37 +0100 >-Subject: [PATCH] Support dev.$driver.$n.%location from FreeBSD 11.x >- >-The format changed from: >- slot=1 function=0 >-to: >- pci0:2:0:0 handle=\_SB_.PCI0.PEG3.MXM3 >- >-Now devq_device_get_pciid_from_fd() supports both formats. >---- >- src/device.c | 89 ++++++++++++++++++++++++++++++++++++++++-------------------- >- 1 file changed, 60 insertions(+), 29 deletions(-) >- >-diff --git a/src/device.c b/src/device.c >-index 9aadc2b..77df580 100644 >---- src/device.c >-+++ src/device.c >-@@ -188,6 +188,58 @@ devq_device_get_devpath_from_fd(int fd, >- #endif /* defined(HAVE_LIBPROCSTAT_H) */ >- } >- >-+static int >-+devq_compare_vgapci_busaddr(int i, int *domain, int *bus, int *slot, >-+ int *function) >-+{ >-+ int ret; >-+ char sysctl_name[32], sysctl_value[128]; >-+ size_t sysctl_value_len; >-+ >-+ sprintf(sysctl_name, "dev.vgapci.%d.%%location", i); >-+ >-+ sysctl_value_len = sizeof(sysctl_value); >-+ memset(sysctl_value, 0, sysctl_value_len); >-+ ret = sysctlbyname(sysctl_name, sysctl_value, >-+ &sysctl_value_len, NULL, 0); >-+ if (ret != 0) >-+ return (-1); >-+ >-+ /* >-+ * dev.vgapci.$m.%location can have two formats: >-+ * o "pci0:2:0:0 handle=\_SB_.PCI0.PEG3.MXM3" (FreeBSD 11+) >-+ * o "slot=1 function=0" (up-to FreeBSD 10) >-+ */ >-+ >-+ ret = sscanf(sysctl_value, "pci%d:%d:%d:%d %*s", >-+ domain, bus, slot, function); >-+ if (ret == 4) >-+ return (0); >-+ >-+ ret = sscanf(sysctl_value, "slot=%d function=%d %*s", >-+ slot, function); >-+ if (ret != 2) >-+ return (-1); >-+ >-+ sprintf(sysctl_name, "dev.vgapci.%d.%%parent", i); >-+ >-+ sysctl_value_len = sizeof(sysctl_value); >-+ memset(sysctl_value, 0, sysctl_value_len); >-+ ret = sysctlbyname(sysctl_name, sysctl_value, >-+ &sysctl_value_len, NULL, 0); >-+ if (ret != 0) >-+ return (-1); >-+ >-+ ret = sscanf(sysctl_value, "pci%d", bus); >-+ if (ret != 1) >-+ return (-1); >-+ >-+ /* FIXME: What domain to assume? */ >-+ *domain = 0; >-+ >-+ return (0); >-+} >-+ >- int >- devq_device_get_pciid_from_fd(int fd, >- int *vendor_id, int *device_id) >-@@ -253,38 +305,17 @@ devq_device_get_pciid_from_fd(int fd, >- * o dev.vgapci.$m.%parent >- */ >- for (i = 0; i < DEVQ_MAX_DEVS; ++i) { >-- sprintf(sysctl_name, "dev.vgapci.%d.%%location", i); >-- >-- sysctl_value_len = sizeof(sysctl_value); >-- memset(sysctl_value, 0, sysctl_value_len); >-- ret = sysctlbyname(sysctl_name, sysctl_value, >-- &sysctl_value_len, NULL, 0); >-- if (ret != 0) >-- continue; >-+ int tmp_domain, tmp_bus, tmp_slot, tmp_function; >- >-- int tmp_slot, tmp_function; >-- ret = sscanf(sysctl_value, "slot=%d function=%d %*s", >-+ ret = devq_compare_vgapci_busaddr(i, &tmp_domain, &tmp_bus, >- &tmp_slot, &tmp_function); >-- if (ret != 2 || >-- tmp_slot != slot || tmp_function != function) >-- continue; >-- >-- sprintf(sysctl_name, "dev.vgapci.%d.%%parent", i); >-- >-- sysctl_value_len = sizeof(sysctl_value); >-- memset(sysctl_value, 0, sysctl_value_len); >-- ret = sysctlbyname(sysctl_name, sysctl_value, >-- &sysctl_value_len, NULL, 0); >-- if (ret != 0) >-- continue; >-- >-- int tmp_bus; >-- ret = sscanf(sysctl_value, "pci%d", >-- &tmp_bus); >-- if (ret != 1 || tmp_bus != bus) >-- continue; >- >-- break; >-+ if (ret == 0 && >-+ tmp_domain == domain && >-+ tmp_bus == bus && >-+ tmp_slot == slot && >-+ tmp_function == function) >-+ break; >- } >- >- if (i == DEVQ_MAX_DEVS) { > >Property changes on: devel/libdevq/files/patch-src_device.c >___________________________________________________________________ >Deleted: fbsd:nokeywords >## -1 +0,0 ## >-yes >\ No newline at end of property >Deleted: svn:eol-style >## -1 +0,0 ## >-native >\ No newline at end of property >Deleted: svn:mime-type >## -1 +0,0 ## >-text/plain >\ No newline at end of property >Index: devel/libdevq/pkg-plist >=================================================================== >--- devel/libdevq/pkg-plist (revision 426717) >+++ devel/libdevq/pkg-plist (working copy) >@@ -5,3 +5,4 @@ > lib/libdevq.so.0 > lib/libdevq.so.0.0.0 > libdata/pkgconfig/libdevq-1.0.pc >+man/man3/libdevq.3.gz
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 214706
:
177233
|
177237