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=    [email protected]
 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>
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-gecko
To unsubscribe, send any mail to "[email protected]"

Reply via email to