GNU bug report logs -
#31210
Perl graft breakage
Previous Next
Reported by: Leo Famulari <leo <at> famulari.name>
Date: Wed, 18 Apr 2018 18:10:01 UTC
Severity: normal
Done: Leo Famulari <leo <at> famulari.name>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Leo Famulari <leo <at> famulari.name> writes:
> On Wed, Apr 18, 2018 at 03:14:45PM -0400, Mark H Weaver wrote:
>> I suggest that we add a phase to the replacement 'perl' to install a
>> symlink from $out/lib/perl5/5.26.1 pointing to "5.26.2".
>>
>> Would you like to try this, Leo, and push it if it solves the problem
>> for you?
>
> Thanks for your advice. The attached patch fixes the issue for me.
>
> I would have pushed it but there is one thing I don't understand. Before
> I set (replacement #f), the build would fail because the new phase was
> run twice, and symlinking fails because it is not "forced" (as in `ln
> -sf`). Is this expected behaviour?
The problem is that you should never use 'package/inherit' to create a
graft. That leads to an infinite tower of grafts. I'm surprised it
works at all, but it's definitely not right. Use (package (inherit ...)
...) instead, and leave out the (replacement #f).
Thanks!
Mark
This bug report was last modified 7 years and 37 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.