From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#37931: util-linux dependency on udev Date: Wed, 06 Nov 2019 16:40:18 +0100 Message-ID: <877e4d109p.fsf_-_@gnu.org> References: <20191026012248.GA119672@PhantoNv4ArchGx.localdomain> <87tv7stsg3.fsf@devup.no> <20191102144256.GA931@PhantoNv4ArchGx.localdomain> <87mudcoomv.fsf@devup.no> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:48058) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSNQd-0003ni-5E for bug-guix@gnu.org; Wed, 06 Nov 2019 10:41:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iSNQc-0005H9-2s for bug-guix@gnu.org; Wed, 06 Nov 2019 10:41:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:60500) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iSNQb-0005Ge-V1 for bug-guix@gnu.org; Wed, 06 Nov 2019 10:41:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iSNQb-0001Jj-Qc for bug-guix@gnu.org; Wed, 06 Nov 2019 10:41:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87mudcoomv.fsf@devup.no> (Marius Bakke's message of "Sun, 03 Nov 2019 18:28:40 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Marius Bakke Cc: 37931@debbugs.gnu.org Hi, Marius Bakke skribis: > I had a look at the lsblkd source code, and found that it has an > optional dependency on udev: > > https://github.com/karelzak/util-linux/blob/ccafadb7c58865f73d209fcfc7448= 3be96cdf64d/misc-utils/lsblk-properties.c > > I tried building util-linux with udev support, and got the same output > you expected without needing root privileges: > > (define-public util-linux/udev > (package/inherit > util-linux > (name "util-linux-with-udev") > (inputs > `(("udev" ,eudev) > ,@(package-inputs util-linux))))) > > Now, eudev already depends on util-linux, so adding udev support to the > regular 'util-linux' package would introduce a circular dependency. > > I'm not sure what the best approach here is. We could add a > 'util-linux-minimal' for use in package inputs, and/or add a > udev-enabled variant to %base-packages. I think the latter is fine and can be done right away on =E2=80=98master=E2= =80=99. WDYT? Ludo=E2=80=99.