Created attachment 3772 [details] poky-tiny error When building image core-image-tiny-initramfs an error related to gettext is appearing when executing do_configure for systemd-boot task. ==== Steps === 1. add to local.conf DISTRO = "poky-tiny" MACHINE = "intel-corei7-64" 2. bitbake-layers add-layer "../meta-intel" 3. bitbake core-image-tiny-initramfs === EXPECTED RESULT === Image should be built correctly === ACTUAL RESULT === configure: error: GNU gettext tools not found; required for intltool
This can be reproduced when setting DISTRO="poky-tiny" and invoking: $ bitbake systemd-boot it seems that the configure script from systemd-boot is not able to find gettext, even though invoking gettext from a devshell works just fine. This is likely a dependency issue regarding systemd-boot or intltool.
Its interesting that this appears to only be affecting poky-tiny: TARGET_SYS = "x86_64-poky-linux-musl" MACHINE = "intel-corei7-64" DISTRO = "poky-tiny" | configure: error: GNU gettext tools not found; required for intltool whereas: TARGET_SYS = "x86_64-poky-linux" MACHINE = "intel-corei7-64" DISTRO = "poky" Succeeds with no issues.
So I thought it might have been caused by using MUSL, but setting: TCLIBC = "musl" Shows no error either.
Found it. The problem is that on one case (DISTRO="poky") BASEDEPENDS has the following content: BASEDEPENDS="virtual/x86_64-poky-linux-musl-gcc virtual/x86_64-poky-linux-musl-compilerlibs virtual/libc virtual/gettext gettext-native" whereas when using DISTRO="poky-tiny" it contains: BASEDEPENDS="virtual/x86_64-poky-linux-musl-gcc virtual/x86_64-poky-linux-musl-compilerlibs virtual/libc gettext-minimal-native" So gettext-minimal-native appears not to be enought to build systemd-boot. This is caused because on tiny we set: USE_NLS="no" Causing the gettext.bbclass to add gettext-minimal-native to BASEDEPENDS instead of gettext-native. Setting gettext-native as a dependency to intltool-native fixes the problem.
Fixed here: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=be8ceea70d3016027806d6c5adc8b567e8176aa6