pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/50106: misc/pciids update and use by x11/libpciaccess



>Number:         50106
>Category:       pkg
>Synopsis:       misc/pciids update and use by x11/libpciaccess
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 31 04:55:00 +0000 2015
>Originator:     David Shao
>Release:        pkgsrc current
>Organization:
>Environment:
DragonFly  4.3-DEVELOPMENT DragonFly v4.2.2.180.gd30865-DEVELOPMENT #1: Thu Jul 30 17:24:45 PDT 2015     xxxxx@:/usr/obj/usr/src/sys/X86_64_GENERIC  x86_64

>Description:
misc/pciids does not seem to have been updated since 2009.  Looking at the DragonFly dports / FreeBSD ports version of libpciaccess, theirs at devel/libpciaccess, there is a CONFIGURE_ARGS to allow to hard-code into libpciaccess the path where the pci.ids file can be found, presumably at /usr/pkg/share/pciids/pci.ids.  There is also a new site where the updated pci.ids can be found, not at Sourceforge, the new site being in the Czech Republic since the maintainer is currently an assistant professor there.

I have tested that for misc/pciids at least /usr/pkg/share/pciids is created and the file pci.ids is installed there.  I have also verified that during the build of sysutils/libpciaccess PCIIDS_PATH is set to /usr/pkg/share/pciids.  As for whether anything actually happens in the running of libdrm, modular-xorg-server, or MesaLib with the new libpciaccess, I have no idea.

pciids with these changes would no longer be frozen at a date in 2009.  The file's date might change, but how does one know whether the contents change?  Apparently the dports / ports Makefile for libpciaccess has some logic to test whether contents changed, but I did not try to translate that.  It is not like there is some pressing need to keep up with the very latest pci.ids, it is just that it might be nice to have the option to update it every year or so and not just leave it at 2009's.
>How-To-Repeat:

>Fix:
For misc/pciids:

Common subdirectories: pciids.orig/CVS and pciids/CVS
diff -bu pciids.orig/Makefile pciids/Makefile
--- pciids.orig/Makefile	2015-07-30 19:22:56.421791000 -0700
+++ pciids/Makefile	2015-07-30 20:33:31.698610000 -0700
@@ -1,12 +1,13 @@
 # $NetBSD: Makefile,v 1.9 2012/10/08 09:57:34 asau Exp $
 #
 
-DISTNAME=	pciids-20091229
+DISTNAME=	pciids-20150731
 CATEGORIES=	misc
-MASTER_SITES=	http://people.freebsd.org/~ahze/distfiles/
-EXTRACT_SUFX=	.tar.bz2
+DISTFILES=	pci.ids.bz2
+MASTER_SITES=	http://pci-ids.ucw.cz/v2.2/
+EXTRACT_SUFX=	.bz2
 
-MAINTAINER=	mark%coris.org.uk@localhost
+MAINTAINER=	mj%ucw.cz@localhost
 HOMEPAGE=	http://pciids.sourceforge.net/
 COMMENT=	Repository of PCI IDs (pci.ids database)
 LICENSE=	modified-bsd OR gnu-gpl-v2
@@ -15,6 +16,6 @@
 
 do-install:
 	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/pciids
-	${INSTALL_DATA} ${WRKSRC}/pci.ids ${DESTDIR}${PREFIX}/share/pciids
+	${INSTALL_DATA} ${WRKDIR}/pci.ids ${DESTDIR}${PREFIX}/share/pciids
 
 .include "../../mk/bsd.pkg.mk"
diff -bu pciids.orig/buildlink3.mk pciids/buildlink3.mk
--- pciids.orig/buildlink3.mk	2015-07-30 19:22:56.421791000 -0700
+++ pciids/buildlink3.mk	2015-07-30 20:34:00.818314000 -0700
@@ -5,7 +5,7 @@
 .if !defined(PCIIDS_BUILDLINK3_MK)
 PCIIDS_BUILDLINK3_MK:=
 
-BUILDLINK_API_DEPENDS.pciids+=	pciids>=20061026
+BUILDLINK_API_DEPENDS.pciids+=	pciids>=20150731
 BUILDLINK_PKGSRCDIR.pciids?=	../../misc/pciids
 .endif # PCIIDS_BUILDLINK3_MK
 
diff -bu pciids.orig/distinfo pciids/distinfo
--- pciids.orig/distinfo	2015-07-30 19:22:56.421791000 -0700
+++ pciids/distinfo	2015-07-30 19:41:52.310763000 -0700
@@ -1,5 +1,5 @@
 $NetBSD: distinfo,v 1.6 2010/02/05 12:59:46 wiz Exp $
 
-SHA1 (pciids-20091229.tar.bz2) = 6de623563a5e13f0f191b404dcd736cf56776181
-RMD160 (pciids-20091229.tar.bz2) = 3c7256739c4bdd4e5d5312764b21071ca8ae17ba
-Size (pciids-20091229.tar.bz2) = 156325 bytes
+SHA1 (pci.ids.bz2) = 203733da8cfb79d8225a1618f44697335e7e6026
+RMD160 (pci.ids.bz2) = c90168d403f93f8b48d6348daeb92c4aead94994
+Size (pci.ids.bz2) = 217786 bytes

For sysutils/libpciaccess:

diff -bu libpciaccess.orig/Makefile libpciaccess/Makefile
--- libpciaccess.orig/Makefile	2015-07-06 13:29:45.000000000 -0700
+++ libpciaccess/Makefile	2015-07-30 19:56:23.792953000 -0700
@@ -21,10 +21,12 @@
 
 GNU_CONFIGURE=		yes
 CONFIGURE_ARGS+=	--with-zlib
+CONFIGURE_ARGS+=	--with-pciids-path=${PREFIX}/share/pciids
 USE_LIBTOOL=		yes
 USE_TOOLS+=		pkg-config
 
 PKGCONFIG_OVERRIDE+=	pciaccess.pc.in
 
+.include "../../misc/pciids/buildlink3.mk"
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index