From owner-svn-ports-all@freebsd.org Sun Jun 30 17:31:50 2019 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BD96815DAFED; Sun, 30 Jun 2019 17:31:50 +0000 (UTC) (envelope-from zeising@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 62F8B8E982; Sun, 30 Jun 2019 17:31:50 +0000 (UTC) (envelope-from zeising@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3E40BBEB; Sun, 30 Jun 2019 17:31:50 +0000 (UTC) (envelope-from zeising@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x5UHVoZK021481; Sun, 30 Jun 2019 17:31:50 GMT (envelope-from zeising@FreeBSD.org) Received: (from zeising@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x5UHVnrQ021474; Sun, 30 Jun 2019 17:31:49 GMT (envelope-from zeising@FreeBSD.org) Message-Id: <201906301731.x5UHVnrQ021474@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: zeising set sender to zeising@FreeBSD.org using -f From: Niclas Zeising Date: Sun, 30 Jun 2019 17:31:49 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r505441 - in head/graphics/libdrm: . files X-SVN-Group: ports-head X-SVN-Commit-Author: zeising X-SVN-Commit-Paths: in head/graphics/libdrm: . files X-SVN-Commit-Revision: 505441 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 62F8B8E982 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_SHORT(-0.97)[-0.970,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Jun 2019 17:31:51 -0000 Author: zeising Date: Sun Jun 30 17:31:49 2019 New Revision: 505441 URL: https://svnweb.freebsd.org/changeset/ports/505441 Log: graphics/libdrm: Update to 2.4.98 Update graphics/libdrm to 2.4.98 [1] Change to use the meson build system instead of autotools. [2] PR: 235430 [1], 237411 [2] Submitted by: Greg V [1], jbiech [2] Added: head/graphics/libdrm/files/patch-meson.build (contents, props changed) Modified: head/graphics/libdrm/Makefile head/graphics/libdrm/distinfo head/graphics/libdrm/files/patch-xf86drm.c Modified: head/graphics/libdrm/Makefile ============================================================================== --- head/graphics/libdrm/Makefile Sun Jun 30 17:04:04 2019 (r505440) +++ head/graphics/libdrm/Makefile Sun Jun 30 17:31:49 2019 (r505441) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= libdrm -PORTVERSION= 2.4.96 +PORTVERSION= 2.4.98 PORTEPOCH= 1 CATEGORIES= graphics x11 MASTER_SITES= http://dri.freedesktop.org/libdrm/ @@ -15,10 +15,8 @@ LICENSE= MIT BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/pthread-stubs.pc:devel/libpthread-stubs LIB_DEPENDS= libpciaccess.so:devel/libpciaccess -USES= libtool pkgconfig tar:bzip2 -GNU_CONFIGURE= yes +USES= gnome meson pkgconfig tar:bzip2 USE_LDCONFIG= yes -INSTALL_TARGET= install-strip OPTIONS_DEFINE= MANPAGES TESTS OPTIONS_SUB= yes @@ -29,14 +27,14 @@ TESTS_DESC= Install test programs (which are always bu OPTIONS_DEFAULT+= MANPAGES .endif -MANPAGES_CONFIGURE_ENABLE= manpages MANPAGES_BUILD_DEPENDS= ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:textproc/docbook-xsl MANPAGES_USE= GNOME=libxslt:build +MANPAGES_MESON_TRUE= man-pages -TESTS_CONFIGURE_ENABLE= install-test-programs +TESTS_MESON_TRUE= install-test-programs # avoid circular dependency in case cairo supports OpenGL (cairo->mesa-libs->libdrm->cairo) -CONFIGURE_ARGS+= --disable-cairo-tests +CONFIGURE_ARGS+= -Dcairo-tests=false .include @@ -67,10 +65,5 @@ PLIST_SUB+= RADEON_DRIVERS="@comment " .if ${OPSYS} == FreeBSD && !defined(LIBDRM_SKIP_RETURN_PATCH) EXTRA_PATCHES+= ${FILESDIR}/extra-xf86drm.c .endif - -pre-patch: - @${REINPLACE_CMD} 's|{libdir}/pkgconfig|{prefix}/libdata/pkgconfig|g; \ - s,i?86|x86_64),i?86|amd64|x86_64),g' \ - ${WRKSRC}/configure .include Modified: head/graphics/libdrm/distinfo ============================================================================== --- head/graphics/libdrm/distinfo Sun Jun 30 17:04:04 2019 (r505440) +++ head/graphics/libdrm/distinfo Sun Jun 30 17:31:49 2019 (r505441) @@ -1,3 +1,3 @@ -TIMESTAMP = 1539797646 -SHA256 (libdrm-2.4.96.tar.bz2) = 0d561acf7bb4cc59dc82415100e6c1a44860e8c380e00f9592923e3cd08db393 -SIZE (libdrm-2.4.96.tar.bz2) = 829518 +TIMESTAMP = 1559430556 +SHA256 (libdrm-2.4.98.tar.bz2) = 8be0edccaca3abde8b6bb1431b46354c7fab46e9b91cc6946ba65b51f56f1894 +SIZE (libdrm-2.4.98.tar.bz2) = 833295 Added: head/graphics/libdrm/files/patch-meson.build ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/libdrm/files/patch-meson.build Sun Jun 30 17:31:49 2019 (r505441) @@ -0,0 +1,23 @@ +- sys/sysctl.h isn't self-sufficient +- tests don't use Bash features + +--- meson.build.orig 2019-04-19 15:52:29 UTC ++++ meson.build +@@ -181,7 +181,7 @@ endif + dep_m = cc.find_library('m', required : false) + foreach header : ['sys/sysctl.h', 'sys/select.h', 'alloca.h'] + config.set('HAVE_' + header.underscorify().to_upper(), +- cc.compiles('#include <@0@>'.format(header), name : '@0@ works'.format(header))) ++ cc.compiles('#include \n#include <@0@>'.format(header), name : '@0@ works'.format(header))) + endforeach + if cc.has_header_symbol('sys/sysmacros.h', 'major') + config.set10('MAJOR_IN_SYSMACROS', true) +@@ -249,7 +249,7 @@ endif + with_man_pages = with_man_pages != 'false' and prog_xslt.found() and prog_sed.found() + + # Used for tets +-prog_bash = find_program('bash') ++prog_bash = find_program('sh') + + config.set10('HAVE_VISIBILITY', + cc.compiles('''int foo_hidden(void) __attribute__((visibility(("hidden"))));''', Modified: head/graphics/libdrm/files/patch-xf86drm.c ============================================================================== --- head/graphics/libdrm/files/patch-xf86drm.c Sun Jun 30 17:04:04 2019 (r505440) +++ head/graphics/libdrm/files/patch-xf86drm.c Sun Jun 30 17:31:49 2019 (r505441) @@ -10,10 +10,10 @@ #include #define stat_t struct stat #include -@@ -59,6 +62,10 @@ - #endif - #include +@@ -61,6 +64,10 @@ + #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) + +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) +#include +#endif @@ -41,16 +41,7 @@ #endif #ifdef __NetBSD__ -@@ -177,7 +174,7 @@ drm_public void drmFree(void *pt) - } - - /** -- * Call ioctl, restarting if it is interupted -+ * Call ioctl, restarting if it is interrupted - */ - drm_public int - drmIoctl(int fd, unsigned long request, void *arg) -@@ -220,6 +217,89 @@ drm_public drmHashEntry *drmGetEntry(int fd) +@@ -222,6 +219,89 @@ drm_public drmHashEntry *drmGetEntry(int fd) return entry; } @@ -140,16 +131,7 @@ /** * Compare two busid strings * -@@ -287,7 +367,7 @@ static int drmMatchBusID(const char *id1, const char * - * - * \internal - * Checks for failure. If failure was caused by signal call chown again. -- * If any other failure happened then it will output error mesage using -+ * If any other failure happened then it will output error message using - * drmMsg() call. - */ - #if !UDEV -@@ -324,8 +404,8 @@ static int chown_check_return(const char *path, uid_t +@@ -326,8 +406,8 @@ static int chown_check_return(const char *path, uid_t static int drmOpenDevice(dev_t dev, int minor, int type) { stat_t st; @@ -415,11 +397,11 @@ base = drmGetMinorBase(type); if (base < 0) return NULL; -@@ -3011,7 +3048,7 @@ static int drmParseSubsystemType(int maj, int min) - return DRM_BUS_VIRTIO; +@@ -3032,7 +3069,7 @@ static int drmParseSubsystemType(int maj, int min) + } return -EINVAL; --#elif defined(__OpenBSD__) +-#elif defined(__OpenBSD__) || defined(__DragonFly__) +#elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) return DRM_BUS_PCI; #else