[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RFC: Build system hacks for Guix do not belong in 'source'
From: |
Ricardo Wurmus |
Subject: |
Re: RFC: Build system hacks for Guix do not belong in 'source' |
Date: |
Fri, 06 Mar 2015 00:10:39 +0100 |
Ludovic Courtès writes:
> Mark H Weaver <address@hidden> skribis:
>
>> I don't think we should be making these kinds of changes in 'snippets'.
>>
>> When I ask for the source code via "guix build -S <package>", I expect
>> freedom fixes and other bug fixes, and maybe even enhancements needed
>> for Guix that would also work fine on other systems (e.g. adding an
>> environment variable).
>>
>> However, the package 'source' should not include build system hacks that
>> are specific to Guix and would interfere with the package functionality
>> on other platforms, IMO.
>>
>> I think that both the 'ldconfig -> true' hack and the LIBDIR
>> substitution should be moved to a build phase for both of these
>> packages.
>>
>> Other opinions?
>
> I think one of the goals of ‘guix build -S’ is that you can take the
> source and build it *on GuixSD* with hopefully few additional
> modifications.
>
> From that perspective, the “hacks” are really fixes or workarounds
> (/sbin/ldconfig doesn’t exist on GuixSD.)
>
> Now, granted, there are inelegant workarounds that we’d rather hide;
> these two may well fall into this category, so I’m fine with moving them
> to a build phase. Ricardo?
I was operating from the perspective that anything relying on "dynamic"
build information (like paths to inputs) must necessarily be implemented
in build phases, but that anything of a more static nature
(e.g. removing build time stamping, fixing Makefile problems, removing
bundled software) should be implemented with snippets.
I don't like the ldconfig hack myself (and I would be happy if we had a
replacement that would do the right thing in these cases without
requiring patching), so I'm okay with moving this into a build phase.
Expect updated patches.
It would be helpful to know where to draw the line, though, or if
there's a line at all.
~~ Ricardo
- Re: [PATCH 2/2] gnu: Add AlsaModularSynth., Ricardo Wurmus, 2015/03/01
- Re: [PATCH 2/2] gnu: Add AlsaModularSynth., Ludovic Courtès, 2015/03/01
- Re: [PATCH 2/2] gnu: Add AlsaModularSynth., Mark H Weaver, 2015/03/02
- Re: [PATCH 2/2] gnu: Add AlsaModularSynth., Ricardo Wurmus, 2015/03/04
- Re: [PATCH 2/2] gnu: Add AlsaModularSynth., Ricardo Wurmus, 2015/03/04
- Re: [PATCH 2/2] gnu: Add AlsaModularSynth., Ricardo Wurmus, 2015/03/04
- RFC: Build system hacks for Guix do not belong in 'source', Mark H Weaver, 2015/03/05
- Re: RFC: Build system hacks for Guix do not belong in 'source', Thompson, David, 2015/03/05
- Re: RFC: Build system hacks for Guix do not belong in 'source', Ludovic Courtès, 2015/03/05
- Re: RFC: Build system hacks for Guix do not belong in 'source',
Ricardo Wurmus <=
- Re: RFC: Build system hacks for Guix do not belong in 'source', Ricardo Wurmus, 2015/03/10
- Re: RFC: Build system hacks for Guix do not belong in 'source', Mark H Weaver, 2015/03/10