Created attachment 192821 [details] chrony-3.3.patch Update to 3.3 add NETTLE Option fix NSS option is broken %%PREFIX%% correction Standard option change from NSS to NETTLE
NSS broken report bug #223840
+IPV6_CONFIGURE_ON= --disable-readline Why does enabling IPV6 require one to disable readline support? This makes little immediate sense. +do-build: +.for file in ${PORTEXAMPLES} + @${REINPLACE_CMD} ${_SUB_LIST_TEMP} ${WRKSRC}/examples/${file} +.endfor This seems wrong: a) do-build is being overwritten, which means that if chrony is built at all it would happen in the wrong phase (probably stage) by accident. b) _SUB_LIST_TEMP is a private variable. I assume this is about the aforementioned %%PREFIX%% fix. If so just make an explicit substitution instead. Since this port uses PORTDOCS and PORTEXAMPLES adding explicit DOCS and EXAMPLES options would be a good idea too. +.if ${ARCH} == armv6 || ${ARCH} == armv7 +EXTRA_PATCHES= ${FILESDIR}/extra-util.c +.endif Why is this only needed on armv{6,7} now? It was applied on all archs before. Leave a comment about this in the patch file header.
Created attachment 193198 [details] chrony-3.3.patch +IPV6_CONFIGURE_ON= --disable-readline +.if ${ARCH} == armv6 || ${ARCH} == armv7 +EXTRA_PATCHES= ${FILESDIR}/extra-util.c +.endif I deleted this because it was a problem of my individual environment. + @${REINPLACE_CMD} ${_SUB_LIST_TEMP} ${WRKSRC}/examples/${file} If you do not write this, example2 and example3 do not overwrite. It is probably because it is not rewritten to the setting value of PLIST_SUB. I tried putting DOCS and EXAMPLES in options.
(In reply to takefu from comment #3) Looks better, but you're still overwriting the default do-build target and chrony is still being build in the wrong phase. Patching needs to happen in the patch phase e.g. in post-patch. I'll fix it and commit this tomorrow with maintainer timeout.
Thanks Tobias! I trust that your final patch can be committed straight away.
A commit references this bug: Author: tobik Date: Wed May 9 03:01:58 UTC 2018 New revision: 469426 URL: https://svnweb.freebsd.org/changeset/ports/469426 Log: net/chrony: Update to 3.3 - Add explicit DOCS, EXAMPLES options - Replace %%PREFIX%% in sample files - Make sure chronyc is really linked with libedit from ports - Add support for security/nettle and use it by default since chrony crashes on startup when built with NSS. [1] PR: 227779, 223840 [1] Submitted by: takefu@airport.fm Approved by: maintainer Changes: head/net/chrony/Makefile head/net/chrony/distinfo
(In reply to Yonas Yanfa from comment #5) Committed. Thanks!