Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 1 | Having CLEAN_DATE come from the current date doesn't allow for build |
| 2 | reproducibility. Add the option of using SOURCE_DATE_EPOCH if set |
| 3 | which for OE, it will be. |
| 4 | |
| 5 | Upstream-Status: Pending |
| 6 | RP 2021/2/2 |
| 7 | |
| 8 | Index: opkg-0.4.4/configure.ac |
| 9 | =================================================================== |
| 10 | --- opkg-0.4.4.orig/configure.ac |
| 11 | +++ opkg-0.4.4/configure.ac |
| 12 | @@ -281,7 +281,11 @@ AC_FUNC_UTIME_NULL |
| 13 | AC_FUNC_VPRINTF |
| 14 | AC_CHECK_FUNCS([memmove memset mkdir regcomp strchr strcspn strdup strerror strndup strrchr strstr strtol strtoul sysinfo utime]) |
| 15 | |
| 16 | -CLEAN_DATE=`date +"%B %Y" | tr -d '\n'` |
| 17 | +if ! test -z "$SOURCE_DATE_EPOCH" ; then |
| 18 | + CLEAN_DATE=`LC_ALL=C date -d @$SOURCE_DATE_EPOCH +"%B %Y" | tr -d '\n'` |
| 19 | +else |
| 20 | + CLEAN_DATE=`date +"%B %Y" | tr -d '\n'` |
| 21 | +fi |
| 22 | |
| 23 | AC_SUBST([CLEAN_DATE]) |
| 24 | |