GNU bug report logs - #78877
31.0.50; Command `package-vc-rebuild' fails with error '(wrong-type-argument stringp nil)'

Previous Next

Package: emacs;

Reported by: Roi Martin <jroi.martin <at> gmail.com>

Date: Mon, 23 Jun 2025 16:51:02 UTC

Severity: normal

Found in version 31.0.50

Full log


Message #11 received at 78877 <at> debbugs.gnu.org (full text, mbox):

From: Roi Martin <jroi.martin <at> gmail.com>
To: Philip Kaludercic <philipk <at> posteo.net>
Cc: 78877 <at> debbugs.gnu.org
Subject: Re: bug#78877: 31.0.50; Command `package-vc-rebuild' fails with
 error '(wrong-type-argument stringp nil)'
Date: Thu, 26 Jun 2025 23:32:22 +0200
Philip Kaludercic <philipk <at> posteo.net> writes:

>> I think this bug could be related to the changes installed as part of
>> Bug#78017.
>
> Could you elaborate your suspicion?

The commit 4226eb2b2040 "Avoid using symbolic links when installing
local VC packages" replaced symlinks with autoload indirections.  So,
now the directory created by `package-vc-install-from-checkout' contains
the following files in my test:

<user-emacs-directory>/elpa/pkg-foo/pkg-foo-pkg.el

  ;;; Generated package description from pkg-foo.el  -*- no-byte-compile: t -*-
  (define-package "pkg-foo" "0" "No description available." 'nil :kind vc :commit "85d90568599b3716295fe44b4611b5b31cd3b611")

<user-emacs-directory>/elpa/pkg-foo/pkg-foo-autoloads.el

  ;; Autoload indirection for package-vc
  
  (load (expand-file-name "/home/n/tmp/pkg-foo/pkg-foo-autoloads.el" (or (and load-file-name (file-name-directory load-file-name)) (car load-path))))

My suspicion is that after this change, `package-vc--main-file' cannot
find a main file in that directory anymore.  Does it make sense?

        Roi




This bug report was last modified 30 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.