May be an error in imagebuilder for19.07.9

I get the following error when I try to compile 19.07.9 for a linksys WRT1900ACv2 using the Linux image builder.

The web UI does successfully compile image files.

openwrt-imagebuilder-19.07.9-mvebu-cortexa9.Linux-x86_64$ make image PROFILE="linksys_wrt1900acv2"
Building images for mvebu - Linksys WRT1900ACv2 (Cobra)
.....................................................................
Traceback (most recent call last):
  File "/home/nls/Desktop/openwrt-imagebuilder-19.07.9-mvebu-cortexa9.Linux-x86_64/scripts/json_add_image_info.py", line 34, in <module>
    "source_date_epoch": int(getenv("SOURCE_DATE_EPOCH")),
ValueError: invalid literal for int() with base 10: ''
make[3]: *** [Makefile:117: /home/nls/Desktop/openwrt-imagebuilder-19.07.9-mvebu-cortexa9.Linux-x86_64/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/json_info_files/openwrt-19.07.9-mvebu-cortexa9-linksys_wrt1900acv2-squashfs-sysupgrade.bin.json] Error 1
make[2]: *** [Makefile:172: build_image] Error 2
make[1]: *** [Makefile:120: _call_image] Error 2
make: *** [Makefile:208: image] Error 2
1 Like

Please read the Regression section in the release notes:
OpenWrt 19.07.9 ninth service release

Regressions

  • The ImageBuilder fails to find a the SOURCE_DATE_EPOCH variable and therefore the profiles.json creation is broken.
    • To fix this issue export the missing environmental variable before using the ImageBuilder: export SOURCE_DATE_EPOCH=1
3 Likes

I did so yesterday

Thanks! That made it go.

My bad ..... not used to needing that extra.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.