From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cy8LB+vImmC6IQEAgWs5BA (envelope-from ) for ; Tue, 11 May 2021 20:11:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id COHxAevImmAMTgAAbx9fmQ (envelope-from ) for ; Tue, 11 May 2021 18:11:55 +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 85F3017243 for ; Tue, 11 May 2021 20:11:54 +0200 (CEST) Received: from localhost ([::1]:46112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgWrJ-0003Zz-FB for larch@yhetil.org; Tue, 11 May 2021 14:11:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39008) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgUlm-00025B-S1 for bug-guix@gnu.org; Tue, 11 May 2021 11:58:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53864) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgUlm-0003FG-J7 for bug-guix@gnu.org; Tue, 11 May 2021 11:58:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lgUlm-0002hk-HW for bug-guix@gnu.org; Tue, 11 May 2021 11:58:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48331: Emacs' describe-package doesn't work for packages managed by guix Resent-From: Andrew Tropin Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 11 May 2021 15:58:02 +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: Leo Prikler Received: via spool by 48331-submit@debbugs.gnu.org id=B48331.162074865810362 (code B ref 48331); Tue, 11 May 2021 15:58:02 +0000 Received: (at 48331) by debbugs.gnu.org; 11 May 2021 15:57:38 +0000 Received: from localhost ([127.0.0.1]:37177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgUlN-0002h3-Kz for submit@debbugs.gnu.org; Tue, 11 May 2021 11:57:37 -0400 Received: from mail-qk1-f179.google.com ([209.85.222.179]:43573) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgUlL-0002gm-FP for 48331@debbugs.gnu.org; Tue, 11 May 2021 11:57:36 -0400 Received: by mail-qk1-f179.google.com with SMTP id a22so18635630qkl.10 for <48331@debbugs.gnu.org>; Tue, 11 May 2021 08:57:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop-in.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QbxjEEbfeiMzamdYCZoFeEELJ/GH0lJF8H6HQ+hOaxM=; b=ZvLDzILELPGxiM0HakvionoElEMPmmpiufm71mn74sLsePi+2VhxbDRe9cKnZrHdAr CdsqChAo6wK0i3uLmAHEKau6G37QD05CP24jg7bFvrZ9m3uNXCnYb44avIyyKvGoTE+d KHeAqXBepz6HFj66hpBm9sN3gLZshg7V1e4XyUxJdurlH6EyEnM4PtY4BHtDyx2i14AJ 4spx+h+z+SeNusMlM6LdglgTp60KJJFyfPi04pO2iI1ZNFSEH0FjVYy6kA/IsFL3fS+2 /UUQvtYuPWazQ4Fi4o0Hzg+zFybcZJCndMTvzdA8qQyaZXVqgnd5nxECjVkfy4EW2Nz6 pR2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QbxjEEbfeiMzamdYCZoFeEELJ/GH0lJF8H6HQ+hOaxM=; b=Egqzn7N+NStbZ+Q6cYIlcNkA8bE3OlY/6bsdwCwUgAxZhU/zIPfYqPUqN/0m2PYd9F /5xFvp7mf4ml+z2UCzdN3Db747Idwks5g8P410iEyHGbFQ6lbl1R+DElhOiDrDQnq/cO d6LNdUF96QWbYyxrrhAKJA0GCt3dj18f8PUEaXKF8YCC7uHf2CI4X/kMh6Op55mN/LQ6 TQAQCtqIRA0b0sd9I/jHWpiKeDsWf0INsL8uipceITunFi4UE+YEyxpfQ2Q8gkmuGS26 HPODYfWOsehvI3tS7yXeLZ9VJOKML50Mx1/tiVXRfztgmt3dbrwGTxtGi1oKB9EpKhZY raYg== X-Gm-Message-State: AOAM532C9gNyrf9i/79y6xRKp8esTd5vSabCrM5HXZeqAWtBZNFvFV3x KjnlSiUvxQUsQnoWK9doqXzVuU2IhYgU5/JN2roY3VjGhj8RJUCQ X-Google-Smtp-Source: ABdhPJy7g/M7Kh8EiZME98ZxKdSslP6MGMaK15v0EFDvwjhikEqwwTO0MtYJyeQ4rGfwFZEhGe4DcsUTp8kBlgiUVCI= X-Received: by 2002:a05:620a:126d:: with SMTP id b13mr7613105qkl.436.1620748649802; Tue, 11 May 2021 08:57:29 -0700 (PDT) MIME-Version: 1.0 References: <87im3r81so.fsf@trop.in> <78cfb495305fb1137da26e37a7ae5dd9467043bf.camel@student.tugraz.at> In-Reply-To: <78cfb495305fb1137da26e37a7ae5dd9467043bf.camel@student.tugraz.at> From: Andrew Tropin Date: Tue, 11 May 2021 18:57:18 +0300 Message-ID: Content-Type: text/plain; charset="UTF-8" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Tue, 11 May 2021 14:11:45 -0400 X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 48331@debbugs.gnu.org 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=1620756714; 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: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=QbxjEEbfeiMzamdYCZoFeEELJ/GH0lJF8H6HQ+hOaxM=; b=MXCU15mrpvOTRQVpk2DjDOpYdR/ylfjOG5Rn3tojLHOKycqCelEBNdeHBcd0NyvNyXSXSc 0TuXpnzRDpEsxGyoeoMgiYFBWuNZ7OP70GoEAfBqbe84eohMHG6V86JZBG4URzyklisEcD 8Kn4pFAwvvDTwzYdu1ZRDXlocraeE9OlmosCVN3SQKNoIUx0dNhxh5b/S9z0o2L2TnAvmi slG6UkCmycVgQydkdSl3g3df9235NvXKkclEG5NcmZHDLnFN4eNE6MGnjo0i/QIU1lZW5Z npUXTMjvTNkMNfQc0pcm2UtLx7D/f9cqqe/XGqBI/DO6KTOm9w6MFcMns4B8uQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620756714; a=rsa-sha256; cv=none; b=hM6pVO1eldiCl9D9ADpueOc3uzii0onhdxhbGF7hcOqn0pIHsiqpEobE94TB0Tncbnai36 ff8TgEWkwznSGVZ/QOpyvmsPEGjxzDqaJxwpBAH/6+gFZFZkIxppzRbE+GFj1wjzDCG6vW bq/mfCEvKDxkxlwcqtJ4BUgVecfmto3vr44lqLimLWgYaK0FtMObLG7LS2/F8BuJu37wwa 2fUkyvUgsctQZxgyFJUZQp+a1+VZVeHPmFBTt0vWIDbEhnYwEWzybdMpW/wlVQBdnCUGb1 vkkLuGIdcuEXJPxd9DuzGGr9fuE8jTrQ+pzFxMWZKVtuIiFrmhRvBHiHKLyKtA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop-in.20150623.gappssmtp.com header.s=20150623 header.b=ZvLDzILE; 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.45 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop-in.20150623.gappssmtp.com header.s=20150623 header.b=ZvLDzILE; dmarc=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: 85F3017243 X-Spam-Score: -1.45 X-Migadu-Scanner: scn0.migadu.com X-TUID: 83CmpwR/am0I > 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. Yep, I figured it out yesterday and even hacked around a little bit. Patched emacs-build-system to place packages under elpa/NAME-VERSION subdirectory and removed "-pkg\\.el$" from %default-exclude. > 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. Most of the packages already have -pkg.el in sources, but yep, pretty cool utility, also thought about implementing something like that yesterday, but luckily I didn't and now I do not need to do it, because now I'm aware of already-existing implementations!) > 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. Very cool, I didn't have the latest changes on my local checkout and didn't see your commits, but now I see, it is exactly what I needed. The only side note: it should be site-lisp/elpa/NAME-VERSION (right now it is site-lisp/NAME-VERSION). Also, on line 137 elpa-directory function can be used. When you will be updating the path, please remove -pkg.el from %default-exclude. Thank you very much for your work! Really appreciate it! -- Best regards, Andrew Tropin