fontconfig 2.31.92 tests fail if SOURCE_DATE_EPOCH is not set
fontconfig fails during building (test section) if SOURCE_DATE_EPOCH is not set. A commit was made to address this, but the commit seems not to work on my system.
The commit adds checks similar to if [ -n ${SOURCE_DATE_EPOCH:-} ]; then
. This code actually always executes if the variable is empty (for me using bash).
The solution seems easy, just add quotes around the expression, meaning: if [ -n "${SOURCE_DATE_EPOCH:-}" ]; then
$ if [ -n "${SOURCE_DATE_EPOCH:-}" ]; then echo fff; fi
$ if [ -n ${SOURCE_DATE_EPOCH:-} ]; then echo fff; fi
fff
This on Mageia with fontconfig 2.31.92. I'm a Mageia packager. Spec file can be found at: http://svnweb.mageia.org/packages/cauldron/fontconfig/