.gitignore | 65 ++ COPYING | 57 - ChangeLog | 1114 +++++++++++++++++++++++++++++++++++++- Makefile.am | 18 README | 35 + configure.ac | 86 +- debian/README.source | 7 debian/changelog | 95 +++ debian/compat | 2 debian/control | 22 debian/copyright | 51 + debian/libpciaccess-dev.install | 6 debian/libpciaccess0-udeb.install | 1 debian/libpciaccess0.install | 2 debian/libpciaccess0.shlibs | 1 debian/libpciaccess0.symbols | 20 debian/rules | 86 -- debian/source.lintian-overrides | 1 debian/watch | 1 include/Makefile.am | 1 include/pciaccess.h | 79 ++ m4/ax_define_dir.m4 | 49 + man/Makefile.am | 34 + man/scanpci.man | 44 + scanpci/.gitignore | 1 scanpci/Makefile.am | 29 scanpci/scanpci.c | 215 +++++++ src/.gitignore | 8 src/Makefile.am | 34 - src/common_bridge.c | 60 +- src/common_capability.c | 12 src/common_device_name.c | 19 src/common_init.c | 3 src/common_interface.c | 51 + src/common_io.c | 252 ++++++++ src/common_vgaarb.c | 339 +++++++++++ src/common_vgaarb_stub.c | 79 ++ src/freebsd_pci.c | 183 +++++- src/linux_sysfs.c | 234 ++++++- src/netbsd_pci.c | 2 src/openbsd_pci.c | 282 ++++++--- src/pci_tools.h | 44 - src/pciaccess_private.h | 29 src/scanpci.c | 214 ------- src/scanpci.man | 44 - src/solx_devfs.c | 198 ++++-- src/x86_pci.c | 669 ++++++++++++++++++++++ 47 files changed, 4156 insertions(+), 722 deletions(-)
New commits: commit 8d5d28a71feb352574a22598487ef47ba7906ebf Author: Christopher James Halse Rogers <r...@ubuntu.com> Date: Mon Aug 8 15:40:09 2011 +1000 Switch to compat 9 for easy multiarch diff --git a/debian/changelog b/debian/changelog index b00d1e9..eec320e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,8 @@ libpciaccess (0.12.1-2) UNRELEASED; urgency=low - * Switch to dh and compat 7. + * Switch to dh. + * Switch to debhelper compat 9 and build multiarch libraries. + * Add lintian override for not-yet-finalised debhelper compat level. * Bump standards version to 3.9.2 (no changes). -- Christopher James Halse Rogers <r...@ubuntu.com> Mon, 08 Aug 2011 12:41:42 +1000 diff --git a/debian/compat b/debian/compat index c793025..ec63514 100644 --- a/debian/compat +++ b/debian/compat @@ -1 +1 @@ -7 \ No newline at end of file +9 diff --git a/debian/control b/debian/control index 7c30152..2a5367c 100644 --- a/debian/control +++ b/debian/control @@ -4,7 +4,7 @@ Priority: optional Maintainer: Debian X Strike Force <debian-x@lists.debian.org> Uploaders: David Nusinow <dnusi...@debian.org>, Cyril Brulebois <k...@debian.org> Build-Depends: - debhelper (>= 7.0.50~), + debhelper (>= 8.1.3), libtool, automake, zlib1g-dev, @@ -20,6 +20,8 @@ Section: libs Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Suggests: pciutils +Pre-Depends: ${misc:Pre-Depends} +Multi-Arch: same Description: Generic PCI access library for X Provides functionality for X to access the PCI bus and devices in a platform-independant way. diff --git a/debian/libpciaccess-dev.install b/debian/libpciaccess-dev.install index 4797855..304f643 100644 --- a/debian/libpciaccess-dev.install +++ b/debian/libpciaccess-dev.install @@ -1,4 +1,4 @@ -usr/lib/pkgconfig -usr/lib/lib*.a -usr/lib/lib*.so +usr/lib/*/pkgconfig +usr/lib/*/lib*.a +usr/lib/*/lib*.so usr/include diff --git a/debian/libpciaccess0-udeb.install b/debian/libpciaccess0-udeb.install index 413fe77..16d2f19 100644 --- a/debian/libpciaccess0-udeb.install +++ b/debian/libpciaccess0-udeb.install @@ -1 +1 @@ -usr/lib/libpciaccess.so.0* +usr/lib/*/libpciaccess.so.0* usr/lib diff --git a/debian/libpciaccess0.install b/debian/libpciaccess0.install index 413fe77..782ff72 100644 --- a/debian/libpciaccess0.install +++ b/debian/libpciaccess0.install @@ -1 +1 @@ -usr/lib/libpciaccess.so.0* +usr/lib/*/libpciaccess.so.0* diff --git a/debian/source.lintian-overrides b/debian/source.lintian-overrides new file mode 100644 index 0000000..b27fbac --- /dev/null +++ b/debian/source.lintian-overrides @@ -0,0 +1 @@ +source: package-needs-versioned-debhelper-build-depends 9 commit 0b100bef8fccb4ce362f6b1a29c2789b775c41a0 Author: Christopher James Halse Rogers <r...@ubuntu.com> Date: Mon Aug 8 15:38:23 2011 +1000 Bump standards version; no changes needed diff --git a/debian/changelog b/debian/changelog index fa66c2c..b00d1e9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ libpciaccess (0.12.1-2) UNRELEASED; urgency=low * Switch to dh and compat 7. + * Bump standards version to 3.9.2 (no changes). -- Christopher James Halse Rogers <r...@ubuntu.com> Mon, 08 Aug 2011 12:41:42 +1000 diff --git a/debian/control b/debian/control index 19ee278..7c30152 100644 --- a/debian/control +++ b/debian/control @@ -11,7 +11,7 @@ Build-Depends: xutils-dev (>= 1:7.5), pkg-config, dh-autoreconf, -Standards-Version: 3.9.1 +Standards-Version: 3.9.2 Vcs-Git: git://git.debian.org/git/pkg-xorg/lib/libpciaccess Vcs-Browser: http://git.debian.org/?p=pkg-xorg/lib/libpciaccess.git commit d7c5c5d8f6e11a2930518a80a76ec12645d4572d Author: Christopher James Halse Rogers <r...@ubuntu.com> Date: Mon Aug 8 13:15:54 2011 +1000 Switch to dh and compat 7. Also kill the *.la files, and dh_install --fail-missing. diff --git a/debian/changelog b/debian/changelog index a9758b3..fa66c2c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +libpciaccess (0.12.1-2) UNRELEASED; urgency=low + + * Switch to dh and compat 7. + + -- Christopher James Halse Rogers <r...@ubuntu.com> Mon, 08 Aug 2011 12:41:42 +1000 + libpciaccess (0.12.1-1) unstable; urgency=low * New upstream release. diff --git a/debian/compat b/debian/compat index 7ed6ff8..c793025 100644 --- a/debian/compat +++ b/debian/compat @@ -1 +1 @@ -5 +7 \ No newline at end of file diff --git a/debian/control b/debian/control index 0ac632b..19ee278 100644 --- a/debian/control +++ b/debian/control @@ -4,12 +4,13 @@ Priority: optional Maintainer: Debian X Strike Force <debian-x@lists.debian.org> Uploaders: David Nusinow <dnusi...@debian.org>, Cyril Brulebois <k...@debian.org> Build-Depends: - debhelper (>= 5), + debhelper (>= 7.0.50~), libtool, automake, zlib1g-dev, xutils-dev (>= 1:7.5), pkg-config, + dh-autoreconf, Standards-Version: 3.9.1 Vcs-Git: git://git.debian.org/git/pkg-xorg/lib/libpciaccess Vcs-Browser: http://git.debian.org/?p=pkg-xorg/lib/libpciaccess.git diff --git a/debian/rules b/debian/rules index 9d64d5a..aa0298e 100755 --- a/debian/rules +++ b/debian/rules @@ -22,73 +22,19 @@ else confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) endif -configure: - autoreconf -vfi +%: + dh $@ --with autoreconf --builddirectory=build/ -build/config.status: configure - mkdir -p build - cd build && \ - ../configure \ - --prefix=/usr \ - --mandir=\$${prefix}/share/man \ - --infodir=\$${prefix}/share/info \ - --with-pciids-path=\$${prefix}/share/misc \ - --with-zlib \ - $(confflags) \ - CFLAGS="$(CFLAGS)" +override_dh_auto_configure: + dh_auto_configure -- \ + --with-pciids-path=\$${prefix}/share/misc \ + --with-zlib \ + $(confflags) \ + CFLAGS="$(CFLAGS)" -build: build-stamp -build-stamp: build/config.status - dh_testdir - cd build && $(MAKE) - >$@ +override_dh_install: + find debian/tmp -type f -name *.la -delete + dh_install --fail-missing -clean: - dh_testdir - dh_testroot - rm -f build-stamp - - rm -f config.cache config.log config.status - rm -f */config.cache */config.log */config.status - rm -f conftest* */conftest* - rm -rf autom4te.cache */autom4te.cache - rm -rf build - find -name Makefile.in -delete - rm -f compile config.guess config.sub configure depcomp install-sh - rm -f ltmain.sh missing INSTALL aclocal.m4 mkinstalldirs config.h.in - rm -f m4/libtool.m4 m4/lt*.m4 - - dh_clean - -install: build - dh_testdir - dh_testroot - dh_clean -k - dh_installdirs - - cd build && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install - -# Install architecture-dependent files here. -binary-arch: build install - dh_testdir - dh_testroot - - dh_installdocs - dh_install --sourcedir=debian/tmp --list-missing - dh_installchangelogs ChangeLog - dh_link - dh_strip #--dbg-package=$(PACKAGE)-dbg - dh_compress - dh_fixperms +override_dh_makeshlibs: dh_makeshlibs -V'libpciaccess0 (>= 0.11.0)' --add-udeb=$(PACKAGE)-udeb - dh_shlibdeps - dh_installdeb - dh_gencontrol - dh_md5sums - dh_builddeb - -binary-indep: build install -# Nothing to do - -binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install commit 112a8aea56e09b796f76589f0316db5ec0a7343d Author: Julien Cristau <jcris...@debian.org> Date: Sun Feb 6 16:09:33 2011 +0100 Upload to unstable diff --git a/debian/changelog b/debian/changelog index 76c4bf8..a9758b3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,10 +1,10 @@ -libpciaccess (0.12.1-1) UNRELEASED; urgency=low +libpciaccess (0.12.1-1) unstable; urgency=low * New upstream release. * Bump Standards-Version to 3.9.1 (no changes). * debian/copyright: Sun's copyrights belong to Oracle now. - -- Julien Cristau <jcris...@debian.org> Sun, 06 Feb 2011 15:55:49 +0100 + -- Julien Cristau <jcris...@debian.org> Sun, 06 Feb 2011 16:09:22 +0100 libpciaccess (0.12.0-1) unstable; urgency=low commit 220ec1ddae760eb8a08e7d5c1c64e4011299403e Author: Julien Cristau <jcris...@debian.org> Date: Sun Feb 6 16:09:06 2011 +0100 debian/copyright: Sun's copyrights belong to Oracle now. diff --git a/debian/changelog b/debian/changelog index 002b307..76c4bf8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ libpciaccess (0.12.1-1) UNRELEASED; urgency=low * New upstream release. * Bump Standards-Version to 3.9.1 (no changes). + * debian/copyright: Sun's copyrights belong to Oracle now. -- Julien Cristau <jcris...@debian.org> Sun, 06 Feb 2011 15:55:49 +0100 diff --git a/debian/copyright b/debian/copyright index e2321bb..14487f7 100644 --- a/debian/copyright +++ b/debian/copyright @@ -19,7 +19,7 @@ Copyright: (C) Copyright IBM Corporation 2006, 2007 (C) Copyright Eric Anholt 2006 -Copyright 2007, 2008, 2009 Sun Microsystems, Inc. +Copyright (c) 2007, 2008, 2009, Oracle and/or its affiliates. Copyright 2009 Red Hat, Inc. All Rights Reserved. commit 1a6146850d0ab4d036c32e4d668a7395a88df7cc Author: Julien Cristau <jcris...@debian.org> Date: Sun Feb 6 16:07:25 2011 +0100 Bump Standards-Version to 3.9.1 (no changes). diff --git a/debian/changelog b/debian/changelog index 76664f5..002b307 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ libpciaccess (0.12.1-1) UNRELEASED; urgency=low * New upstream release. + * Bump Standards-Version to 3.9.1 (no changes). -- Julien Cristau <jcris...@debian.org> Sun, 06 Feb 2011 15:55:49 +0100 diff --git a/debian/control b/debian/control index 7ccacba..0ac632b 100644 --- a/debian/control +++ b/debian/control @@ -10,7 +10,7 @@ Build-Depends: zlib1g-dev, xutils-dev (>= 1:7.5), pkg-config, -Standards-Version: 3.9.0 +Standards-Version: 3.9.1 Vcs-Git: git://git.debian.org/git/pkg-xorg/lib/libpciaccess Vcs-Browser: http://git.debian.org/?p=pkg-xorg/lib/libpciaccess.git commit da4f0b45303c9790dda8377dbef97f3bfff57417 Author: Julien Cristau <jcris...@debian.org> Date: Sun Feb 6 15:56:18 2011 +0100 Bump changelogs diff --git a/ChangeLog b/ChangeLog index f263fae..cb640b9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,179 @@ +commit d05ed57216726811388f17d7e87d7b6c7b8580ee +Author: Alan Coopersmith <alan.coopersm...@oracle.com> +Date: Wed Feb 2 20:50:17 2011 -0800 + + libpciaccess 0.12.1 + + Signed-off-by: Alan Coopersmith <alan.coopersm...@oracle.com> + +commit 7b4bd8222579b60bec6ab9dbf834d61b1fc7cc74 +Author: Gaetan Nadon <mems...@videotron.ca> +Date: Fri Jan 28 16:07:07 2011 -0500 + + config: replace deprecated AC_HELP_STRING with AS_HELP_STRING + + This silences an Automake warning. + + Signed-off-by: Gaetan Nadon <mems...@videotron.ca> + +commit 5fdae72cc62f4341ae5fa0b7696809d4ccd1bd32 +Author: Alan Coopersmith <alan.coopersm...@oracle.com> +Date: Thu Jan 13 22:05:02 2011 -0800 + + config: remove AC_PROG_CC as it overrides AC_PROG_C_C99 + + XORG_STRICT_OPTION from XORG_DEFAULT_OPTIONS calls + AC_PROG_C_C99. This sets gcc with -std=gnu99. + If AC_PROG_CC macro is called afterwards, it resets CC to gcc. + + Signed-off-by: Gaetan Nadon <mems...@videotron.ca> + Signed-off-by: Alan Coopersmith <alan.coopersm...@oracle.com> + +commit 48d08f09e36d4aa8e02812874794937d7c778b43 +Author: Alan Coopersmith <alan.coopersm...@oracle.com> +Date: Thu Jan 13 21:58:02 2011 -0800 + + config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS + + Regroup AC statements under the Autoconf initialization section. + Regroup AM statements under the Automake initialization section. + Add missing AC_CONFIG_SRCDIR + Replace obsolete argument to AC_OUTPUT with AC_CONFIG_FILES + + Signed-off-by: Alan Coopersmith <alan.coopersm...@oracle.com> + +commit 066032e08407311cfc24dbc1db3245cf8133ad94 +Author: Bryce Harrington <br...@canonical.com> +Date: Tue Dec 14 12:03:48 2010 -0500 + + Fix detection of multi-function cards + + Bit 7 of the pci device header type is an indicator of multi-function + devices, so needs to be masked when examining the bridge type. + Thanks go to Chih-Pin Wu for finding the bug and its fix. + + https://bugs.launchpad.net/ubuntu/+source/libpciaccess/+bug/681207 + + Reviewed-by: Adam Jackson <a...@redhat.com> + Signed-off-by: Bryce Harrington <br...@canonical.com> + +commit 6220537628fb5e55c94d7dbe1ec190bf38d3b01b +Author: Jesse Barnes <jbar...@virtuousgeek.org> +Date: Mon Dec 6 12:18:19 2010 -0800 + + Revert "Don't try to use bogus bridge data" + + This reverts commit 2bda5b733bb12854760750c08138db95e77aea0c. + + It actually conflicts with 9ba94caf57e3a8c3e9c6f3f5f068f4a7a7b3ff9d + which came earlier, but I didn't catch it probably because I did a blind + rebase before pushing. + + When reading bridge bus info, we may need to read out the current bridge + info if the PCI bridge private is uninitialized, so remove the check at + the top that would always short circuit the case where the priv was + still 0. + + References: + https://bugs.launchpad.net/ubuntu/+source/libpciaccess/+bug/681207. + + Reported-by: Bryce Harrington <br...@canonical.com> + Signed-off-by: Jesse Barnes <jbar...@virtuousgeek.org> + +commit 30bfd795557cada4a3c2ce36329ceb22160acff8 +Author: Alan Coopersmith <alan.coopersm...@oracle.com> +Date: Sun Nov 21 11:14:05 2010 -0800 + + Sun's copyrights belong to Oracle now + + Signed-off-by: Alan Coopersmith <alan.coopersm...@oracle.com> + +commit e29e477ff84ab16938e58ae2719358c14c86a500 +Author: Gaetan Nadon <mems...@videotron.ca> +Date: Fri Oct 15 17:34:16 2010 -0400 + + config: use LDADD to obtain appropriate dependencies + + In generated scanpci/Makefile, this line is added: + scanpci_DEPENDENCIES = $(top_builddir)/src/libpciaccess.la + + If the content of the library changes, the tool will rebuild. + When scanpci was in the same directory as the library, the .la file was used. + This will also ensure the "installed" pciaccess library is not used. + + Signed-off-by: Gaetan Nadon <mems...@videotron.ca> + +commit fd476deabb97d08086ad465c4d0e913c9437a6bb +Author: Gaetan Nadon <mems...@videotron.ca> +Date: Sun Sep 26 14:57:19 2010 -0400 + + include: add a Makefile to install and distribute header file + + Makefiles are simpler when they only handle what is in their + directory. + + Reviewed-by: Rémi Cardona <r...@gentoo.org> + Signed-off-by: Gaetan Nadon <mems...@videotron.ca> + +commit 2b5c81c2d8c643e58ac69d1d7f7a626fc392b1ea +Author: Gaetan Nadon <mems...@videotron.ca> +Date: Sun Sep 26 14:42:50 2010 -0400 + + config: replace INCLUDES, which is deprecated, with AM_CPPFLAGS + + Fixes an Automake warning. + + Reviewed-by: Rémi Cardona <r...@gentoo.org> + Signed-off-by: Gaetan Nadon <mems...@videotron.ca> + +commit b4ee1ccfcd9e9d41033db7b6b5e0a771ae5939d2 +Author: Gaetan Nadon <mems...@videotron.ca> +Date: Sun Aug 22 08:10:23 2010 -0400 + + config: provide a makefile for scanpci man pages + + Reviewed-by: Rémi Cardona <r...@gentoo.org> + Signed-off-by: Gaetan Nadon <mems...@videotron.ca> + +commit 8daa135ae9eae0a0ed48cc68d6abce16141cd426 +Author: Gaetan Nadon <mems...@videotron.ca> +Date: Sun Sep 26 08:39:57 2010 -0400 + + scanpci.c: remove offending whitespace as reported by git diff + + Reviewed-by: Rémi Cardona <r...@gentoo.org> + Signed-off-by: Gaetan Nadon <mems...@videotron.ca> + +commit dcb79a20cba1eaaa83158b80bb538d50b003bd79 +Author: Gaetan Nadon <mems...@videotron.ca> +Date: Sun Aug 22 08:10:23 2010 -0400 + + config: provide a makefile for scanpci dev tool + + No function changes. + + Note that automake generates a wrapper script if libpciaccess + is not installed at configuration time, which is the most common case. + + If it is installed at configuration time, you get an executable. + + The makefile build order ensures the lib is build before scanpci. + + Reviewed-by: Rémi Cardona <r...@gentoo.org> + Signed-off-by: Gaetan Nadon <mems...@videotron.ca> + +commit 555772964820d88f9481eb48d0431dddd8ba7aa5 +Author: Gaetan Nadon <mems...@videotron.ca> +Date: Sat Aug 21 19:54:04 2010 -0400 + + config: upgrade AC_DEFINE_DIR to AX_DEFINE_DIR + + Use the latest version now hosted by GNU. + The renaming protects Autoconf namespace. + There is no functional change in the macro. + + Signed-off-by: Gaetan Nadon <mems...@videotron.ca> + commit fa3f1c1ea8ce4b45976e11520856cfa164f8b92d Author: Dave Airlie <airl...@redhat.com> Date: Wed Jul 21 09:39:26 2010 +1000 diff --git a/debian/changelog b/debian/changelog index 4000e37..76664f5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +libpciaccess (0.12.1-1) UNRELEASED; urgency=low + + * New upstream release. + + -- Julien Cristau <jcris...@debian.org> Sun, 06 Feb 2011 15:55:49 +0100 + libpciaccess (0.12.0-1) unstable; urgency=low * New upstream release: commit d05ed57216726811388f17d7e87d7b6c7b8580ee Author: Alan Coopersmith <alan.coopersm...@oracle.com> Date: Wed Feb 2 20:50:17 2011 -0800 libpciaccess 0.12.1 Signed-off-by: Alan Coopersmith <alan.coopersm...@oracle.com> diff --git a/configure.ac b/configure.ac index 75d5b0a..c3203d8 100644 --- a/configure.ac +++ b/configure.ac @@ -24,7 +24,7 @@ dnl Process this file with autoconf to create configure. # Initialize Autoconf AC_PREREQ([2.60]) -AC_INIT([libpciaccess],[0.12.0], +AC_INIT([libpciaccess],[0.12.1], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess],[libpciaccess]) AC_CONFIG_SRCDIR([Makefile.am]) AC_CONFIG_HEADERS([config.h]) commit 7b4bd8222579b60bec6ab9dbf834d61b1fc7cc74 Author: Gaetan Nadon <mems...@videotron.ca> Date: Fri Jan 28 16:07:07 2011 -0500 config: replace deprecated AC_HELP_STRING with AS_HELP_STRING This silences an Automake warning. Signed-off-by: Gaetan Nadon <mems...@videotron.ca> diff --git a/configure.ac b/configure.ac index 4966dae..75d5b0a 100644 --- a/configure.ac +++ b/configure.ac @@ -43,7 +43,7 @@ XORG_DEFAULT_OPTIONS AC_PROG_LIBTOOL pciids_path=/usr/share/hwdata -AC_ARG_WITH(pciids-path, AC_HELP_STRING([--with-pciids-path=PCIIDS_PATH], +AC_ARG_WITH(pciids-path, AS_HELP_STRING([--with-pciids-path=PCIIDS_PATH], [Path to pci.ids file]), [pciids_path="$withval"]) AX_DEFINE_DIR(PCIIDS_PATH, pciids_path, [Path to pci.ids]) @@ -56,7 +56,7 @@ if test "x$LINUX_ROM" = xyes; then fi use_zlib=no -AC_ARG_WITH(zlib, AC_HELP_STRING([--with-zlib], +AC_ARG_WITH(zlib, AS_HELP_STRING([--with-zlib], [Enable zlib support to read gzip compressed pci.ids]), [use_zlib="$withval"]) if test "x$use_zlib" = xyes; then commit 5fdae72cc62f4341ae5fa0b7696809d4ccd1bd32 Author: Alan Coopersmith <alan.coopersm...@oracle.com> Date: Thu Jan 13 22:05:02 2011 -0800 config: remove AC_PROG_CC as it overrides AC_PROG_C_C99 XORG_STRICT_OPTION from XORG_DEFAULT_OPTIONS calls AC_PROG_C_C99. This sets gcc with -std=gnu99. If AC_PROG_CC macro is called afterwards, it resets CC to gcc. Signed-off-by: Gaetan Nadon <mems...@videotron.ca> Signed-off-by: Alan Coopersmith <alan.coopersm...@oracle.com> diff --git a/configure.ac b/configure.ac index 873a514..4966dae 100644 --- a/configure.ac +++ b/configure.ac @@ -40,7 +40,6 @@ XORG_MACROS_VERSION(1.3) XORG_DEFAULT_OPTIONS # Check for progs -AC_PROG_CC AC_PROG_LIBTOOL pciids_path=/usr/share/hwdata commit 48d08f09e36d4aa8e02812874794937d7c778b43 Author: Alan Coopersmith <alan.coopersm...@oracle.com> Date: Thu Jan 13 21:58:02 2011 -0800 config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS Regroup AC statements under the Autoconf initialization section. Regroup AM statements under the Automake initialization section. Add missing AC_CONFIG_SRCDIR Replace obsolete argument to AC_OUTPUT with AC_CONFIG_FILES Signed-off-by: Alan Coopersmith <alan.coopersm...@oracle.com> diff --git a/configure.ac b/configure.ac index 47cd733..873a514 100644 --- a/configure.ac +++ b/configure.ac @@ -22,9 +22,14 @@ dnl DEALINGS IN THE SOFTWARE. dnl dnl Process this file with autoconf to create configure. +# Initialize Autoconf AC_PREREQ([2.60]) +AC_INIT([libpciaccess],[0.12.0], + [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess],[libpciaccess]) +AC_CONFIG_SRCDIR([Makefile.am]) +AC_CONFIG_HEADERS([config.h]) -AC_INIT(libpciaccess, 0.12.0, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess], libpciaccess) +# Initialize Automake AM_INIT_AUTOMAKE([foreign dist-bzip2]) AM_MAINTAINER_MODE @@ -33,7 +38,6 @@ m4_ifndef([XORG_MACROS_VERSION], [m4_fatal([must install xorg-macros 1.3 or later before running autoconf/autogen])]) XORG_MACROS_VERSION(1.3) XORG_DEFAULT_OPTIONS -AM_CONFIG_HEADER(config.h) # Check for progs AC_PROG_CC @@ -122,9 +126,10 @@ AC_SUBST(PCIACCESS_CFLAGS) AC_SUBST(PCIACCESS_LIBS) -AC_OUTPUT([Makefile +AC_CONFIG_FILES([Makefile include/Makefile man/Makefile src/Makefile scanpci/Makefile pciaccess.pc]) +AC_OUTPUT commit 066032e08407311cfc24dbc1db3245cf8133ad94 Author: Bryce Harrington <br...@canonical.com> Date: Tue Dec 14 12:03:48 2010 -0500 Fix detection of multi-function cards Bit 7 of the pci device header type is an indicator of multi-function devices, so needs to be masked when examining the bridge type. Thanks go to Chih-Pin Wu for finding the bug and its fix. https://bugs.launchpad.net/ubuntu/+source/libpciaccess/+bug/681207 Reviewed-by: Adam Jackson <a...@redhat.com> Signed-off-by: Bryce Harrington <br...@canonical.com> diff --git a/src/common_bridge.c b/src/common_bridge.c index 2609d7c..871c1f6 100644 --- a/src/common_bridge.c +++ b/src/common_bridge.c @@ -290,7 +290,7 @@ pci_device_get_bridge_buses(struct pci_device * dev, int *primary_bus, case 0x04: if (priv->bridge.pci == NULL) read_bridge_info(priv); - if (priv->header_type == 0x01) { + if ((priv->header_type & 0x7f) == 0x01) { *primary_bus = priv->bridge.pci->primary_bus; *secondary_bus = priv->bridge.pci->secondary_bus; *subordinate_bus = priv->bridge.pci->subordinate_bus; @@ -304,7 +304,7 @@ pci_device_get_bridge_buses(struct pci_device * dev, int *primary_bus, case 0x07: if (priv->bridge.pcmcia == NULL) read_bridge_info(priv); - if (priv->header_type == 0x02) { + if ((priv->header_type & 0x7f) == 0x02) { *primary_bus = priv->bridge.pcmcia->primary_bus; *secondary_bus = priv->bridge.pcmcia->card_bus; *subordinate_bus = priv->bridge.pcmcia->subordinate_bus; commit 6220537628fb5e55c94d7dbe1ec190bf38d3b01b Author: Jesse Barnes <jbar...@virtuousgeek.org> Date: Mon Dec 6 12:18:19 2010 -0800 Revert "Don't try to use bogus bridge data" This reverts commit 2bda5b733bb12854760750c08138db95e77aea0c. It actually conflicts with 9ba94caf57e3a8c3e9c6f3f5f068f4a7a7b3ff9d which came earlier, but I didn't catch it probably because I did a blind rebase before pushing. When reading bridge bus info, we may need to read out the current bridge info if the PCI bridge private is uninitialized, so remove the check at the top that would always short circuit the case where the priv was still 0. References: https://bugs.launchpad.net/ubuntu/+source/libpciaccess/+bug/681207. Reported-by: Bryce Harrington <br...@canonical.com> Signed-off-by: Jesse Barnes <jbar...@virtuousgeek.org> diff --git a/src/common_bridge.c b/src/common_bridge.c index f37420f..2609d7c 100644 --- a/src/common_bridge.c +++ b/src/common_bridge.c @@ -270,10 +270,6 @@ pci_device_get_bridge_buses(struct pci_device * dev, int *primary_bus, return ENODEV; } - if (!priv->bridge.pci) { - return ENODEV; - } - switch ((dev->device_class >> 8) & 0x0ff) { case 0x00: /* What to do for host bridges? I'm pretty sure this isn't right. commit 30bfd795557cada4a3c2ce36329ceb22160acff8 Author: Alan Coopersmith <alan.coopersm...@oracle.com> Date: Sun Nov 21 11:14:05 2010 -0800 Sun's copyrights belong to Oracle now Signed-off-by: Alan Coopersmith <alan.coopersm...@oracle.com> diff --git a/COPYING b/COPYING index 05c5941..2f9f9c3 100644 --- a/COPYING +++ b/COPYING @@ -1,6 +1,6 @@ (C) Copyright IBM Corporation 2006, 2007 (C) Copyright Eric Anholt 2006 -Copyright 2007, 2008, 2009 Sun Microsystems, Inc. +Copyright (c) 2007, 2008, 2009, Oracle and/or its affiliates. Copyright 2009 Red Hat, Inc. All Rights Reserved. diff --git a/src/pci_tools.h b/src/pci_tools.h index b353b31..3766890 100644 --- a/src/pci_tools.h +++ b/src/pci_tools.h @@ -1,5 +1,5 @@ /* - * Copyright © 2007 Sun Microsystems, Inc. All rights reserved. + * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/src/solx_devfs.c b/src/solx_devfs.c index 73538b2..24bb1b9 100644 --- a/src/solx_devfs.c +++ b/src/solx_devfs.c @@ -1,6 +1,6 @@ /* * (C) Copyright IBM Corporation 2006 - * Copyright 2007, 2009 Sun Microsystems, Inc. + * Copyright (c) 2007, 2009, Oracle and/or its affiliates. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a commit 10a83caa94163e7624d2bbeecaa782b7142d7afc Author: Cyril Brulebois <k...@debian.org> Date: Thu Nov 18 15:10:37 2010 +0100 Mention upstream git URL in a comment. diff --git a/debian/watch b/debian/watch index afa5008..95e7380 100644 --- a/debian/watch +++ b/debian/watch @@ -1,2 +1,3 @@ +#git=git://anongit.freedesktop.org/xorg/lib/libpciaccess version=3 http://xorg.freedesktop.org/releases/individual/lib/ libpciaccess-(.*)\.tar\.gz commit e29e477ff84ab16938e58ae2719358c14c86a500 Author: Gaetan Nadon <mems...@videotron.ca> Date: Fri Oct 15 17:34:16 2010 -0400 config: use LDADD to obtain appropriate dependencies In generated scanpci/Makefile, this line is added: scanpci_DEPENDENCIES = $(top_builddir)/src/libpciaccess.la If the content of the library changes, the tool will rebuild. When scanpci was in the same directory as the library, the .la file was used. This will also ensure the "installed" pciaccess library is not used. Signed-off-by: Gaetan Nadon <mems...@videotron.ca> diff --git a/scanpci/Makefile.am b/scanpci/Makefile.am index 6fdf86e..68d54f4 100644 --- a/scanpci/Makefile.am +++ b/scanpci/Makefile.am @@ -24,6 +24,6 @@ noinst_PROGRAMS = scanpci AM_CPPFLAGS = -I$(top_srcdir)/include -AM_LDFLAGS = -L$(top_builddir)/src -lpciaccess +LDADD = $(top_builddir)/src/libpciaccess.la scanpci_SOURCES = scanpci.c commit fd476deabb97d08086ad465c4d0e913c9437a6bb Author: Gaetan Nadon <mems...@videotron.ca> Date: Sun Sep 26 14:57:19 2010 -0400 include: add a Makefile to install and distribute header file Makefiles are simpler when they only handle what is in their directory. Reviewed-by: Rémi Cardona <r...@gentoo.org> Signed-off-by: Gaetan Nadon <mems...@videotron.ca> diff --git a/Makefile.am b/Makefile.am index ea30cd2..a285275 100644 --- a/Makefile.am +++ b/Makefile.am @@ -25,7 +25,7 @@ ACLOCAL_AMFLAGS = -I m4 # Order: scanpci depends on libpciaccess built in src -SUBDIRS = man src scanpci +SUBDIRS = include man src scanpci pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = pciaccess.pc diff --git a/configure.ac b/configure.ac index 1c2a3ca..47cd733 100644 --- a/configure.ac +++ b/configure.ac @@ -123,6 +123,7 @@ AC_SUBST(PCIACCESS_LIBS) AC_OUTPUT([Makefile + include/Makefile man/Makefile src/Makefile scanpci/Makefile diff --git a/include/Makefile.am b/include/Makefile.am new file mode 100644 index 0000000..b668192 --- /dev/null +++ b/include/Makefile.am @@ -0,0 +1 @@ +include_HEADERS = pciaccess.h diff --git a/src/Makefile.am b/src/Makefile.am index 523e4b1..7842118 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -71,8 +71,3 @@ libpciaccess_la_SOURCES = common_bridge.c \ libpciaccess_la_LIBADD = $(PCIACCESS_LIBS) libpciaccess_la_LDFLAGS = -version-number 0:10:8 -no-undefined - -libpciaccessincludedir = $(includedir) -libpciaccessinclude_HEADERS = \ - $(top_srcdir)/include/pciaccess.h - commit 2b5c81c2d8c643e58ac69d1d7f7a626fc392b1ea Author: Gaetan Nadon <mems...@videotron.ca> Date: Sun Sep 26 14:42:50 2010 -0400 config: replace INCLUDES, which is deprecated, with AM_CPPFLAGS Fixes an Automake warning. Reviewed-by: Rémi Cardona <r...@gentoo.org> Signed-off-by: Gaetan Nadon <mems...@videotron.ca> diff --git a/src/Makefile.am b/src/Makefile.am index 0d774e0..523e4b1 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -21,6 +21,7 @@ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # DEALINGS IN THE SOFTWARE. +AM_CPPFLAGS = -I$(top_srcdir)/include AM_CFLAGS = $(CWARNFLAGS) @PCIACCESS_CFLAGS@ lib_LTLIBRARIES = libpciaccess.la @@ -67,8 +68,6 @@ libpciaccess_la_SOURCES = common_bridge.c \ $(VGA_ARBITER) \ $(OS_SUPPORT) -INCLUDES = -I$(top_srcdir)/include - libpciaccess_la_LIBADD = $(PCIACCESS_LIBS) libpciaccess_la_LDFLAGS = -version-number 0:10:8 -no-undefined commit b4ee1ccfcd9e9d41033db7b6b5e0a771ae5939d2 Author: Gaetan Nadon <mems...@videotron.ca> Date: Sun Aug 22 08:10:23 2010 -0400 config: provide a makefile for scanpci man pages Reviewed-by: Rémi Cardona <r...@gentoo.org> Signed-off-by: Gaetan Nadon <mems...@videotron.ca> diff --git a/Makefile.am b/Makefile.am index 31d20a0..ea30cd2 100644 -- To UNSUBSCRIBE, email to debian-x-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/e1qxvxo-0004jl...@vasks.debian.org