Cpio fails to install in SDK

REPRODUCIBILITY (% or how often): hard to say, quite frequent
BUILD ID = OS VERSION (Settings > About product): 4.0.1

Tested on Platform SDK


When trying to install cpio (gnu version) to be able to package boot image, I frequently (but not always, as far as I remember from earlier times), get

sb2 -t SailfishOS- -R zypper in --force-resolution -y --allow-vendor-change --allow-unsigned-rpm cpio
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW package is going to be installed:

1 new package to install.
Overall download size: 75.0 KiB. Already cached: 0 B. After the operation, additional 232.7 KiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package cpio-2.13+git2-1.2.4.jolla.aarch64 (1/1),  75.0 KiB (232.7 KiB unpacked)
Retrieving: cpio-2.13+git2-1.2.4.jolla.aarch64.rpm [done]

Checking for file conflicts: [.....done]
(1/1) Installing: cpio-2.13+git2-1.2.4.jolla.aarch64 [...error]
Installation of cpio-2.13+git2-1.2.4.jolla.aarch64 failed:
Error: Subprocess failed. Error: RPM failed: warning: /home/.zypp-cache/packages/jolla/oss/aarch64/cpio-2.13+git2-1.2.4.jolla.aarch64.rpm: Header V3 RSA/SHA1 Signature, key ID 47394f23: NOKEY
error: unpacking of archive failed on file /bin/cpio: cpio: rename failed - Invalid cross-device link
error: cpio-2.13+git2-1.2.4.jolla.aarch64: install failed

Abort, retry, ignore? [a/r/i] (a): a
Problem occurred during or after installation or removal of packages:
Installation has been aborted as directed.
Please see the above error message for a hint.

Same error occurs with m4.

1 Like

This was likely fixed with https://git.sailfishos.org/mer-core/scratchbox2/merge_requests/40, which will be included in the next Sailfish SDK release (3.5).

Thanks, let’s hope that this will resolve it.