GNU bug report logs

#28510 crash: guix build -S foo --with-source=bla

PackageSource(s)Maintainer(s)
guix PTS Buildd Popcon
Full log

Message #28 received at 28510@debbugs.gnu.org (full text, mbox, reply):

Received: (at 28510) by debbugs.gnu.org; 7 Oct 2022 08:41:59 +0000
From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 07 04:41:59 2022
Received: from localhost ([127.0.0.1]:34312 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1ogivf-0006jS-F3
	for submit@debbugs.gnu.org; Fri, 07 Oct 2022 04:41:59 -0400
Received: from relay11.mail.gandi.net ([217.70.178.231]:42355)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jeremy@korwin-zmijowski.fr>) id 1ogivd-0006jE-P5
 for 28510@debbugs.gnu.org; Fri, 07 Oct 2022 04:41:58 -0400
Received: (Authenticated sender: jeremy@korwin-zmijowski.fr)
 by mail.gandi.net (Postfix) with ESMTPA id 709FB100005;
 Fri,  7 Oct 2022 08:41:50 +0000 (UTC)
MIME-Version: 1.0
Date: Fri, 07 Oct 2022 10:41:50 +0200
From: jeremy@korwin-zmijowski.fr
To: Josselin Poiret <dev@jpoiret.xyz>
Subject: Re: bug#28510: crash: guix build -S foo --with-source=bla
In-Reply-To: <87h7113k9a.fsf@jpoiret.xyz>
References: <idjwp4uvqim.fsf@bimsb-sys02.mdc-berlin.net>
 <d566d759-38d7-849e-d067-35e207359210@korwin-zmijowski.fr>
 <229c1399-ce4b-b942-1bae-deea501f1c48@telenet.be>
 <87k05y2yjc.fsf@jpoiret.xyz> <86a66u0xhr.fsf@gmail.com>
 <87h7113k9a.fsf@jpoiret.xyz>
Message-ID: <565ee080af7ef230e1c769bcfed440c2@korwin-zmijowski.fr>
X-Sender: jeremy@korwin-zmijowski.fr
Content-Type: multipart/mixed;
 boundary="=_13936658fabfd420a0433caa4296d0b9"
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 28510
Cc: 28510@debbugs.gnu.org, Maxime Devos <maximedevos@telenet.be>,
 zimoun <zimon.toutoune@gmail.com>
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit@debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
X-Spam-Score: -1.7 (-)
[Message part 1 (text/plain, inline)]
Le 2022-09-20 21:42, Josselin Poiret a écrit :
> Hi Simon,
> 
> zimoun <zimon.toutoune@gmail.com> writes:
> 
>> Well, I would add an error handler; as proposed [1]. :-)  Because does
>> “guix build foo --source --with-source=bla” make sense?  What is the
>> use-case for such command?
> 
> My bad, I didn't see the previous discussion on the subject.  To me, 
> the
> lack of generality would be unexpected: if I have a package with a
> source, I expect to be able to get that source, whatever the source may
> be.  Maxime's minimal example shows that it could happen for a variety
> of different reasons, not just a --with-source= flag.  I don't know 
> what
> a proper fix for it would be though, since we're passing things around
> that we pretend are derivations but are not, and in many places.
> 
> Best,

Hi !

I feel not able to take decision about the proper way right now.
So as a step forward I wrote a test to capture the behavior expected.
Please have a look at it as it's the starting point for me.
Next, I can implement the error handler, making the previous test to 
pass.
As the test checks the behaviour, it will let enough space to change 
implementation later without invalitating the test.

Cheers,
Jérémy
[guix-scripts.scm (text/plain, attachment)]

Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Sun Dec 22 15:58:30 2024; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.