From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 21 15:44:33 2021 Received: (at 52684) by debbugs.gnu.org; 21 Dec 2021 20:44:33 +0000 Received: from localhost ([127.0.0.1]:55816 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzlzt-0002cw-8A for submit@debbugs.gnu.org; Tue, 21 Dec 2021 15:44:33 -0500 Received: from andre.telenet-ops.be ([195.130.132.53]:37600) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzlzo-0002cj-FQ for 52684@debbugs.gnu.org; Tue, 21 Dec 2021 15:44:32 -0500 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by andre.telenet-ops.be with bizsmtp id Z8kS260014UW6Th018kSMY; Tue, 21 Dec 2021 21:44:26 +0100 Message-ID: Subject: Re: bug#52684: [BUG] Multiple Packages Failing to Build From: Maxime Devos To: Christopher Rodriguez , 52684@debbugs.gnu.org Date: Tue, 21 Dec 2021 20:44:26 +0000 In-Reply-To: <2e523b0b-e1f2-682f-7afb-fe90dd350669@gmail.com> References: <7ee7ed76-4676-6c86-87f0-8d7ab886fc50@gmail.com> <2e523b0b-e1f2-682f-7afb-fe90dd350669@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1640119466; bh=3vGCYIgaMmlAf1miKy+ISwT67bxjFNWhLOGSa0wRlMs=; h=Subject:From:To:Date:In-Reply-To:References; b=h0QxBROYd3sIllT2Yz/Kg1CSU64Heee/XcyahgYEniacaqSMYfhZ1xkR0qGDVIGOY sJiTrlkyGxTOtsLCXP/4V65IacTbcVDIt+nvxRNRum/Ho3gHN9CTw0Lp/U8x5VbQGv dojWoxxg6vu0cHNLrwW3JsUkIJRRjC/S5huhnclTu+8+TdMKuPHhx6qLWdi1hty9pv LREExo6XZdSMr/tE0N0ZqNg+Ts9vSpRuzl2f6WZq+higfUB8787h5gbLj9HmPtQ8oD YbEm+ourD/0MAjW0Ca2Ib47bORyQjHd6FIrNpTai9wh3nJHsZUpIpEwTh1tMNbNpKc cFOcZ9Iyvz6IA== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 52684 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi, Christopher Rodriguez schreef op di 21-12-2021 om 14:47 [-0500]: > I believe the issue was indeed beets-bandcamp missing needed > beets-related inputs. I started by copying all of the inputs from beets, > and then removed each one to see if it was required for beets-bandcamp > to build successfully. [...] Seems like the issue is that beets-bandcamp depends on beets, and beets depends on a number of python packages in inputs not in propagated-inputs. So beets-bandcamp can't find indirect dependencies IIUC. Moving things back to propagated-inputs is not ideal because beets is a ‘user-facing’ package with a command, not ‘merely’ a library and propagation can cause problems (conflicts, slower profile building ...). beets-bandcamp is also user-facing, being a plug-in, so it should also preferably not have propagated-inputs. There is no ideal solution here, but I think it would be acceptable to do something like (inputs ;; Avoid propagation, here and in beets, because this package is ;; ‘user-facing’ and not ‘merely’ a library, see ;; . (modify-inputs (package-inputs beets) (append beets python-six python-requests python-beautifulsoup4 python-isodate))) An additional problem is that 'beets' does not have GUIX_PYTHONPATH in its search paths. As such, if you create a minimal environment with only beets and beets-bandcamp and without python, GUIX_PYTHONPATH won't contain beets-bandcamp and hence beets cannot find beets-bandcamp (untested). Even better would be to let 'beets' have its own search path (e.g. GUIX_BEETSPATH) independent of GUIX_PYTHONPATH. This is implementable by wrapping 'beets' to set GUIX_PYTHPONPATH to "dependencies of beets:$GUIX_BEETSPATH". I don't know if wrap-program supports that though. Greetings, Maxime.