From owner-svn-ports-head@freebsd.org Sun Jul 30 14:34:29 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 104EFDBCBC9; Sun, 30 Jul 2017 14:34:29 +0000 (UTC) (envelope-from kwm@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 mx1.freebsd.org (Postfix) with ESMTPS id D36A873AA1; Sun, 30 Jul 2017 14:34:28 +0000 (UTC) (envelope-from kwm@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v6UEYSih087827; Sun, 30 Jul 2017 14:34:28 GMT (envelope-from kwm@FreeBSD.org) Received: (from kwm@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v6UEYRr3087822; Sun, 30 Jul 2017 14:34:27 GMT (envelope-from kwm@FreeBSD.org) Message-Id: <201707301434.v6UEYRr3087822@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kwm set sender to kwm@FreeBSD.org using -f From: Koop Mast Date: Sun, 30 Jul 2017 14:34:27 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r446936 - in head: lang/p5-JavaScript-SpiderMonkey lang/p5-JavaScript-SpiderMonkey/files lang/spidermonkey17 net/mediatomb www/elinks X-SVN-Group: ports-head X-SVN-Commit-Author: kwm X-SVN-Commit-Paths: in head: lang/p5-JavaScript-SpiderMonkey lang/p5-JavaScript-SpiderMonkey/files lang/spidermonkey17 net/mediatomb www/elinks X-SVN-Commit-Revision: 446936 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Jul 2017 14:34:29 -0000 Author: kwm Date: Sun Jul 30 14:34:27 2017 New Revision: 446936 URL: https://svnweb.freebsd.org/changeset/ports/446936 Log: Move spidermonkey17's headers out of LOCALBASE and in there own subdir. [1] This fixes build issues with other spidermonkey using ports when SM 1.7 is installed, due to SM 1.7's headers being found first. [2] Update SM 1.7 users to take this change into account. PR: 219761 [1], 214724 [2], 202246 [2] Approved by: maintainer timeout (nearly 2 months) Modified: head/lang/p5-JavaScript-SpiderMonkey/Makefile head/lang/p5-JavaScript-SpiderMonkey/files/patch-Makefile.PL head/lang/spidermonkey17/Makefile head/net/mediatomb/Makefile head/www/elinks/Makefile Modified: head/lang/p5-JavaScript-SpiderMonkey/Makefile ============================================================================== --- head/lang/p5-JavaScript-SpiderMonkey/Makefile Sun Jul 30 14:18:29 2017 (r446935) +++ head/lang/p5-JavaScript-SpiderMonkey/Makefile Sun Jul 30 14:34:27 2017 (r446936) @@ -19,6 +19,7 @@ TEST_DEPENDS= p5-Log-Log4perl>=0:devel/p5-Log-Log4perl USE_PERL5= configure USES= perl5 +CFLAGS+= -I${LOCALBASE}/include/js-1.7/ post-patch: @${REINPLACE_CMD} -e 's|libjs.a|libjs.so|' ${WRKSRC}/Makefile.PL Modified: head/lang/p5-JavaScript-SpiderMonkey/files/patch-Makefile.PL ============================================================================== --- head/lang/p5-JavaScript-SpiderMonkey/files/patch-Makefile.PL Sun Jul 30 14:18:29 2017 (r446935) +++ head/lang/p5-JavaScript-SpiderMonkey/files/patch-Makefile.PL Sun Jul 30 14:34:27 2017 (r446936) @@ -1,14 +1,17 @@ ---- Makefile.PL.orig 2010-11-17 13:51:38.000000000 +0100 -+++ Makefile.PL 2010-11-17 13:59:54.000000000 +0100 -@@ -71,11 +71,6 @@ - $include_dir =~ s/$c_header$//; - push @JS_INCL_DIRS, $include_dir; - } -- foreach my $headerfile(glob "$include_path/*/$c_header") { -- my $include_dir = $headerfile; +--- Makefile.PL.orig 2011-10-23 12:27:21.000000000 +0200 ++++ Makefile.PL 2017-06-03 21:50:44.801687000 +0200 +@@ -68,13 +68,8 @@ + next if ! -f $libfile; + my $include_path = $possible_install_paths{$install_path}; + foreach my $c_header(@c_header_files) { +- if (-f "$include_path/$c_header") { ++ if (-f "$include_path/js-1.7/$c_header") { + my $include_dir = "$include_path/$c_header"; - $include_dir =~ s/$c_header$//; - push @JS_INCL_DIRS, $include_dir; - } - } - if (scalar(@JS_INCL_DIRS) == scalar(@c_header_files)) { - $JS_LIB_DIR = $libfile; +- foreach my $headerfile(glob "$include_path/*/$c_header") { +- my $include_dir = $headerfile; + $include_dir =~ s/$c_header$//; + push @JS_INCL_DIRS, $include_dir; + } Modified: head/lang/spidermonkey17/Makefile ============================================================================== --- head/lang/spidermonkey17/Makefile Sun Jul 30 14:18:29 2017 (r446935) +++ head/lang/spidermonkey17/Makefile Sun Jul 30 14:34:27 2017 (r446936) @@ -3,7 +3,7 @@ PORTNAME= spidermonkey17 DISTVERSION= 1.7.0 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= lang MASTER_SITES= MOZILLA/js DISTNAME= js-${DISTVERSION} @@ -40,7 +40,7 @@ JSH= jsapi.h jsarena.h jsarray.h jsatom.h jsautocfg.h jsstr.h jstypes.h jsxdrapi.h jsxml.h \ js.msg jsproto.tbl -PLIST_FILES= bin/js lib/libjs.so lib/libjs.so.1 ${JSH:S,^,include/,} +PLIST_FILES= bin/js lib/libjs.so lib/libjs.so.1 ${JSH:S,^,include/js-1.7/,} WRKSRC= ${WRKDIR}/${SRC_DIR} EXTRACT_AFTER_ARGS= --exclude js/jsd @@ -63,6 +63,8 @@ do-install: ${STAGEDIR}${PREFIX}/lib ${LN} -sf libjs.so ${STAGEDIR}${PREFIX}/lib/libjs.so.1 ${CP} ${WRKSRC}/${OPSYS}`${UNAME} -r`_DBG.OBJ/jsautocfg.h ${WRKSRC} - @${INSTALL_DATA} ${JSH:S,^,${WRKSRC}/,} ${STAGEDIR}${PREFIX}/include/ + @${MKDIR} ${STAGEDIR}${PREFIX}/include/js-1.7 + @${INSTALL_DATA} ${JSH:S,^,${WRKSRC}/,} \ + ${STAGEDIR}${PREFIX}/include/js-1.7/ .include Modified: head/net/mediatomb/Makefile ============================================================================== --- head/net/mediatomb/Makefile Sun Jul 30 14:18:29 2017 (r446935) +++ head/net/mediatomb/Makefile Sun Jul 30 14:34:27 2017 (r446936) @@ -66,7 +66,7 @@ MYSQL_CONFIGURE_ENABLE= mysql MYSQL_CONFIGURE_ON= --with-mysql-cfg="${LOCALBASE}/bin/mysql_config" JS_CONFIGURE_ENABLE= libjs -JS_CONFIGURE_ON= --with-js-h="${LOCALBASE}/include" \ +JS_CONFIGURE_ON= --with-js-h="${LOCALBASE}/include/js-1.7" \ --with-js-libs="${LOCALBASE}/lib" JS_LIB_DEPENDS= libjs.so:lang/spidermonkey17 Modified: head/www/elinks/Makefile ============================================================================== --- head/www/elinks/Makefile Sun Jul 30 14:18:29 2017 (r446935) +++ head/www/elinks/Makefile Sun Jul 30 14:34:27 2017 (r446936) @@ -94,7 +94,8 @@ XBELNARKS_CONFIGURE_OFF=--disable-xbel SPIDERMONKEY_BUILD_DEPENDS= ${LOCALBASE}/lib/libjs.so:lang/spidermonkey17 SPIDERMONKEY_RUN_DEPENDS= js:lang/spidermonkey17 SPIDERMONKEY_LIB_DEPENDS= libnspr4.so:devel/nspr -SPIDERMONKEY_CFLAGS= -I${LOCALBASE}/include/nspr +SPIDERMONKEY_CFLAGS= -I${LOCALBASE}/include/nspr \ + -I${LOCALBASE}/include/js-1.7 SPIDERMONKEY_LDFLAGS= -lnspr4 -pthread -lpthread -lm SPIDERMONKEY_CONFIGURE_ON= --enable-sm-scripting --with-spidermonkey SPIDERMONKEY_CONFIGURE_OFF= --disable-sm-scripting --without-spidermonkey