(address . bug-guix@gnu.org)
I wasn't aware of a issue for this, so I'm creating one. I did send some
patches in an attempt to fix this to #61363.
The derivations used by guix pull, guix time-machine and other
operations work differently to package derivations. I might have
understood exactly how in the past, but unfortunately I've forgotten the
details. I think the rough summary is that in contrast to packages, you
can't view the guix self derivations grafting as a transformation on the
built outputs, but rather that transformation is somehow muddled up with
computing the derivations.
As noted in #61363, the data service is affected by this since it relies
on computing derivations being inexpensive to do, and having to
potentially perform many builds for some arbitrary architecture when
attempting to compute derivations can be very expensive. Note that since
the bad behaviour here is dependent on grafts, this only happens when
packages involved in the guix self derivations have replacements.
I think there's probably other implications of this as well, substitute
servers don't store grafted outputs generally, although I think the use
of grafting here probably means that they are storing and providing
substitutes for grafted outputs.
However this is fixed, I think you'd need to end up with two
properties. Computing the derivations doesn't require performing builds,
and grafting is a transformation on the outputs of those computed
derivations.
-----BEGIN PGP SIGNATURE-----
iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmdiruRfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF
ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh
aW5lcy5uZXQACgkQXiijOwuE9XfxXw/9FmuWej+XaXULi9QBIovMM/6FJeH4Wtqo
Yr9R3GyLVy/w4hfXKngV1hRyB19a97W//XII8u82MUHBGKwxMtA4ounbH5fj/5pi
n5Dv5WJeOjXZVnSTDUzj7fiznnEhTh12wSUaZlRiO2kx4uPU7GwecaiEjCGBbOvd
32PZk19S+UOIKi6P2vyUv+nTDsBglSiSSi4tUTO60YfkqyYHjA9k8ObuIUsKe0hc
sxmcfvt6lFtXIRrlVbiQIZT4km+MnYjzwFw3gTZ6tSyGiGYgsdJuCGFFjzxPj6Oc
CoEoBx1YL98JDKVKZYDUuakyDC+jyiUy+qmOh+VUVrXrmHSnzaMnc40Uvw5UmiyC
S3cg3zCu/dE+IX/2gMWU5mUi8S1Mq+NOga8KArk/6aqXQROUyJQ684JgFbdV0vTy
cCFlg96OSZakKWf1StWRzqjcLNT27rtfibbgn/yhxgIr+3ttIBfKzHlsn2t3N5Oq
/oBW2lApKYUG6a+TpIk+gCH4KC2yt5g3mNKL4wX0bw/BdriiCU4QSO7xUwsW8aO8
iFlijEjFT7fd97bfV8ekNzXh0EmuuuZRJi7TjMfHqF9DllIWsTiAlZ2bK3vh7sTS
4GsdNVXPyDqe81+4WgCNpbkMjQe3tE3jB1nuqnfIC96/lIkapZFpO5OmYImcEij0
+5lpB4jzljM=
=n1h/
-----END PGP SIGNATURE-----