diff options
author | Niclas Zeising <zeising@FreeBSD.org> | 2019-06-30 17:04:04 +0000 |
---|---|---|
committer | Niclas Zeising <zeising@FreeBSD.org> | 2019-06-30 17:04:04 +0000 |
commit | 1cb0c79339615b1651f1f134e33195a86f802a1f (patch) | |
tree | fced73712fa8a912a1772fd327a4cf464344342b /devel/libpciaccess/files/patch-configure.ac | |
parent | Yash is explicitly written in C99. GCC 4.2 can handle this without (diff) |
x11/libpciaccess: Update to 0.14.0
Update x11/libpciaccess to 0.14.0. Rework the patch to match what has
been submitted upstream.
Remove old code that was used before PCIOCGETBAR. PCIOCGETBAR has been part
of FreeBSD for a long time.
Remove check for if pci_io.pi_sel.pc_domain exists. This has been the case
for quite some time.
Add a function to detect if a driver has been attached to a PCI device
Implement pci_device_freebsd_open_io, this fixes runtime of xf86-video-qxl
and possibly other drivers [1]
Reformat and try to apply upstream style.
Side note, instead of trying to patch configure, I've elected to change
configure.ac and add a dependency on autoreconf. The difference between the
previous configure and a new configure generated by the patched configure.ac
is quite large.
PR: 238590 [1]
Submitted by: cem [1]
Obtained from: FreeBSD Graphics Team development repo
Sponsored by: B3 Init (zeising)
Diffstat (limited to 'devel/libpciaccess/files/patch-configure.ac')
-rw-r--r-- | devel/libpciaccess/files/patch-configure.ac | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/devel/libpciaccess/files/patch-configure.ac b/devel/libpciaccess/files/patch-configure.ac new file mode 100644 index 000000000000..d8c840c93ff7 --- /dev/null +++ b/devel/libpciaccess/files/patch-configure.ac @@ -0,0 +1,17 @@ +--- configure.ac.orig 2017-10-23 15:48:29 UTC ++++ configure.ac +@@ -133,14 +133,6 @@ if test "x$have_mtrr_h" = xyes; then + AC_DEFINE(HAVE_MTRR, 1, [Use MTRRs on mappings]) + fi + +-# check for the pci_io.pi_sel.pc_domain +-AC_CHECK_MEMBER([struct pci_io.pi_sel.pc_domain], +- [AC_DEFINE(HAVE_PCI_IO_PC_DOMAIN,1,[Have the pci_io.pi_sel.pc_domain member.])], +- [], +- [ #include <sys/types.h> +- #include <sys/pciio.h> +- ]) +- + AC_SUBST(PCIACCESS_CFLAGS) + AC_SUBST(PCIACCESS_LIBS) + |