svn commit: r494632 - head/textproc/scdoc

Jan Beich jbeich at FreeBSD.org
Mon Mar 4 18:58:32 UTC 2019


Author: jbeich
Date: Mon Mar  4 18:58:31 2019
New Revision: 494632
URL: https://svnweb.freebsd.org/changeset/ports/494632

Log:
  textproc/scdoc: unbreak "make test" after r494629
  
  Failed conversion of ``2017-12-09 23:18:57'' using format ``%F %T %z''
  date: illegal time format
  usage: date [-jnRu] [-d dst] [-r seconds|file] [-t west] [-v[+|-]val[ymwdHMS]]
              [-I[date | hours | minutes | seconds]]
              [-f fmt date | [[[[[cc]yy]mm]dd]HH]MM[.ss]] [+format]
  Supports $SOURCE_DATE_EPOCH             FAIL

Modified:
  head/textproc/scdoc/Makefile   (contents, props changed)

Modified: head/textproc/scdoc/Makefile
==============================================================================
--- head/textproc/scdoc/Makefile	Mon Mar  4 18:35:02 2019	(r494631)
+++ head/textproc/scdoc/Makefile	Mon Mar  4 18:58:31 2019	(r494632)
@@ -23,7 +23,8 @@ PLIST_FILES=	bin/${PORTNAME} \
 		man/man5/${PORTNAME}.5.gz
 
 post-patch:
-	@${REINPLACE_CMD} -i '' 's,--date=,-f "%F %T %z" ,' \
+	@${REINPLACE_CMD} -i '' -e 's,--date=,-f "%F %T" ,' \
+		-e '/SOURCE_DATE/s/date/TZ=UTC+5 &/' \
 		${WRKSRC}/test/preamble
 
 post-install:


More information about the svn-ports-all mailing list