From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WKk0JOw1k2J0LwEAbAwnHQ (envelope-from ) for ; Sun, 29 May 2022 10:59:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id KGlGI+w1k2JP9QAAG6o9tA (envelope-from ) for ; Sun, 29 May 2022 10:59:24 +0200 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 664B82325E for ; Sun, 29 May 2022 10:59:23 +0200 (CEST) Received: from localhost ([::1]:52226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nvEld-0000g8-UK for larch@yhetil.org; Sun, 29 May 2022 04:59:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvElN-0000fz-CY for help-guix@gnu.org; Sun, 29 May 2022 04:59:05 -0400 Received: from mx1.riseup.net ([198.252.153.129]:41254) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvElL-00046d-53 for help-guix@gnu.org; Sun, 29 May 2022 04:59:04 -0400 Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4L9ssb06QxzDqdJ; Sun, 29 May 2022 01:58:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1653814739; bh=19ZB8iPq5z+QK3SRcLBcacmzhQJsTOAssRQDs5OLgx8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=FTcXbWxBcVINashjlpqRZUN73QRXCccK6E26hE6aCkX/glelWDxjOBGAV3/pbvQsP pHtZOiWdFsLRdvdfbK+lha3/PF9SMH9AU40uu4tMnVwBAJC6KZ0d2SG6o4mYW7EeXY MmCHsAbxzl6mTMO0sr5uZfWMUVjfxPb04JiJKjDs= X-Riseup-User-ID: 86211DEA53EE7AA096335EAD2ECB5D8DCCE3B9E4E84A88432F2B2B8D73D64960 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4L9ssY5Y9Mz5vjx; Sun, 29 May 2022 01:58:57 -0700 (PDT) Date: Sun, 29 May 2022 10:58:54 +0200 From: raingloom To: Arun Isaac Cc: Zelphir Kaltstahl , help-guix Subject: non-input dependencies Was: guile-dbi from guix not working Message-ID: <20220529105854.22b1566e@riseup.net> In-Reply-To: <875yloepp8.fsf@systemreboot.net> References: <87k0a9o1yf.fsf@systemreboot.net> <3d8782db-68e8-eab7-03d4-852759e96d2f@posteo.de> <875yloepp8.fsf@systemreboot.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=198.252.153.129; envelope-from=raingloom@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653814764; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ZMl3KjDwD1nn0M492cAPuyXvvu0/bEttTzQBw3rHKfM=; b=nJ/wEjZ8QKcaLc6UufmGbWCvYUiH44xybNBuIfcVBHVpqm3kolpQieJ6+FKATwNsERZw40 nPe2CculWNcKNUjGt+nKrx/vYctcopNbXsRme9ivUyOsCHhgX+wKHOpl/3osZL5OULr7Xa CcTIdTBc1V1AENIsMIQdptM9VDLM+ORN9RqdBze9+hX/cieWm1BQyxgLDpO+mayVkVygdF nfi/aRpT9kXoeAGGv4V5r5yZei7zWC/2mNsTB7xLTXrTEmpe45yUhVxKootg90ypn1bKsl OOmqvbdsGbFL5JqgHYj8hfxTd1htEi6cfmqYCF+VV5Pmf+ktWJvGFM3+zFF51w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653814764; a=rsa-sha256; cv=none; b=Gn37eVuWGbBUTEjXtiEYumrqbNFi8+UrXVuAUyqjyOtOGWQuhsisSz+a4av7aq4We1OUfn QAMt06mTsZ//c4C3e2aNS2WKGOls3sm4sDbNNbg27uNXBYgCB4Uo96Jm8luLmUVFp3e0l6 jlmd/JO4+ChFPOGgqilfiUYMXLM1dNCKVNjyrYeKnlK9G7AL1NuFY5i8xH1EIvTI9VboyA 2AGedeJ0JZOMr+s7Ep8zUIiCYRY8DRl1B9wESlVmFW4yfSPqI/zYllrrpWn/Hp45T26QRU 1PJ3ylWNovEfatCuCaSpmPbrYyYrpeEDvCAghssgM5H5uruo05ei/JpJ3QKHWw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=FTcXbWxB; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -6.04 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=FTcXbWxB; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 664B82325E X-Spam-Score: -6.04 X-Migadu-Scanner: scn0.migadu.com X-TUID: XO2wY4UXMFiZ On Sun, 29 May 2022 13:27:23 +0530 Arun Isaac wrote: > Hi Zelphir, > > > Should guile-dbd-sqlite3 not be a dependency of guile-dbi then? But > > on the other hand, what if one only wanted to interact with one > > database type and not the other? So maybe not a must have dependency > > then. Hm. What is the typical Guix solution for this kind of > > "specialization" of a library? I think in the Python world, in > > requirements files it would be something like > > `library[specialization] == version`, to install that variant. > > You can think of guile-dbd-* as plugins for guile-dbi. So, you install > guile-dbi along with whatever plugins you want for guile-dbi. It's no > different from installing emacs and installing emacs packages of > interest. I don't think we need a special Guix feature for this. > > But, guile-dbi should be fixed to produce a proper error message that > a required plugin is missing. It should not produce misleading error > messages like "file not found". If you're up for it, you can try > reporting this to guile-dbi upstream. > > Cheers! > Arun > I disagree, Guix packages should make it clear when they have non-input dependencies. Users should not be forced to play dependency-whack-a-mole. Run-time dependencies should either be listed in the package description or in some extra field. I absolutely hate it that I have to go look at bug trackers and external docs to find out why a package I installed isn't working correctly, especially when other package managers have already solved this issue. We don't have to do the exact same thing as them, but there has to be some way for a user to know if, for example, they need ffmpeg in their manifest if they want to use yt-dlp.