unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: [bug#62047] [PATCH 0/2] '--with-input' & co. no longer replace hidden packages
       [not found] <20230308120125.17560-1-ludo@gnu.org>
@ 2023-06-22 17:25 ` Greg Hogan
  2023-06-24 10:09   ` Josselin Poiret
  2023-09-14 15:41   ` Ludovic Courtès
  0 siblings, 2 replies; 3+ messages in thread
From: Greg Hogan @ 2023-06-22 17:25 UTC (permalink / raw)
  To: Ludovic Courtès
  Cc: Christopher Baines, Josselin Poiret, Mathieu Othacehe,
	Ricardo Wurmus, Simon Tournier, Tobias Geerinckx-Rice, guix-devel

On Wed, Mar 8, 2023 at 7:03 AM Ludovic Courtès <ludo@gnu.org> wrote:
>
> Hello,
>
> This change makes things like:
>
>   guix build --with-input=guile=guile-next guix -n --no-grafts
>
> more useful and tractable.
>
> Low-level rewrites are still possible for packages not marked
> as hidden in 'commencement.scm', such as glibc:
>
>   guix build --with-latest=glibc hello -n
>
> Thoughts?
>
> Ludo'.
>
> Ludovic Courtès (2):
>   packages: Use SRFI-71 instead of SRFI-11.
>   packages: 'package-input-rewriting/spec' ignores hidden packages.
>
>  doc/guix.texi      | 21 ++++++++++++---------
>  guix/packages.scm  | 14 ++++++++------
>  tests/packages.scm | 20 +++++++++++++++++++-
>  3 files changed, 39 insertions(+), 16 deletions(-)
>
>
> base-commit: 0a37921d851b94aef6900214098dc5bd62b46e26
> --
> 2.39.1

(resending to guix-devel since the bug has been archived)

Ludo',

This has broken, for example, building clang with a newer version of
gcc using package-input-rewriting/spec. What do you think of adding a
hidden? property to enable the old behavior?

Alternatively, why are gcc, binutils, and libc used as build-time
dependencies rather than gcc-toolchain? gcc-toolchain could be
rewritten as a non-hidden package and use of the toolchain would
seemingly better support profiles created with
package->development-manifest.

Greg


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [bug#62047] [PATCH 0/2] '--with-input' & co. no longer replace hidden packages
  2023-06-22 17:25 ` [bug#62047] [PATCH 0/2] '--with-input' & co. no longer replace hidden packages Greg Hogan
@ 2023-06-24 10:09   ` Josselin Poiret
  2023-09-14 15:41   ` Ludovic Courtès
  1 sibling, 0 replies; 3+ messages in thread
From: Josselin Poiret @ 2023-06-24 10:09 UTC (permalink / raw)
  To: Greg Hogan, Ludovic Courtès
  Cc: Christopher Baines, Mathieu Othacehe, Ricardo Wurmus,
	Simon Tournier, Tobias Geerinckx-Rice, guix-devel

[-- Attachment #1: Type: text/plain, Size: 475 bytes --]

Hi Greg,

Greg Hogan <code@greghogan.com> writes:

> This has broken, for example, building clang with a newer version of
> gcc using package-input-rewriting/spec. What do you think of adding a
> hidden? property to enable the old behavior?

Since you're mentioning package-input-rewriting/spec, I assume you're
doing this in Guile?  If so, package-input-rewriting doesn't have that
same behavior, and still replaces hidden packages!

HTH,
-- 
Josselin Poiret

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 682 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [bug#62047] [PATCH 0/2] '--with-input' & co. no longer replace hidden packages
  2023-06-22 17:25 ` [bug#62047] [PATCH 0/2] '--with-input' & co. no longer replace hidden packages Greg Hogan
  2023-06-24 10:09   ` Josselin Poiret
@ 2023-09-14 15:41   ` Ludovic Courtès
  1 sibling, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2023-09-14 15:41 UTC (permalink / raw)
  To: Greg Hogan
  Cc: Christopher Baines, Josselin Poiret, Mathieu Othacehe,
	Ricardo Wurmus, Simon Tournier, Tobias Geerinckx-Rice, guix-devel

Hi Greg,

(It’s been two months but I completely missed this message.)

Greg Hogan <code@greghogan.com> skribis:

> On Wed, Mar 8, 2023 at 7:03 AM Ludovic Courtès <ludo@gnu.org> wrote:
>>
>> Hello,
>>
>> This change makes things like:
>>
>>   guix build --with-input=guile=guile-next guix -n --no-grafts
>>
>> more useful and tractable.
>>
>> Low-level rewrites are still possible for packages not marked
>> as hidden in 'commencement.scm', such as glibc:
>>
>>   guix build --with-latest=glibc hello -n
>>
>> Thoughts?
>>
>> Ludo'.
>>
>> Ludovic Courtès (2):
>>   packages: Use SRFI-71 instead of SRFI-11.
>>   packages: 'package-input-rewriting/spec' ignores hidden packages.

[...]

> This has broken, for example, building clang with a newer version of
> gcc using package-input-rewriting/spec.

As in:

   guix build clang --with-c-toolchain=clang=gcc-toolchain@12

?  Or some other command?

> What do you think of adding a hidden? property to enable the old
> behavior?

Maybe, but I’m not sure I fully understand the problem.

> Alternatively, why are gcc, binutils, and libc used as build-time
> dependencies rather than gcc-toolchain? gcc-toolchain could be
> rewritten as a non-hidden package and use of the toolchain would
> seemingly better support profiles created with
> package->development-manifest.

We could replace gcc, binutils, etc. with just ‘gcc-toolchain’; this
will need testing of course, but I cannot think of any issue it would
cause.  (That’s a ‘core-updates’ change though.)

Thanks,
Ludo’.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-09-14 15:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20230308120125.17560-1-ludo@gnu.org>
2023-06-22 17:25 ` [bug#62047] [PATCH 0/2] '--with-input' & co. no longer replace hidden packages Greg Hogan
2023-06-24 10:09   ` Josselin Poiret
2023-09-14 15:41   ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).