From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.bugs Subject: bug#59226: 29.0.50; unable to load package-vc.el if package-vc-selected-packages is non-nil Date: Sun, 20 Nov 2022 11:57:36 +0000 Message-ID: <87o7t1dej3.fsf@posteo.net> References: <87o7tbq3l6.fsf@gmail.com> <878rkd3h7u.fsf@posteo.net> <87iljf8ho5.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19167"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59226@debbugs.gnu.org To: Richard Kim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 20 12:58:27 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1owixv-0004nU-MB for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Nov 2022 12:58:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owixn-0007an-Qj; Sun, 20 Nov 2022 06:58:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1owixX-0007YU-4v for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2022 06:58:08 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1owixW-0003NJ-Ib for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2022 06:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1owixW-0008LI-El for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2022 06:58:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Nov 2022 11:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59226 X-GNU-PR-Package: emacs Original-Received: via spool by 59226-submit@debbugs.gnu.org id=B59226.166894546932048 (code B ref 59226); Sun, 20 Nov 2022 11:58:02 +0000 Original-Received: (at 59226) by debbugs.gnu.org; 20 Nov 2022 11:57:49 +0000 Original-Received: from localhost ([127.0.0.1]:42531 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owixJ-0008Kq-DF for submit@debbugs.gnu.org; Sun, 20 Nov 2022 06:57:49 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:56535) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owixG-0008Ka-Ns for 59226@debbugs.gnu.org; Sun, 20 Nov 2022 06:57:49 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id B2A15240104 for <59226@debbugs.gnu.org>; Sun, 20 Nov 2022 12:57:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1668945460; bh=pIOrFRq1Hh3qZ7dacngB/30x/4/NkagdVQ7CWwjpoxc=; h=From:To:Cc:Subject:Date:From; b=iPb7SGhgpK7h7SJ2VgQC+vOXLhXwgz3tvl9913OTqeIDnarHicVG8AOh0gXbaia0w F5swdpMDUhKOzBBdWm5EKJgNe+fMViRGBAutG4cUHSehf0bZUAV/Tp0YqgHXlxo2yQ +4I7kWakeSjIP+ii0o/0hBIzzjjf28pUQcsaDBAPyZfC+lbYl5E1BsjtQXh6LeycaW UHoMEoZwTHwqu4H6e8mjeRGmbsO+klbfXrj1xdD1MlXfC0yg8f+R/YscatLmiuynOz gjbZC0IB6Lwt/cVkqD0S4clCGqdFosx2uNXoz+9L20MuwTXWwvEHwk5paxFNk3CsAs FOn2qsvgKd/WA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NFTXy3j6Gz6tqx; Sun, 20 Nov 2022 12:57:36 +0100 (CET) In-Reply-To: (Richard Kim's message of "Sat, 19 Nov 2022 09:23:50 -0800") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:248417 Archived-At: Richard Kim writes: > Spacemacs is one large emacs > setup designed to be the initialization code, i.e., emacs > --init-directory spacemacs-directory. It uses use-package to install > typically hundreds of packages. > > straight.el is an > alternative to package.el where packages are installed by cloning git > (or other) repositories and building packages from source directly. > This is similar to package-vc.el. The key difference is that the git > clone directories are not added to load-path. Rather a new directory > is created where symlinks to *.el files are used plus byte compiled > files, e.g., following would be added to load-path: > > $ cd .../spacemacs/.local/straight/build-29.0-102921/dash/ > $ ls -l > total 360 > -rw-rw-r-- 1 kimr kimr 2936 Oct 29 22:04 dash-autoloads.el > lrwxrwxrwx 1 kimr kimr 63 Oct 29 22:04 dash.el -> > /home/kimr/.emacs.d/sm-ms/.local/straight/repos/dash.el/dash.el > -rw-rw-r-- 1 kimr kimr 147632 Oct 29 22:04 dash.elc > -rw-rw-r-- 1 kimr kimr 198812 Oct 29 22:04 dash.info > lrwxrwxrwx 1 kimr kimr 65 Oct 29 22:04 dash.texi -> > /home/kimr/.emacs.d/sm-ms/.local/straight/repos/dash.el/dash.texi > -rw-rw-r-- 1 kimr kimr 617 Oct 29 22:04 dir > $ Thanks for this explanation, I wasn't familiar with this detail. > I have an update to my previous email. I think I'm understanding > better how package-vc is supposed to work. So please disregard my > previous question on activation. Instead I would like to share that > package-vc seems to work fine except for packages that house *.el > files within a sub-directory, e.g., magit or git-commit packages which > use lisp sub-directories. For these packages I either have to install > magit package using package.el (even though I installed it via > package-vc) or I would have to manually add the lisp sub-directory to > load-path in my startup file. If I do that, then magit and git-commit > packages installed via package-vc work. Following is what I currently > have in my startup file to be able to use package-vc installed magit > and git-commit packages. > > (add-to-list 'load-path "~/.emacs.d/sm-my/elpa/29.0/site/git-commit/lisp") > (add-to-list 'load-path "~/.emacs.d/sm-my/elpa/29.0/site/magit/lisp") This _is_ handled, if the package specification has a `:lisp-dir' entry pointing to the right directory. If I had to guess, I'd say you are using MELPA and it is probably the first entry in `package-archives'? If so, the issue would be that MELPA doesn't provide any public package specifications, the way GNU ELPA and NonGNU ELPA do. What is probably required is some kind of a heuristic to detect a lisp directory, but I haven't come up with a good solution to that yet. > In my typical spacemacs setup, I have between 300 and 400 hundred > packages installed. I think more than half were installed via > package-vc and rest were installed via pacakge.el. I'm trying to see > if I can use package-vc to install all packages. It would be possible in theory, but note that package-vc installs dependencies using regular tarballs installations.