Subject: bug#50452: ‘rust-winapi-i686-pc-windows-gnu-0’ contains pre-built binaries

From: Ludovic Courtès <[email-masked]>
Date: Tue, 07 Sep 2021 14:43:48 +0200

Unless I’m mistaken, this crate contains pre-built binaries that are
installed as is:

--8<---------------cut here---------------start------------->8---
$ find $(guix build rust-winapi-i686-pc-windows-gnu) -name \*.a |head
/gnu/store/fdklwnyb90qa6dzwyrr3jpd9q48nkq4s-rust-winapi-i686-pc-windows-gnu-0.4.0/share/cargo/src/winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_onecore-api-ms-win-security-base-l1-2-2.a
/gnu/store/fdklwnyb90qa6dzwyrr3jpd9q48nkq4s-rust-winapi-i686-pc-windows-gnu-0.4.0/share/cargo/src/winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_cryptxml.a
/gnu/store/fdklwnyb90qa6dzwyrr3jpd9q48nkq4s-rust-winapi-i686-pc-windows-gnu-0.4.0/share/cargo/src/winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_windowsapp-api-ms-win-core-comm-l1-1-1.a
/gnu/store/fdklwnyb90qa6dzwyrr3jpd9q48nkq4s-rust-winapi-i686-pc-windows-gnu-0.4.0/share/cargo/src/winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_tdh.a
/gnu/store/fdklwnyb90qa6dzwyrr3jpd9q48nkq4s-rust-winapi-i686-pc-windows-gnu-0.4.0/share/cargo/src/winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_onecoreuap-api-ms-win-core-util-l1-1-0.a
/gnu/store/fdklwnyb90qa6dzwyrr3jpd9q48nkq4s-rust-winapi-i686-pc-windows-gnu-0.4.0/share/cargo/src/winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_onecoreuap-api-ms-win-core-namedpipe-ansi-l1-1-1.a
/gnu/store/fdklwnyb90qa6dzwyrr3jpd9q48nkq4s-rust-winapi-i686-pc-windows-gnu-0.4.0/share/cargo/src/winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_mincore-api-ms-win-core-datetime-l1-1-0.a
/gnu/store/fdklwnyb90qa6dzwyrr3jpd9q48nkq4s-rust-winapi-i686-pc-windows-gnu-0.4.0/share/cargo/src/winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_fwpuclnt.a
/gnu/store/fdklwnyb90qa6dzwyrr3jpd9q48nkq4s-rust-winapi-i686-pc-windows-gnu-0.4.0/share/cargo/src/winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_windowsapp-api-ms-win-core-synch-l1-2-0.a
/gnu/store/fdklwnyb90qa6dzwyrr3jpd9q48nkq4s-rust-winapi-i686-pc-windows-gnu-0.4.0/share/cargo/src/winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_windowsapp-api-ms-win-core-heap-obsolete-l1-1-0.a
$ tar tzvf $(guix build rust-winapi-i686-pc-windows-gnu -S) |grep '\.a$' |head
-rw-r--r-- 0/0            6530 2018-01-17 06:21 winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_aclui.a
-rw-r--r-- 0/0           23432 2018-01-17 06:21 winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_activeds.a
-rw-r--r-- 0/0          638848 2018-01-17 06:21 winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_advapi32.a
-rw-r--r-- 0/0           59044 2018-01-17 06:21 winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_advpack.a
-rw-r--r-- 0/0            8748 2018-01-17 06:21 winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_amsi.a
-rw-r--r-- 0/0            9332 2018-01-17 06:21 winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_api-ms-win-net-isolation-l1-1-0.a
-rw-r--r-- 0/0            2414 2018-01-17 06:21 winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_apidll.a
-rw-r--r-- 0/0           14600 2018-01-17 06:21 winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_appmgmts.a
-rw-r--r-- 0/0            3514 2018-01-17 06:21 winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_appnotify.a
-rw-r--r-- 0/0            2516 2018-01-17 06:21 winapi-i686-pc-windows-gnu-0.4.0/lib/libwinapi_asycfilt.a
$ guix describe
Generacio 189	Aug 30 2021 12:09:27	(nuna)
  guix f91ae94
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: f91ae9425bb385b60396a544afe27933896b8fa3
--8<---------------cut here---------------end--------------->8---

How can we address that?

Are there other crates likely to have the same problem?

(This package is a dependency of librsvg on ‘core-updates-frozen’.)

Ludo’.