IMX6 uboot package error

I am trying to compile the Colibri IMX6 Yocto Linux project from morty branch upstream but having trouble with the u-boot-toradex 2016.11. I am trying to build with rpm package. The error message is:

ERROR: u-boot-toradex-2016.11-2.7.3-gitrf0e4149 do_package_write_rpm: Function failed: BUILDSPEC (log file is located at /home/yangjiel/morty-test/build/tmp/work/colibri_imx6-poky-linux-gnueabi/u-boot-toradex/2016.11-2.7.3-gitrf0e4149/temp/log.do_package_write_rpm.21361)
ERROR: Logfile of failure stored in: /home/yangjiel/morty-test/build/tmp/work/colibri_imx6-poky-linux-gnueabi/u-boot-toradex/2016.11-2.7.3-gitrf0e4149/temp/log.do_package_write_rpm.21361
Log data follows:
| DEBUG: Executing python function sstate_task_prefunc
| DEBUG: Python function sstate_task_prefunc finished
| DEBUG: Executing python function do_package_write_rpm
| DEBUG: Executing python function read_subpackage_metadata
| DEBUG: Python function read_subpackage_metadata finished
| DEBUG: Executing python function do_package_rpm
| DEBUG: Executing python function write_specfile
| NOTE: Creating EMPTY RPM Package for u-boot-toradex-dbg
| NOTE: Not creating empty RPM package for u-boot-toradex-staticdev
| NOTE: Creating EMPTY RPM Package for u-boot-toradex-dev
| NOTE: Not creating empty RPM package for u-boot-toradex-doc
| NOTE: Not creating empty RPM package for u-boot-toradex-locale
| NOTE: Creating RPM package for u-boot-toradex
| NOTE: Creating RPM package for u-boot-toradex
| DEBUG: Python function write_specfile finished
| DEBUG: PKGWRITEDIR: /home/yangjiel/morty-test/build/tmp/work/colibri_imx6-poky-linux-gnueabi/u-boot-toradex/2016.11-2.7.3-gitrf0e4149/deploy-rpms/colibri_imx6
| DEBUG: Executing shell function BUILDSPEC
| error: line 4: invalid tag value("^[A-Za-z0-9+._]+$") Release: Release: 2.7.3-gitrf0e4149.1
| error: Package has no %description: u-boot-toradex-2016.11.colibri_imx6
| Building target platforms: colibri_imx6-poky-linux-gnueabi
| WARNING: /home/yangjiel/morty-test/build/tmp/work/colibri_imx6-poky-linux-gnueabi/u-boot-toradex/2016.11-2.7.3-gitrf0e4149/temp/run.BUILDSPEC.21361:1 exit 1 from 'rpmbuild --nodeps --short-circuit --target colibri_imx6-poky-linux-gnueabi --buildroot /home/yangjiel/morty-test/build/tmp/work/colibri_imx6-poky-linux-gnueabi/u-boot-toradex/2016.11-2.7.3-gitrf0e4149/package --define '_topdir /home/yangjiel/morty-test/build/tmp/work/colibri_imx6-poky-linux-gnueabi/u-boot-toradex/2016.11-2.7.3-gitrf0e4149' --define '_rpmdir /home/yangjiel/morty-test/build/tmp/work/colibri_imx6-poky-linux-gnueabi/u-boot-toradex/2016.11-2.7.3-gitrf0e4149/deploy-rpms/colibri_imx6' --define '_builddir /home/yangjiel/morty-test/build/tmp/work/colibri_imx6-poky-linux-gnueabi/u-boot-toradex/2016.11-2.7.3-gitrf0e4149/git' --define '_build_name_fmt %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm' --define '_use_internal_dependency_generator 0' --define '__find_requires %{nil}' --define '__find_provides %{nil}' --define '_unpackaged_files_terminate_build 0' --define 'debug_package %{nil}' --define '_rpmfc_magic_path /home/yangjiel/morty-test/build/tmp/sysroots/x86_64-linux/usr/share/misc/magic.mgc' --define '_tmppath /home/yangjiel/morty-test/build/tmp/work/colibri_imx6-poky-linux-gnueabi/u-boot-toradex/2016.11-2.7.3-gitrf0e4149' -bb /home/yangjiel/morty-test/build/tmp/work/colibri_imx6-poky-linux-gnueabi/u-boot-toradex/2016.11-2.7.3-gitrf0e4149/u-boot-toradex.spec'
| DEBUG: Python function do_package_rpm finished
| DEBUG: Python function do_package_write_rpm finished
| ERROR: Function failed: BUILDSPEC (log file is located at /home/yangjiel/morty-test/build/tmp/work/colibri_imx6-poky-linux-gnueabi/u-boot-toradex/2016.11-2.7.3-gitrf0e4149/temp/log.do_package_write_rpm.21361)
ERROR: Task (/home/yangjiel/morty-test/poky/meta-toradex-nxp/recipes-bsp/u-boot/u-boot-toradex_2016.11.bb:do_package_write_rpm) failed with exit code '1'
NOTE: Tasks Summary: Attempted 400 tasks of which 399 didn't need to be rerun and 1 failed.

It is fine while building as ipk package. I want to know is it possible to build with rpm package?

Thank you,
Jason

Hi

replace a ‘-’ with a ‘+’ in the PR version string as Stefan does in this commit.

Max

Could you backport this commit to morty? I am using morty branch and the u-boot bbappend file is still using the ‘-’.

morty-next is our integration and review branch. Our Q3 release is scheduled at the end of the month, so this change (or a similar change) will make it back to morty soon.