Commit graph

50 commits

Author SHA1 Message Date
rillig
17e39f419d Fix indentation in buildlink3.mk files.
The actual fix as been done by "pkglint -F */*/buildlink3.mk", and was
reviewed manually.

There are some .include lines that still are indented with zero spaces
although the surrounding .if is indented. This is existing practice.
2018-01-07 13:03:53 +00:00
wiz
e717f5eb30 libpciaccess: update to 0.14.
This release adds support for 32-bit PCI domain IDs, which are
apparently common in virtualized environments. This support has been
tested on Linux, and probably also "just works" on FreeBSD and Solaris,
to the extent that the underlying OS supports it.

If you were allocating a struct pci_device yourself, or embedding it in
another structure, this release would be an ABI break. That said,
anyone doing this would already be violating the implicit API contract
(not to mention good taste) and we were unable to find any consumers of
this library misbehaving in this way. As a result the library's soname
does not change in this release.
2017-11-01 18:22:20 +00:00
jperkin
b0cc904b17 Revert upstream Oracle patch which breaks illumos and probably older SunOS
releases.  Bump PKGREVISION.
2017-07-07 10:13:57 +00:00
wiz
0c4f9b66e4 This release includes musl build fixes, improvements to the Solaris backend
and allows parsing separate sysfs files rather than reading the config file
on newer kernels.


Adam Jackson (1):
      chmod a-x README.cygwin

Chuck Tuffli (1):
      libpciaccess: Fix incorrect format specification

Emil Velikov (7):
      autogen.sh: pass --force to autoreconf, quote string variables
      linux sysfs: retrieve vendor, device... info via separate sysfs files
      autogen.sh: use quoted string variables
      Revert "linux_sysfs: include <limits.h> for PATH_MAX"
      configure.ac: remove AC_CONFIG_SRCDIR macro
      configure.ac: set AC_CONFIG_AUX_DIR
      libpciaccess 0.13.5

Felix Janda (2):
      linux_sysfs.c: Include <limits.h> for PATH_MAX
      linux_sysfs: include <limits.h> for PATH_MAX

Henry Zhao (2):
      probe should not hold pci nexus drivers open
      use cached devinfo snapshots, remove unnecessary di_init()

Julien Cristau (1):
      Include config.h before anything else in *.c

Keith Busch (1):
      Ignore 32-bit domains

Mihail Konev (1):
      autogen: add default patch prefix

Peter Hutterer (1):
      autogen.sh: use exec instead of waiting for configure to finish

Thomas Klausner (1):
      Fix quoting issue.

arsharma (2):
      vgaarb: add a the trailing NULL character on read(vgaarb_fd)
      device-name: handle calloc failure in insert()
2017-04-07 08:53:28 +00:00
maya
fea1c67380 don't try to list all working platforms just because darwin probably isn't one
rotate logic to list broken platforms.
2017-02-06 10:23:40 +00:00
agc
17886c78da Add SHA512 digests for distfiles for sysutils category
Problems found with existing digests:
	Package memconf distfile memconf-2.16/memconf.gz
	b6f4b736cac388dddc5070670351cf7262aba048 [recorded]
	95748686a5ad8144232f4d4abc9bf052721a196f [calculated]

Problems found locating distfiles:
	Package dc-tools: missing distfile dc-tools/abs0-dc-burn-netbsd-1.5-0-gae55ec9
	Package ipw-firmware: missing distfile ipw2100-fw-1.2.tgz
	Package iwi-firmware: missing distfile ipw2200-fw-2.3.tgz
	Package nvnet: missing distfile nvnet-netbsd-src-20050620.tgz
	Package syslog-ng: missing distfile syslog-ng-3.7.2.tar.gz

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
2015-11-04 01:32:05 +00:00
tnn
94c1b21746 drop Darwin from list of supported platforms -- doesn't build 2015-10-11 07:00:19 +00:00
wiz
7ab6520795 Use pci.ids file from pciids package.
From David Shao in PR 50106.
Bump PKGREVISION.
2015-09-07 09:07:18 +00:00
gdt
711fc42fdc Drop redundant -lpci in pkgsrc Makefile.
Long ago, this package needed -lpci added on NetBSD.  Now, the
configure script does this automatically.  This commit should not
change anything, so no PKGREVISION++.  (I've been running with this
diff for a long time, on an i386 machine.)

Discussed with riastradh@ back in March.
2015-07-06 20:29:45 +00:00
wiz
5cf8abe965 Fix quoting in configure script. 2015-05-01 08:58:39 +00:00
wiz
3598bc9fb2 Update to 0.13.4:
Alan Coopersmith (1):
      libpciaccess 0.13.4

Chih-Wei Huang (1):
      Add missing guards around config.h inclusion

Eero Tamminen (1):
      Check for __linux__ instead of linux during compilation

Emil Velikov (2):
      Include the POSIX fcntl.h instead of sys/fcntl.h
      Include config.h before any other headers.

Tobias Nygren (1):
      Bug 89151: Fix build on NetBSD/alpha and NetBSD/sparc64.
2015-05-01 08:38:42 +00:00
gdt
2384875cf5 Fix configure to compile on i386.
We are carrying a patch for configure to include -li386 on i386/i486,
but the upstream script is missing the [] intended to match multiple
subfamilies, and hence does not match.  This commit just adds in the
missing [], enabling compilation to succeed on i386, and not changing
anything on !i386.
2015-03-21 22:35:45 +00:00
tnn
bb26a6b577 Fix build on non-x86. Submitted upstream. 2015-02-15 06:05:29 +00:00
riastradh
4c99f6ae93 libpciaccess should work on all NetBSD ports, provided -lpci. 2015-02-14 05:52:11 +00:00
wiz
f362f2f71a Update to 0.13.3:
libpciaccess is used by the Xorg server to interface with the appropriate
routines for finding and using PCI bus devices on various operating systems.

This release provides a number of platform-specific improvements for various
platforms, including Linux, Solaris, OpenBSD, NetBSD, and Hurd, plus the
addition of some support for Cygwin.

Alan Coopersmith (3):
      Enable use of __attribute__((deprecated)) with Solaris Studio 12.4 compiler
      Solaris: Fix fd leak in pci_device_solx_devfs_map_range()
      libpciaccess 0.13.3

Marcin Ko?cielnicki (1):
      Fix IO access functions on linux+sysfs.

Mark Kettenis (1):
      Use PCIOCREADMASK on OpenBSD.

Matthew Green (1):
      Implement the kernel_has_driver() method for NetBSD.

Samuel Pitoiset (2):
      Windows/Cygwin: Add support through the WinIo library
      Fix a compilation error on GNU Hurd platforms.

Thomas Klausner (2):
      Fix zlib handling on NetBSD.
      Improve NetBSD i386 detection.
2015-02-04 06:59:46 +00:00
richard
aeb9a78804 Solaris: Fix fd leak in pci_device_solx_devfs_map_range() as in upstream patch:
http://cgit.freedesktop.org/xorg/lib/libpciaccess/commit/?id=1654a0462723b3b75d7a4a20bedfc653cc3e1f1a
Revision bump to pick it up...
2014-08-10 06:35:29 +00:00
obache
5471bbb758 libpciacess on NetBSD-5 is missing linkage with libz whereas using it. 2014-07-13 13:00:33 +00:00
obache
e63a4221c8 Add builtin support for libpciaccess. 2014-04-29 06:18:42 +00:00
jperkin
ac393e3e80 Add support for Darwin. Patch from nixpkgs. 2013-12-21 11:05:23 +00:00
markd
9df5639ad7 Re-add match on i[3-9]86* from previous version of patch so that matches
NetBSD/i386 (which is being reported as i486--netbsdelf)
2013-08-07 10:12:43 +00:00
wiz
56af6b39bd Update to 0.13.2. Set LICENSE.
This release provides a lot of platform-specific improvements for various
platforms, including Solaris (SPARC & x64), FreeBSD, NetBSD, and Hurd.
It also provides some platform-independent fixes & code cleanup.

Adam Jackson (1):
      configure: Remove AM_MAINTAINER_MODE

Alan Coopersmith (10):
      Solaris: Implement map_legacy & legacy_io functions
      Solaris: refactor pci_device_solx_devfs_map_range to reduce code duplication
      Bug 63583 - add legacy IO routines for FreeBSD
      Define PCI_MATCH_ANY as an unsigned int
      pci_id_file_open: move variable inside the #ifndef that uses it
      pci_device_solx_devfs_read: fix sign conversion/comparison warnings
      Solaris: Remove #defines for Ultra 45 southbridge device ids
      pci_device_solx_devfs_probe: implicit conversion changes signedness warnings
      Resync COPYING file with copyrights/licenses from code
      libpciaccess 0.13.2

Colin Walters (1):
      autogen.sh: Implement GNOME Build API

Egbert Eich (1):
      PCI: set correct mask value when matching for bridges.

Henry Zhao (5):
      libpciaccess: implementation of boot_vga in Solaris
      libpciaccess: sparc rom read fix
      scanpci: print meaningful info on BASEROM
      Solaris: Add domain support for sparc platform
      Solaris: probe improvement

John Martin (1):
      Fix Sun bug #7035791: scanpci should report 64 bit registers

Mark Logan (1):
      libpciaccess: fix memory usage errors

Samuel Thibault (1):
      Implement legacy io & map for x86 backend

Thomas Klausner (6):
      Protect config.h like usual.
      Move 'const' to correct place, so it has meaning.
      Update NetBSD support.
      Enable boot_vga support only if WSDISPLAYIO_GET_BUSID is defined.
      Fix build on NetBSD-4.
      Support more pci functions on NetBSD.
2013-07-21 09:42:40 +00:00
obache
32db99222c fixes missing `,' for legacy NetBSD case. 2013-06-04 10:16:00 +00:00
wiz
7873d455d8 Fixes from Chuck Silvers <chuq@chuq.com> based on openbsd_pci.c.
Bump PKGREVISION.
2013-06-03 14:19:38 +00:00
wiz
957b3b96d8 Remove patch that only changes whitespace.
ok richard@
2013-05-28 06:49:48 +00:00
wiz
100f7747c5 Fix Dragonfly with Radeon 4350. From
https://bugs.freedesktop.org/attachment.cgi?id=78130
via David Shao in PR 47828.
Bump PKGREVISION.
2013-05-18 13:46:35 +00:00
richard
e7d1cc25ae update distinfo for libpciaccess 2013-05-15 17:56:52 +00:00
richard
e7bd091756 terminate incomplete libpciaccess update 2013-05-15 03:54:42 +00:00
richard
33531ae865 Update sysutils/libpciutils with various upstream patches, many for solaris
and SPARC.  http://cgit.freedesktop.org/xorg/lib/libpciaccess/log/
2013-05-15 03:20:15 +00:00
asau
54c5cd959e Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. 2012-10-23 19:50:50 +00:00
taca
71019e75dc Fix build problem on NetBSD 4.0, simply revert the part of
"#ifdef _X86_SYSARCH_L" from revision 1.8.
2012-10-12 00:37:04 +00:00
fhajny
e4dbda3b0b Needs zlib bl3 2012-07-20 11:24:02 +00:00
wiz
4e7f0ac941 Try fixing build on NetBSD 5 (PR 46705). 2012-07-15 08:12:42 +00:00
wiz
60e0753965 Update to 0.13.1. Update patch-ac (netbsd_pci.c) using current version
of the file from xsrc.
meta-pkgs/modular-xorg still builds.

Changes:
0.12.0:
pciaccess 0.12.0 release, contains a fix for a major MTRR issue from Thomas,
along with a use after free, generic x86 backend, a few vgaarb fixes, and
some packaging magic.

Alan Coopersmith (3):
      Update Sun license notices to current X.Org standard form
      Delay allocation of agp_info so we don't leak it on prior errors
      Let libtool handle library flags for scanpci on Solaris

Dave Airlie (2):
      pciaccess: fix use after free.
      libpciaccess 0.12.0 - bump version for release

Gaetan Nadon (2):
      config: remove the pkgconfig pc.in file from EXTRA_DIST
      config: update AC_PREREQ statement to 2.60

Julien Cristau (1):
      COPYING: add Red Hat's copyright notice

Samuel Thibault (1):
      libpciaccess x86 backend

Thomas Hellstrom (1):
      Fix long standing MTRR bug.

Tiago Vignatti (2):
      vgaarb: decode should send new information to the kernel
      vgaarb: read back vga count when setting new decoding

0.12.1:
This bug fix release corrects a couple bugs in the device probing code,
as well as providing various build configuration improvements.

Alan Coopersmith (4):
      Sun's copyrights belong to Oracle now
      config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS
      config: remove AC_PROG_CC as it overrides AC_PROG_C_C99
      libpciaccess 0.12.1

Bryce Harrington (1):
      Fix detection of multi-function cards

Gaetan Nadon (8):
      config: upgrade AC_DEFINE_DIR to AX_DEFINE_DIR
      config: provide a makefile for scanpci dev tool
      scanpci.c: remove offending whitespace as reported by git diff
      config: provide a makefile for scanpci man pages
      config: replace INCLUDES, which is deprecated, with AM_CPPFLAGS
      include: add a Makefile to install and distribute header file
      config: use LDADD to obtain appropriate dependencies
      config: replace deprecated AC_HELP_STRING with AS_HELP_STRING

Jesse Barnes (1):
      Revert "Don't try to use bogus bridge data"

0.13.0:
Adam Jackson (1):
      linux: Don't use /dev/port

Alan Coopersmith (3):
      Solaris: reorder functions to remove need for lots of static prototypes
      Close pci.ids file when bailing out because realloc failed
      solx_devfs.c: fix gcc warnings about casting away const when reading data

Daniel Drake (1):
      delete_io_handle: fix deletion of last handle

Henry Zhao (1):
      Solaris: improve support for sparc platform

Jeremy Huddleston (1):
      configure.ac: Bump to 0.13

Mark Kettenis (3):
      OpenBSD: Indicate that devices need access to legacy VGA resources.
      Add VGA Arbiter support for OpenBSD.
      OpenBSD: Implement map_legacy and legacy_io

Mathias Krause (1):
      Use correct type for pci_id file accessor functions

0.13.1:
Adam Jackson (2):
      Use O_CLOEXEC for internal file descriptors
      linux: Fix out[bwl] macros on non-I/O architectures

Julien Cristau (1):
      Bump to 0.13.1

Matthieu Herrb (1):
      Fix pci_io_handle allocation routines.

Thordur Bjornsson (1):
      Fix openbsd_pci.c:pci_device_vgaarb_set_target();
2012-07-14 23:42:12 +00:00
shattered
7c650526c6 Add NetBSD/hp700 to the list of supported platforms. 2012-01-21 12:09:03 +00:00
taca
5e2bad7b6a Revert previous commit; I didn't noticed revision 1.8 of patches/patch-ac. 2011-05-09 15:26:16 +00:00
taca
b7d9f63012 Fix build problem on NetBSD 4_STABLE which dosen't have _X86_SYSARCH_L()
cpp macro.
2011-05-09 14:06:46 +00:00
shattered
ff80a9795a PR/44785 -- fix build on NetBSD 4 2011-05-07 10:06:34 +00:00
wiz
e2f84ad43f Reset maintainer for retired developers. 2011-02-28 14:52:37 +00:00
drochner
9b45cc1ce2 make this build on i386/current 2011-02-14 21:34:04 +00:00
pooka
3a4eb6352a Make HAVE_MTRR actually work. This increases my X performance
so much it's borderline not funny anymore.
(tested on a similar patch to libpciaccess 0.10.8, since my X still
refuses to start with libpciaccess 0.11)

from jmcneill
2011-02-10 16:20:45 +00:00
reed
613f398707 Require newer build dependency for:
checking if xorg-macros used to generate configure is at least 1.3... configure: error: configure built with too old of a version of xorg-macros.m4 - requires version 1.2.0 or newer
2010-12-09 19:58:26 +00:00
tnn
815dc0e54f Update to libpciaccess-0.11.
Synced the netbsd support patch from xsrc HEAD, with a minor tweak:
 Now we first try to map memory in the newfangled /dev/pciN way.
 If that fails, then we fall back to /dev/mem.
 We need to do this to deal with netbsd-5 and earlier.

Add NetBSD/sparc64 to the list of supported platforms.

Upstream changes:

0.11.0:
 Add pci_device_get_parent_bridge()
 I/O port access routines
 Fix pci_device_open_io() to actually return something useful
 Fix I/O handle array allocator to work for devices past the first
 libpciaccess 0.11.0
 .gitignore: use common defaults with custom section # 24239
 Makefile.am: ChangeLog not required: EXTRA_DIST or *CLEANFILES #24432
 Deploy the new XORG_DEFAULT_OPTIONS #24242
 INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206
 Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILES
0.10.9:
 vgaarb: check pci_sys exists before initing vga arb
 shutup stupid gcc warning, strtok_r ignores the first parameter
 Free return value from scandir instead of leaking it.
 vgaarb: check for fd before close it
 vgaarb: fix newbie typo
2010-04-09 08:09:11 +00:00
wiz
de12c60c03 Update to 0.10.8:
Slight brown paper bag release, 0.10.7 fails to build
when the vga arb stubs were required. also whot pointed
out I had no info in 0.10.7 release mail.

libpciacesss 0.10.8 provides support for VGA arbiter on Linux,
along with support to check if a device is the boot VGA and
if a device has a kernel driver associated with it.

Dave Airlie (1):
      pciaccess: bump to 0.10.8

Thomas Klausner (1):
      pciaccess: fix vga arb stubs
2009-08-31 07:48:22 +00:00
wiz
dcc36689f1 Update to 0.10.7:
Aaron Plattner (1):
      Don't try to write boot_vga since that fails with EACCES

Dave Airlie (15):
      pciaccess: provide a method to detect if a device is boot VGA
      vgaarb: fixup api and decode rsrc.
      add support for finding if something has a kernel driver
      vgaarb: fixup api for new count reporting + decodes interface was wrong.
      vgaarb: clean up debug output
      vgaarb: add support for targetting default device
      vgaarb: change API to target taking a device + lock/unlock not taking one
      vgaarb: more api changes + cleanup
      vgaarb: add vga count + resource accessor
      pciaccess: make linux rom reading fallback optional
      pciaccess: make linux rom reading fallback optional
      pciaccess: make linux rom reading fallback optional
      Revert "vgaarb: delete stub functions"
      vgaarb: update stub interface
      libpciaccess: bump to 0.10.7 for vga arb interface addition

Jesse Barnes (1):
      Don't try to use bogus bridge data

Julien Cristau (2):
      configure.ac: fix help text for the linux-rom-fallback option
      Silence compiler warning about pci_id_file_open definition

Tiago Vignatti (11):
      Import libvgaaccess (VGA Arbiter) implementation from C3SL repository:
      vgaarb: make it compile.
      vgaarb: a bunch of clean ups to fit in libpciaccess style.
      Delete vga_arb_rec.
      Fix typo in vgaarb stubs.
      Reorganize the code.
      Comment typo.
      vgaarb: delete stub functions
      vgaarb: fix indentation and remove trailing white spaces
      vgaarb: fix pci_device_vgaarb_get_info() return value.
      Revert "vgaarb: fix pci_device_vgaarb_get_info() return value."
2009-08-29 15:41:33 +00:00
drochner
9862fd440c Add a minimal implementation of the read_rom method for NetBSD, just
good enough to get newer xorg servers running.
(I need to double-check the PCI spec, but it is well possible that we
can't do much better anyway: ISTR the PCI spec allows devices to share
decoding ressources between ROM and runtime logics, which means there
is no safe way to read the original ROM at runtime. Correct me if
I'm wrong.)
2009-05-25 20:11:05 +00:00
hasso
6ebd8ee533 Update to 0.10.6. Fix build on DragonFly.
Changes since 0.10.5:

Alan Coopersmith (12):
      Fill in byte swapping routines for big-endian Solaris machines
      Don't open/gzopen pci.ids if we're not going to read it
      Add AC_SYS_LARGEFILE to configure.ac
      Solaris: Use bus-range properties to limit busses scanned on each node
      Add README with pointers to mailing list, bugzilla & git repos
      Fix const mismatch compiler warnings in Solaris backend
      Sun bug 6811468: pci_device_solx_devfs_probe accesses freed memory
      Move included m4 to a subdir so we can more easily update from upstream
      Fix $CWARNFLAGS addition
      Fix unused variable warnings in Solaris code
      Resync COPYING file with code copyright notices
      Version bump: 0.10.6

Darren Smith (1):
      Be more paranoid about reading bridge info (#20786)

Mark Kettenis (1):
      Make libpciaccess on OpenBSD domain-aware.

Matthieu Herrb (3):
      Fix a logic error in pci_device_openbsd_write().
      Sync with OpenBSD code.
      Fix a logic error in pci_device_netbsd_write()

Owain Ainsworth (1):
      openbsd_pci.c: use the correct size when mapping the legacy vga rom.

Paulo Cesar Pereira de Andrade (1):
      Janitor: Correct make distcheck and compiler warnings.

Robert Noland (1):
      FreeBSD: Incorporate several fixes that have accumulated.

edward shu (1):
      Sun bug 6785726: libpciaccess needs to use the correct BAR index on solaris


Changes since 0.10.4:

Julien Cristau (2):
      Make --without-zlib work
      Bump to 0.10.5

Robert Noland (1):
      Fix FreeBSD systems which support pci domains.
2009-05-18 19:09:01 +00:00
joerg
2d1ba244e9 Simply and speed up buildlink3.mk files and processing.
This changes the buildlink3.mk files to use an include guard for the
recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS,
BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new
variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of
enter/exit marker, which can be used to reconstruct the tree and
to determine first level includes. Avoiding := for large variables
(BUILDLINK_ORDER) speeds up parse time as += has linear complexity.
The include guard reduces system time by avoiding reading files over and
over again. For complex packages this reduces both %user and %sys time to
half of the former time.
2009-03-20 19:23:50 +00:00
bjs
c4e77109cf Add support for compressed pci.ids file via zlib. 2008-10-30 21:06:32 +00:00
bjs
c529df5e44 Remove superfluous hunk of patch-ac. 2008-10-30 21:00:37 +00:00
bjs
e2cb632768 Import libpciaccess-0.10.4 (X.org PCI wrapper library) + patches.
Tested on NetBSD-current (i386 and amd64); support for
other architectures is in the works.

Currently this should work with:

ONLY_FOR_PLATFORM=	FreeBSD-*-i386 NetBSD-*-i386 OpenBSD-*-i386
ONLY_FOR_PLATFORM+=	FreeBSD-*-x86_64 NetBSD-*-x86_64 OpenBSD-*-x86_64
ONLY_FOR_PLATFORM+=	DragonFly-i386-* DragonFly-x86_64-*
ONLY_FOR_PLATFORM+=	Linux-*-* SunOS-*-*
2008-10-30 20:58:11 +00:00