Wind River Support Network

HomeDefectsLIN1019-3312
Fixed

LIN1019-3312 : packagegroup-tpm2-initramfs-1.0-r0 do_package_write_rpm failed since long build path

Created: Nov 6, 2019    Updated: Feb 16, 2020
Resolved Date: Feb 16, 2020
Found In Version: 10.19.45.1
Fix Version: 10.19.45.5
Severity: Standard
Applicable for: Wind River Linux LTS 19
Component/s: Userspace

Description

DEBUG: Executing python function sstate_task_prefunc
DEBUG: Python function sstate_task_prefunc finished
DEBUG: Executing python function check_rpm_public_key
ERROR: Failed to import gpg key (/home/wrlbuild/builds/builds-bab33ac0-3ca4-48c5-8f0f-430c8510b9f1/layers/wrlinux/wrlinux-distro/files/sample-keys/rpm_keys/RPM-GPG-PRIVKEY-Wind-River-Linux-Sample): gpg: WARNING: unsafe ownership on homedir 'TOPDIR/tmp-glibc/.gnupg'
gpg: key CFA856DFC7CB87BE: public key "Wind-River-Linux-Sample (RPM Signing Certificate) <svc-linux@gmail.com>" imported
gpg: can't connect to the agent: File name too long
gpg: error getting the KEK: No agent running
gpg: Total number processed: 1
gpg:               imported: 1
gpg:       secret keys read: 1
DEBUG: Python function check_rpm_public_key finished


error happened when build path has about 108 characters, use a shorter path as workaround.

Workaround

Us a shorter path.

Steps to Reproduce

Relevant bits of the config were:
     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
     notconfigure.sh --send-error-report=yes
     bitbake wrlinux-image-glibc-std 

======!!!NOTE!!!======
This is local.conf/auto.conf for you reference to reproduce defect, please real bug reportor
                  add the steps from wraxl mail, configs like --dl-layers/--all-layer are not in local.conf/auto.conf

Local.conf:
BB_NO_NETWORK ?= '1'
BB_FETCH_PREMIRRORONLY ?= '${@d.getVar('BB_NO_NETWORK') or 0}'
WRTEMPLATE ?= "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"
MACHINE ??= "intel-x86-64"
DISTRO ??= "wrlinux"
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
IMAGE_FSTYPES += "tar.bz2"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    ABORT,${TMPDIR},100M,1K \
    ABORT,${DL_DIR},100M,1K \
    ABORT,${SSTATE_DIR},100M,1K \
    ABORT,/tmp,10M,1K"
DISTRO_FEATURES_append = " systemd"
DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
VIRTUAL-RUNTIME_init_manager = "systemd"
VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"
KERNEL_FEATURES_append = " cfg/systemd.scc"
PACKAGECONFIG_append_pn-qemu-system-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
CONF_VERSION = "1"
WRLINUX_BRANCH = "LTS"
OVERRIDES_append = ":osv-wrlinux"
INHERIT += "rm_work"
PARALLEL_MAKE = "-j 8"
BB_NUMBER_THREADS = "8"
USER_CLASSES += "buildstats buildstats-summary"
IMAGE_FSTYPES_forcevariable = ""
BB_NO_NETWORK = "1"
INHERIT += "report-error"


Live chat
Online