Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 May 2013 22:06:00 GMT
From:      svn-freebsd-gecko@chruetertee.ch
To:        freebsd-gecko@freebsd.org
Subject:   [SVN-Commit] r1261 - trunk/www/linux-firefox
Message-ID:  <201305272206.r4RM6040077833@trillian.chruetertee.ch>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Mon May 27 22:06:00 2013
New Revision: 1261

Log:
abort linux-firefox build to prevent broken updates

Modified:
   trunk/www/linux-firefox/Makefile

Modified: trunk/www/linux-firefox/Makefile
==============================================================================
--- trunk/www/linux-firefox/Makefile	Mon May 27 17:07:11 2013	(r1260)
+++ trunk/www/linux-firefox/Makefile	Mon May 27 22:06:00 2013	(r1261)
@@ -10,7 +10,6 @@
 MAINTAINER=	gecko@FreeBSD.org
 COMMENT=	Web browser based on the browser portion of Mozilla
 
-# gecko version must be exactly same
 EXTRACT_DEPENDS=${NONEXISTENT}:${PORTSDIR}/www/linux-seamonkey:extract
 
 CONFLICTS=	linux-firefox-24.* linux-firefox-1[07].*
@@ -21,10 +20,23 @@
 
 .include "${.CURDIR}/../linux-seamonkey/Makefile.common"
 
+# XXX remove after linux_base-c6 and linux-c6-gtk2 become default
+# using seamonkey gre for linux_base-f10 compat
 post-extract:	replace-gre
-replace-gre:
-	# using seamonkey gre for linux_base-f10 compat
+replace-gre:	version-compat-check
+	@${ECHO_MSG} "===>   GRE versions are compatible, replacing with" \
+		"$$(${MAKE} -V PKGNAME -C ${PORTSDIR}/www/linux-seamonkey)"
 	cd $$(${MAKE} -V WRKSRC -C ${PORTSDIR}/www/linux-seamonkey); \
 		${CP} lib* dependentlibs.list ${WRKSRC}
 
+version-compat-check:
+	@${ECHO_MSG} "===>  Checking GRE version is compatible with" \
+		"$$(${MAKE} -V PKGNAME -C ${PORTSDIR}/www/linux-seamonkey)"
+	@ff_gre_version=$$(${AWK} -F= '/Milestone/ { print $$2 }' ${WRKSRC}/platform.ini); \
+	sm_gre_version=$$(${AWK} -F= '/Milestone/ { print $$2 }' $$(${MAKE} -V WRKSRC -C ${PORTSDIR}/www/linux-seamonkey)/platform.ini); \
+	if [ $$ff_gre_version != $$sm_gre_version ]; then \
+	    ${ECHO_MSG} "===>   GRE versions aren't compatible, aborting"; \
+	    exit 1; \
+	fi
+
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305272206.r4RM6040077833>