From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id WLmWLyO5vl6mSQAA0tVLHw (envelope-from ) for ; Fri, 15 May 2020 15:45:39 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id qh0dKyO5vl4cMgAAbx9fmQ (envelope-from ) for ; Fri, 15 May 2020 15:45:39 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 75D8D940146 for ; Fri, 15 May 2020 15:45:39 +0000 (UTC) Received: from localhost ([::1]:49808 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZcWo-0001wV-DO for larch@yhetil.org; Fri, 15 May 2020 11:45:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56106) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZcWa-0001v5-96 for guix-devel@gnu.org; Fri, 15 May 2020 11:45:24 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:48344) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZcWY-00031v-PD for guix-devel@gnu.org; Fri, 15 May 2020 11:45:23 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 8f2b472d; Fri, 15 May 2020 15:45:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:from:message-id; s=dkim; bh=1sT0L4bHO5o8axLB94sGGKoECPRHwXleBjEYL+DMIO4=; b=MoKURveSzJUz WSXKASLSNvnYpcSoqRuCphIxqhrTaQpMBVvRRCVFJ0H6dOaUzVKg4sUBZT8ny5RC znolnz17o3+FXRgP1o6z0nKRbV0oUTklfOIuQNvVvwaBQ8chBjBSbQXX/F64ANul 9ocLSC1Ti85zgznVisC8sQn2TEAS85UaDQSdjugGZU8P7YeaJnmjxZbcAbuH4bHV V5VIRnCyEklNV57+18YsIYVUrkZp7B0Fa9FgWUdzrPB2n06WH+JcKJx0AGcSgHwy zTK9rLj4kSULBbARizLvsAge/AMPEiF56VFzg9/AYk01RxNyOv7CRRXB7uRlPEgL 3Iqo/oV03A== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 506da506 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Fri, 15 May 2020 15:45:12 +0000 (UTC) Date: Fri, 15 May 2020 11:45:00 -0400 User-Agent: K-9 Mail for Android In-Reply-To: <87sgg16wog.fsf@alice.lan> References: <87v9kx7jh5.fsf@alice.lan> <87sgg16wog.fsf@alice.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: What to do when udpating a package ? To: guix-devel@gnu.org,Edouard Klein From: Julien Lepiller Message-ID: Received-SPF: none client-ip=2a00:5884:8208::1; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lepiller.eu header.s=dkim header.b=MoKURveS; dmarc=pass (policy=none) header.from=lepiller.eu; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -0.71 X-TUID: puhaKzDXkB9X Le 15 mai 2020 11:32:31 GMT-04:00, Edouard Klein a = =C3=A9crit : >Hi Julien, > >Thank you for your answer=2E > >Julien Lepiller writes: > >> Le 15 mai 2020 03:20:06 GMT-04:00, Edouard Klein > a =C3=A9crit : >>>Dear Guix Developers, >>> >>>I have a few beginner questions=2E >>>Attached to this email you will find the "reverse-package" graph of >>>python-prompt-toolkit=2E >> >> Hi, >> >> In general, some packages on master may fail to build=2E We try to fix >these, but it's not always easy=2E >> >> When updating a package, you should make sure that its dependents all >> build or did not build before your changes=2E Fix those who now fail to >> build=2E > >OK, got it=2E I'll avoid touching those that fail to build on the build >farm=2E > >> >> I don't think having both versions is a good thing because it will >create conflicts when installing (have you tried to install a package >that propagates both to a profile?)=2E It would be ok if they had no file >in common but I doubt it is the case=2E For any package that requires >version 2, make sure its dependencies only use version 2, or update the >package if the newer version can support version 3=2E It's not always >easy to find the right order of upgrades, as you should make sure >nothing is broken in between patches=2E >> >I did not try to install them, and you were correct, here is what I get >when I try to install python-iml: > >guix install: error: profile contains conflicting entries for >python-prompt-toolkit >guix install: error: first entry: python-prompt-toolkit@3=2E0=2E5 >/gnu/store/80lzvbzvfp4226ic7czhch4p0mlsdwlv-python-prompt-toolkit-3=2E0= =2E5 >guix install: error: =2E=2E=2E propagated from python-ipython@7=2E9=2E= 0 >guix install: error: =2E=2E=2E propagated from python-iml@0=2E6=2E2 >guix install: error: second entry: python-prompt-toolkit@2=2E0=2E7 >/gnu/store/0k7a0yp3b2sqqj8jhl7vp3cabb0x2mwd-python-prompt-toolkit-2=2E0= =2E7 >guix install: error: =2E=2E=2E propagated from python-iml@0=2E6=2E2 >hint: You cannot have two different versions or variants of >`python-iml' in the same profile=2E > >The problem is that python-iml depends on both python-ipython (which >accepts python-prompt-toolkit 3) and python-prompt-toolkit-2=2E Looking >at >the github repo, the last update was in 2018, I don't think we'll see >an >update soon=2E > >I could pin python-ipython to python-prompt-toolkit-2, but that would >just delay the problem and put it on somebody else's lap to let >python-ipython move to python-prompt-toolkit 3=2E > >As I was typing a question I ctrl-Fed for 'variants' in the doc and >ended up learning about package-input-rewriting=2E I will try to make >python-iml depend on python-ipython, but with the prompt-toolkit input >replaced with its version 2 on the fly=2E I think it makes sense=2E Is it >the correct >way to do what needs to be done ? Sounds like a plan=2E Anotger possiblity is to introduce a patch to have p= ython-iml support the latest version and send it upstream too=2E > >> Relying on propagated inputs to provide a dependency is going to >> simplify the graphs, but not the work of other maintainers who will >> have to investigate how the dependency is provided, so I don't think >> it's a good idea=2E > >I understood your sentence as saying that relying on propagated inputs >of propagated inputs is not a good idea and that dependencies are >better >explicitly stated in the guix package=2E Is that correct ? Yes, that's what I meant=2E If the package explicitely requires something,= we should provide it in the recipe, even if that's superfluous=2E If it's = not listed as a dependency, then it's not necessary=2E I don't think this i= s an established rule, but this is what makes more sense to me=2E > >> >> You should rebuild every dependent, even those who only depend on the >> package for native-inputs, since there can be an error an any point >> (though less likely)=2E > >OK, I'll try that next when I'll have gotten python-iml to build=2E > >> >> I hope I answered your questions=2E Your message was split into two >> multipart sections and my client wasn't able to cite the interesting >> part, which makes it hard for me to check what your questions were >> while typing my answer=2E > >You have indeed answered a lot of them, thank you very much :) Sorry >about the multipart stuff, I don't know how to configure my client >(mu4e) not to do that=2E I'll look into it=2E Don't worry too much about it, it's only inconvenient when I'm on my phone= :) > >Cheers, > >Edouard=2E