GHC does not remove unnecessary references for non-standard store prefixes

  • Open
  • quality assurance status badge
Details
One participant
  • Marius Bakke
Owner
unassigned
Submitted by
Marius Bakke
Severity
normal
M
M
Marius Bakke wrote on 19 Aug 2020 17:01
(address . bug-guix@gnu.org)
87a6yqptlv.fsf@gnu.org
Hello,

The 'remove-unnecessary-references' phase in GHC added by commit
f737d3ddd8018f89b0fa9f80aee4490cd726903a introduces a regression where
users with a non-standard store prefix will get a different end result.

The code should be changed to use %store-directory instead of
hard-coding "/gnu/store".

While at it, it would be good to add '#:disallowed-references ("doc")'
to catch regressions in that area.
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl89PtwACgkQoqBt8qM6
VPrYcAgAjBqS+h9feYvwMViSnxO1xBWiIL80sCax7c6NBwIOpqGY3xqWuWzoWq4G
GhsCAWTuUGg7exbfFr85eRyZS7/sOb5gnKcDv444DM7RTDQW4s5kC3Q72WQvoxAL
T/ns4hpgXXU3cSsbDcyHzBKLjYB/MhkBRsfVCBI0qNrZq4z0czwm5Z3+bhnMe4hN
nTxzm/k8G6cBWJ4AwfAAj2OmmUCzxRjUWuA0rXB7iBvxTkNlHXJ0KlD755utpxwD
DeC5SR8qa/Txugc9AZu9/PY541NFdbwxpVUUAmoBTeZzqd/W67iRt3wpj53CMIFD
gAJtLt88D1KMz+Kv/fcbLi+y6shVOA==
=JXWP
-----END PGP SIGNATURE-----

?