From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sFhBEIdXmmD1KQAAgWs5BA (envelope-from ) for ; Tue, 11 May 2021 12:08:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IG4GDIdXmmCZbwAA1q6Kng (envelope-from ) for ; Tue, 11 May 2021 10:08:07 +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 6CA7322C91 for ; Tue, 11 May 2021 12:08:06 +0200 (CEST) Received: from localhost ([::1]:35408 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgPJ7-0000AM-1V for larch@yhetil.org; Tue, 11 May 2021 06:08:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34224) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgPI6-00076t-AW for bug-guix@gnu.org; Tue, 11 May 2021 06:07:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51741) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgPI6-0007GU-3P for bug-guix@gnu.org; Tue, 11 May 2021 06:07:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lgPI5-0004pe-Ti for bug-guix@gnu.org; Tue, 11 May 2021 06:07:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48331: Emacs' describe-package doesn't work for packages managed by guix Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 11 May 2021 10:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48331 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Andrew Tropin , 48331@debbugs.gnu.org Received: via spool by 48331-submit@debbugs.gnu.org id=B48331.162072756418491 (code B ref 48331); Tue, 11 May 2021 10:07:01 +0000 Received: (at 48331) by debbugs.gnu.org; 11 May 2021 10:06:04 +0000 Received: from localhost ([127.0.0.1]:35054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgPHA-0004oB-Ft for submit@debbugs.gnu.org; Tue, 11 May 2021 06:06:04 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:34758) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgPH8-0004nj-Ct for 48331@debbugs.gnu.org; Tue, 11 May 2021 06:06:03 -0400 Received: from [10.0.0.4] (91-114-247-246.adsl.highway.telekom.at [91.114.247.246]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4FfYTd2xwnz3xqm; Tue, 11 May 2021 12:05:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1620727557; bh=9aAW5k7UpkYk1kSTYFKkkdPFAidrBlLqaFYuDxxCIzs=; h=Subject:From:To:Date:In-Reply-To:References; b=DaC4iMXD4gKUaxLTU3jinahl6K2+d+EpnfJMwTnFA/lHv9rBT2EwHQD28Ao/SxLvs kKMZXADMFEdtS+ObT2VHzwpIDqKirlROUiU2EuKt+ua8W/rfbPjKWPDMKk/f1xBIqy Fu/MUVxlQ5EirTnRebAAT+k8gBXMsv/u/yut7V/U= Message-ID: <78cfb495305fb1137da26e37a7ae5dd9467043bf.camel@student.tugraz.at> From: Leo Prikler Date: Tue, 11 May 2021 12:05:31 +0200 In-Reply-To: <87im3r81so.fsf@trop.in> References: <87im3r81so.fsf@trop.in> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620727687; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=9aAW5k7UpkYk1kSTYFKkkdPFAidrBlLqaFYuDxxCIzs=; b=pNZkijBN5ZB9Qhho+syaHLEr+9mnTKiyp9YJRJr0rI6YJSdCqcOUWi9M9QEL9CrhERL9nt BWprkANUjsfO9N3lKvcc07exrD/tLLnKM50Qs1fepq4MTVwdPUdl6//DHjZXH60IisLt8Z GMSyk3ArnJom/xPpgjHAmr0vyxRh5AMKNX58HO590zslND4bcYt4Hue+RrZcNywrMwKkU0 wT8ayTK3XKeEdkuzaCysRNr+Ml57EMsstFw4uNyiR/jHWm2krFGiNXSs4NMNnrTpVJIW2q LtkWxjAzWu8JAKyQIOof1Ez5JNYJ5FPv1Tq5GqkGhnczSHLhcHZYHm9dfO8qhw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620727687; a=rsa-sha256; cv=none; b=YpMrDhr3kidRMTRl0CX6A5EzNSmGz0b/vlf2V/fY2yoWGzx6m9tNQet+TY+AMv0wa4/C7J v8weCVgMoDLldmIy01D8RiMvzo/D7cmnMtDSXOrQfZbabBV/5eVUkL0/DNCoNDFoiTSuqM YY8TS6taIGIeUbBfUyueuSFk9WfVtTMKi2SNWPy3IUPiOmd8CHSHNQxvWo+XxXvU1N6rHT CxsYDrBdGYdIxPN9PHoCuSTy9iLJ/WH2JEmryvo1bHMKwdn9Jf3f5Rw3WEETOWprVPYn0V qojKLIE/DYMURWoCYKgbiwBpObIrLvQzaSpIMh98IScsivfYi4E8TMqocBxYSg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=DaC4iMXD; dmarc=fail reason="SPF not aligned (relaxed)" header.from=student.tugraz.at (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.35 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=DaC4iMXD; dmarc=fail reason="SPF not aligned (relaxed)" header.from=student.tugraz.at (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 6CA7322C91 X-Spam-Score: -1.35 X-Migadu-Scanner: scn0.migadu.com X-TUID: DEdVzVQz3CkO Am Montag, den 10.05.2021, 10:51 +0300 schrieb Andrew Tropin: > describe-package and list-packages do not show emacs packages, > installed > with guix. Packages themselves work perfectly fine, but not listed in > list-packages and can't be accessed with describe-package. > > Way to reproduce: > > guix environment --pure --ad-hoc emacs emacs-treemacs > > emacs -q > > M-x treemacs ;; Works fine > C-h P treemacs ;; Doesn't work > M-x list-packages ;; Doesn't list treemacs > > Played around with it a little bit, still not sure how to solve. This mail brought me back to the good old days of 2018, when I was still using Gentoo and had to solve a similar issue. The problem here is, that Guix does not include the -pkg.el file, that would typically be generated by package.el. To deal with this, you have to provide package specs on your own. There already exists a utility to locate libraries in a package manager agnostic fashion [1], all you need to do is to feed back that information to package.el. I have now published emacs-dpd [2], which does exactly that. To use it for your Guix Emacs packages, execute (dpd (list "$GUIX_PROFILE/share/emacs/site-lisp" ...)) replacing "$GUIX_PROFILE" with the actual profile, after `package- initialize' has run with `dpd-fuzzy-recognize' in `dpd-recognize-hook'. I might write a more detailed README later. Neither packed nor dpd are currently packaged in Guix. packed can easily be imported from melpa-stable, but for dpd you'd have to write your own guix.scm. I might do that at some point as well. We already had modifications in emacs-build-system recently, so if you want to argue, that all Emacs packages should have that - pkg.el to work with package.el out of the box, I would ask you to wait, so as to not cause an "Emacs world" rebuild again after only ten days. I also don't know whether Guix has the same information as package.el at build time, but that might change with time as well. Particularly, there will hopefully be a move towards supplying name and version at build, which would give us the most important information. Regards, Leo [1] https://github.com/emacscollective/packed [2] https://gitlab.com/leoprikler/emacs-dpd