=> Creating binary package /tmp/pkgbuild/misc/rpm/work.earmv7hf/.packages/rpm-4.13.0.1nb4.tgz
[1]   Illegal instruction (core dumped) ${RPM} -qa 2>/dev/null
rpm-4.13.0.1nb4: initializing the RPM database...
error: Macro %_host_vendor has empty body
error: db4 error(35) from dbenv->open: Resource temporarily unavailable
error: cannot open Packages index using db4 - Resource temporarily unavailable (35)