svn commit: r502977 - head/lang/erlang

Jimmy Olgeni olgeni at FreeBSD.org
Wed May 29 17:29:04 UTC 2019


Author: olgeni
Date: Wed May 29 17:29:03 2019
New Revision: 502977
URL: https://svnweb.freebsd.org/changeset/ports/502977

Log:
  lang/erlang: check if EI_VSN, SNMP_VSN, and TOOLS_VSN are valid.
  
  Even when they were not valid the build would still succeed, but
  output incorrect messages or create non-working symlinks.

Modified:
  head/lang/erlang/Makefile

Modified: head/lang/erlang/Makefile
==============================================================================
--- head/lang/erlang/Makefile	Wed May 29 17:27:19 2019	(r502976)
+++ head/lang/erlang/Makefile	Wed May 29 17:29:03 2019	(r502977)
@@ -115,6 +115,15 @@ MAKE_ARGS+=	ARCH=arm
 .endif
 
 pre-configure:
+	@if [ ! $$(${CAT} ${WRKSRC}/lib/erl_interface/vsn.mk | ${GREP} "EI_VSN *=" | ${CUT} -w -f3) = ${EI_VSN} ]; then \
+		${ECHO_MSG} "===>  EI_VSN (${EI_VSN}) in Makefile does not match value in lib/erl_interface/vsn.mk"; exit 1; \
+	fi
+	@if [ ! $$(${CAT} ${WRKSRC}/lib/tools/vsn.mk | ${GREP} "TOOLS_VSN *=" | ${CUT} -w -f3) = ${TOOLS_VSN} ]; then \
+		${ECHO_MSG} "===>  TOOLS_VSN (${TOOLS_VSN}) in Makefile does not match value in lib/tools/vsn.mk"; exit 1; \
+	fi
+	@if [ ! $$(${CAT} ${WRKSRC}/lib/snmp/vsn.mk | ${GREP} -E "SNMP_VSN *=" | ${CUT} -w -f3) = ${SNMP_VSN} ]; then \
+		${ECHO_MSG} "===>  SNMP_VSN (${SNMP_VSN}) in Makefile does not match value in lib/snmp/vsn.mk"; exit 1; \
+	fi
 	@cd ${WRKSRC} && ./otp_build autoconf
 
 pre-configure-WX-off:


More information about the svn-ports-head mailing list