Wind River Support Network

HomeDefectsLIN1018-5326
Fixed

LIN1018-5326 : failure to find gpg command

Created: Nov 22, 2019    Updated: Mar 23, 2020
Resolved Date: Feb 26, 2020
Found In Version: 10.18.44.12
Fix Version: 10.18.44.15
Severity: Standard
Applicable for: Wind River Linux LTS 18
Component/s: Userspace

Description

When enabling feature/ima, gpg is needed and the recipes should all depend on on gnupg-native, but they are actually using the host version.  If that does not exist, the shell will attempt to execute the command "–batch" (instead of "gpg --batch") and fail.

The error is:

DEBUG: Executing python function sstate_task_prefunc

DEBUG: Python function sstate_task_prefunc finished

DEBUG: Executing python function check_rpm_public_key

DEBUG: Python function check_rpm_public_key finished

ERROR: Function failed: Failed to import gpg key (/builds-72b697cf-2c6e-4584-8e28-d6a0e8a3c386/layers/wrlinux/wrlinux-distro/files/sample-keys/rpm_keys/RPM-GPG-PRIVKEY-Wind-River-Linux-Sample): /bin/sh: --batch: command not found

 

Steps to Reproduce

an example from wraxl:

setup.sh --machines=intel-x86-64 --dl-layers --all-layers --templates=feature/efi-secure-boot,feature/tpm2,feature/ima,feature/firewall,feature/ips,feature/ids-basic,feature/openssl-no-weak-ciphers,feature/pam-tally2,feature/pam-wheel --repo-verbose --verbose --accept-eula=yes

   build_with_gpg_path wrlinux-image-glibc-std
Live chat
Online