From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 23 12:50:51 2025 Received: (at submit) by debbugs.gnu.org; 23 Jun 2025 16:50:51 +0000 Received: from localhost ([127.0.0.1]:56829 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uTkNe-0001xM-Tn for submit@debbugs.gnu.org; Mon, 23 Jun 2025 12:50:51 -0400 Received: from lists.gnu.org ([2001:470:142::17]:52918) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uTkNb-0001wN-67 for submit@debbugs.gnu.org; Mon, 23 Jun 2025 12:50:48 -0400 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 1uTkNT-0000TX-KM for bug-gnu-emacs@gnu.org; Mon, 23 Jun 2025 12:50:40 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uTkNQ-0007ww-PI for bug-gnu-emacs@gnu.org; Mon, 23 Jun 2025 12:50:38 -0400 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-442fda876a6so39798365e9.0 for ; Mon, 23 Jun 2025 09:50:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750697434; x=1751302234; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=Kx90BkPDqf1jVd5fLTC6STYuB+ncBT1Z0r46gPxuh8o=; b=Zw4G6CNH1nKuM+G+1v8j1hl5B8o6t9mHgAAAKlAf9dIjUrEUwzuOSHVCDfUeOEzwr1 EyGHsIXTw+BbGqgYaPpSdIvDPY4vz9933wETpbVnoMX7TVR9JX5J4X3t9XynjLd/9/DY yQbJpoJJ14k5OWCoNyIWv6pjmYAXQmraP1Y9/Cgg2cxV4v6Lt6tXwGKBDDuNLOCw6ZVX ejt9pOmyb0UevVU96DzfzRPcjlj4QM59lQue5N7LCjoCH4Oi4jTflChnhMprhZ9hYH7p 1QQoKPp4MRrvEKcmdnNJlXQj+xTwbPj44vH+9v58UWrLTHFlqoFuX/fs7muemwd4KjKE 8o+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750697434; x=1751302234; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Kx90BkPDqf1jVd5fLTC6STYuB+ncBT1Z0r46gPxuh8o=; b=aKD2a9GDihpyr1xDmxI4sgYi7ihMhc2BrL09kIsrU1mSNnGPaxWDpvRdxq0ENU+XIU sFNB/R1EHtB4CTvld1e8+2AB+f+x7qQLLaXPI26LLgU8hUFGjEEC4ICjO5gIdqP3nKzJ y9o85uvMvKUzNC6AESjvF6ftJ7XhdHh7KUL6W/29EA/diyjvmZ4BjshiByuY9PtUrsmp qI9JWkTa74+/3fX4DD+XNx/4jacXFDXUXvZQS44ivj3cECFr7xukw+Ghnpyu2npZrIv3 7uBG4OriIH5WdXeEc6r8W0OReWHgehJrxKjYpplbc9BsFV1lGAHmDfzltkqSbnW89JDM vobg== X-Gm-Message-State: AOJu0YxdNZoiVREBRwOjWj4knJ2lePx2/Nj2txQEhFKwQ35OT/u6+C5G 8L6bmDJ9yZBTFUM3btxMYKRfL7P4HOznS5lbHKchMLjviG3WIdGJDd38zSZJdA== X-Gm-Gg: ASbGncsMAKQJt9WCw7UIG0mBrj/8P1fQeiaXxsQ3+OIneS8uFsWLXcA93Rw46BmTfVT zb1UvafE0g8GxV6+orUaek4D38aqggJJTUbeL98VDwthMYTUIJb3ZMqRlxMrd1m2PopfBdlj+bC RnsR/4J4pKza/uqNy7vD31KVfa/EAcI4BkmKoNvAqm+iyFfeGmFwwu7xeDjEI74XtmvkBMXznrT oA7oj+0AkvtZpk3VCLvEQBcVP3nyZMs3C4889T7sUixmpYyNn3AvXvW4vGd3Vona5ZRCGLc4Udu LkM4fxgzfCxsn4/xrVph1o0rFg3SKsA4n/fI3hI1EQgzwv50IOqwojJjJIFwdyNgNh5I2Pc= X-Google-Smtp-Source: AGHT+IH78BCCkER79ElUm6Zq2JXlF+WREZiFY5VKh+B7C/DKu2rVQoSPgRejoUZFLeK3a9CcxUnqZQ== X-Received: by 2002:a05:6000:4028:b0:3a5:27ba:47c7 with SMTP id ffacd0b85a97d-3a6d12eb400mr10760302f8f.48.1750697434110; Mon, 23 Jun 2025 09:50:34 -0700 (PDT) Received: from localhost ([84.79.192.255]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-453646fd816sm116161565e9.24.2025.06.23.09.50.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Jun 2025 09:50:33 -0700 (PDT) From: Roi Martin To: bug-gnu-emacs@gnu.org Subject: 31.0.50; Command `package-vc-rebuild' fails with error '(wrong-type-argument stringp nil)' X-Debbugs-Cc: philipk@posteo.net Date: Mon, 23 Jun 2025 18:50:26 +0200 Message-ID: <87ldpiv1v1.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=jroi.martin@gmail.com; helo=mail-wm1-x331.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) After installing a package using `package-vc-install-from-checkout', `package-vc-rebuild' fails with error '(wrong-type-argument stringp nil)'. The error can be reproduced following these steps: emacs -Q --init-directory=/tmp/package-vc-bug M-x package-vc-install-from-checkout /path/to/pkg-foo RET M-x package-vc-rebuild pkg-foo RET Which produces the following backtrace: Debugger entered--Lisp error: (wrong-type-argument stringp nil) vc-file-getprop(nil vc-working-revision) vc-working-revision(nil) package-vc--unpack-1(#s(package-desc :name pkg-foo :version (0) :summary "No description available." :reqs nil :kind vc :archive nil :dir "/tmp/package-vc-bug/elpa/pkg-foo/" :extras ((:commit . "unknown")) :signed nil) "/tmp/package-vc-bug/elpa/pkg-foo/") package-vc-rebuild(#s(package-desc :name pkg-foo :version (0) :summary "No description available." :reqs nil :kind vc :archive nil :dir "/tmp/package-vc-bug/elpa/pkg-foo/" :extras ((:commit . "unknown")) :signed nil)) funcall-interactively(package-vc-rebuild #s(package-desc :name pkg-foo :version (0) :summary "No description available." :reqs nil :kind vc :archive nil :dir "/tmp/package-vc-bug/elpa/pkg-foo/" :extras ((:commit . "unknown")) :signed nil)) command-execute(package-vc-rebuild record) execute-extended-command(nil "package-vc-rebuild" nil) funcall-interactively(execute-extended-command nil "package-vc-rebuild" nil) command-execute(execute-extended-command) Where pkg-foo is a dummy package exposing a couple of functions. I think this bug could be related to the changes installed as part of Bug#78017. Tested in: GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.49, cairo version 1.18.2) of 2025-06-23 built on wopr Repository revision: 1a8e8203a158f6bdc74e38f2cdb3214b6c06b9d8 Repository branch: master From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 26 16:45:06 2025 Received: (at 78877) by debbugs.gnu.org; 26 Jun 2025 20:45:06 +0000 Received: from localhost ([127.0.0.1]:54460 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uUtSy-0001C0-GP for submit@debbugs.gnu.org; Thu, 26 Jun 2025 16:45:06 -0400 Received: from mout01.posteo.de ([185.67.36.65]:59975) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uUtSu-00019r-9R for 78877@debbugs.gnu.org; Thu, 26 Jun 2025 16:45:01 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 9B77F240027 for <78877@debbugs.gnu.org>; Thu, 26 Jun 2025 22:44:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=posteo.net; s=1984.ea087b; t=1750970692; bh=jXE9IObfj/WIT4AWZAzJMbEjoI+VlfTxayPFmOa0B+o=; h=From:To:Cc:Subject:Autocrypt:OpenPGP:Date:Message-ID:MIME-Version: Content-Type:From; b=Z4dzs2MbCiUxAKIPmw25jCyd3495aeAgWMz/W+ZDp3cTvNpflq02LJoWoCykT6fn9 7aHjfir+FYtzpFvkgiwJ3Z8OYvlW+3XXRH9yQXz8nDQ7dMAI58zdYfkxfVWvWOYw7O Du3mKqWzYD7BrGd5bhgY8FyXUpjbLFOq+Cc5Li2f7Rh1PbX+nt3iPCF16OT10H4ANC 4a8GDGFsofEDF2J+M7ghMy0EwVikzfXzXmyQbRP3yNPleeJwqH5ByrIvxQtLvtzF4D 1X5FzRwe38AHtbKF07FO1lRBu8hF1vHejteMDnqugGBnX9WVvFZyMSgwG/7zc2taLu Dxsa56DhqxBfKHg2eBg+8/YxXAVO1m1H3+NqYmVr+M76U4Y+o8pRHGhVKn+NbO/v8K o8LVd7DIDHlHdHljqlxFhBbqKRglQq4bTZnGYyPWV7yr9vPBLRXGQ4lBdTNOCvflMz B5U57xTTtqL8qDhSw4DKbjHRAuUj/hbRJ4j9KVGKkJiOWnFQ7ge Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4bSrKJ03nJz6tsf; Thu, 26 Jun 2025 22:44:51 +0200 (CEST) From: Philip Kaludercic To: Roi Martin Subject: Re: bug#78877: 31.0.50; Command `package-vc-rebuild' fails with error '(wrong-type-argument stringp nil)' In-Reply-To: <87ldpiv1v1.fsf@gmail.com> References: <87ldpiv1v1.fsf@gmail.com> Autocrypt: addr=philipk@posteo.net; keydata= mDMEZBBQQhYJKwYBBAHaRw8BAQdAHJuofBrfqFh12uQu0Yi7mrl525F28eTmwUDflFNmdui0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiWBBMWCAA+FiEEDg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwMFCQHhM4AFCwkI BwIGFQoJCAsCBBYCAwECHgECF4AACgkQ8xYDWXahwulikAEA77hloUiSrXgFkUVJhlKBpLCHUjA0 mWZ9j9w5d08+jVwBAK6c4iGP7j+/PhbkxaEKa4V3MzIl7zJkcNNjHCXmvFcEuDgEZBBQQhIKKwYB BAGXVQEFAQEHQI5NLiLRjZy3OfSt1dhCmFyn+fN/QKELUYQetiaoe+MMAwEIB4h+BBgWCAAmFiEE Dg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwwFCQHhM4AACgkQ8xYDWXahwukm+wEA8cml4JpK NeAu65rg+auKrPOP6TP/4YWRCTIvuYDm0joBALw98AMz7/qMHvSCeU/hw9PL6u6R2EScxtpKnWof z4oM OpenPGP: id=philipk@posteo.net; url="https://keys.openpgp.org/vks/v1/by-email/philipk@posteo.net"; preference=signencrypt Date: Thu, 26 Jun 2025 20:44:51 +0000 Message-ID: <874iw2cjwc.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 78877 Cc: 78877@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Roi Martin writes: > After installing a package using `package-vc-install-from-checkout', > `package-vc-rebuild' fails with error '(wrong-type-argument stringp nil)'. > > The error can be reproduced following these steps: > > emacs -Q --init-directory=/tmp/package-vc-bug > M-x package-vc-install-from-checkout /path/to/pkg-foo RET > M-x package-vc-rebuild pkg-foo RET > > Which produces the following backtrace: > > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > vc-file-getprop(nil vc-working-revision) > vc-working-revision(nil) The critical issue seems to be this line, right? We didn't find a main file, but wanted determine the revision of that file. > package-vc--unpack-1(#s(package-desc :name pkg-foo :version (0) :summary "No description available." :reqs nil :kind vc :archive nil :dir "/tmp/package-vc-bug/elpa/pkg-foo/" :extras ((:commit . "unknown")) :signed nil) "/tmp/package-vc-bug/elpa/pkg-foo/") > package-vc-rebuild(#s(package-desc :name pkg-foo :version (0) :summary "No description available." :reqs nil :kind vc :archive nil :dir "/tmp/package-vc-bug/elpa/pkg-foo/" :extras ((:commit . "unknown")) :signed nil)) > funcall-interactively(package-vc-rebuild #s(package-desc :name pkg-foo :version (0) :summary "No description available." :reqs nil :kind vc :archive nil :dir "/tmp/package-vc-bug/elpa/pkg-foo/" :extras ((:commit . "unknown")) :signed nil)) > command-execute(package-vc-rebuild record) > execute-extended-command(nil "package-vc-rebuild" nil) > funcall-interactively(execute-extended-command nil "package-vc-rebuild" nil) > command-execute(execute-extended-command) > > Where pkg-foo is a dummy package exposing a couple of functions. What was the file structure of the package. > I think this bug could be related to the changes installed as part of > Bug#78017. Could you elaborate your suspicion? > Tested in: > > GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version > 3.24.49, cairo version 1.18.2) of 2025-06-23 built on wopr > Repository revision: 1a8e8203a158f6bdc74e38f2cdb3214b6c06b9d8 > Repository branch: master From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 26 17:32:40 2025 Received: (at 78877) by debbugs.gnu.org; 26 Jun 2025 21:32:40 +0000 Received: from localhost ([127.0.0.1]:54545 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uUuD1-0008At-L2 for submit@debbugs.gnu.org; Thu, 26 Jun 2025 17:32:40 -0400 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:45290) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uUuCw-00088o-35 for 78877@debbugs.gnu.org; Thu, 26 Jun 2025 17:32:36 -0400 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-453066fad06so9064905e9.2 for <78877@debbugs.gnu.org>; Thu, 26 Jun 2025 14:32:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750973548; x=1751578348; darn=debbugs.gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=XGv2L1EIYsXndaBUJ5YTb84paT02fBFQbY4et8Ch0eE=; b=LqRQEPl+u6XRtt0WxuH0bJBsoMhgsjQYdwUmaQVDZLLSncFase9+yeTUAhf888ff11 FYFGrv0CCL8Bh6Y0BtekYBoVQ52BK+JZu2aCPdLEMJdqivD+oC/3Mtk2m2Gt6Si1E2OJ 0sbnkyorgHs+lxJloe6mhsWR8Xpo539SeAOjR8EOVaqGyj8TNAeckANWnEi703QNAvxu eZQ98MfBQy8ZhXNgyBoJy5c1WhBJdOhwmhndrRU+tlt+gKsed7fP6Uhdf40PnsEV1YBW g9C84iA1ldjFY5m2ytAsyG164dAr+yUgID2yrKs0cZ1L/K7OFca1l0HbI6svSpTBIVfw ATOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750973548; x=1751578348; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XGv2L1EIYsXndaBUJ5YTb84paT02fBFQbY4et8Ch0eE=; b=w0WFhw4/cwbhD/GX5g0bmFQIm8FM6hdXTvXGqipoVygSdmeB5RZWPCmbwn2KjSkKWe BCCdsyYLZwn/SpWJjtfpBfk3beaJw2hkpKcTcFHNVKy94jSRm6eZfDRE+nPtvtmsSMM4 cIdBI/BXXQt/BDT4PockKriMNVsDj60BEwZPLpkq8IN8YL3RtXTCZznwZFmFzIu8a43z o3xrniuF88j/c4GCUWmLp6geOj/GFNGvBB3fOv/syyRktFuH+JbUrh61fbbQT05rFyaw Vyqly57KVBpr23+b9JYJrVx6Ls/4jDn74Vryz7UJ71/4IQm1T7tH2tdsj0c/7kzZp7zM N03g== X-Gm-Message-State: AOJu0Yw5ecSFE5SH8A63FD+8QdUEHllqMYE2/v6oIimg5+/hJsH+K5bK gD/Ti1WF5iBYwBNH46D0zkml8b9D8wnP1gyup1RTHvoVvUNGy1wYugW6 X-Gm-Gg: ASbGncuNM4ZWVRU5NvP39mRnn1Glr+FR1Gs9kowZfSaS1l+7oiAi1MEmUZFoRCcmX0C PRUastwKpFNVbxsXS1CnmwzYDjSL3XJ78+Kol0+TmaW5nVpFCgOSkZ2Y8RMHX/AMi0qUvFxe4NA Aqxh0SJWNosOsWouzwSPjeZiLbHRUSzB0wWpd0bhZsK6bQmqbAn0M67PvTrWmMFn1FU1qXgrn7f dBXisxktAObrzoZhcBfOXbd9nNo2v2vLCHL4rJQzlb/N7mUtQwM8dl+e6ysNED/AszB1W/lNbWt mgWH1ofo/ofqFNkH0Uj6hFGTQDUk8cG1CoXsvW11QzQEhPebId4ecgwX9m9K X-Google-Smtp-Source: AGHT+IFzxAiUMe3eiD/D86fmTx8lj9DTlS/OjlMJ3VOfAB0hgdLWDgpbYov8jJKSppGYARpwm6H8tQ== X-Received: by 2002:a05:6000:4028:b0:3a4:e393:11e2 with SMTP id ffacd0b85a97d-3a8ffccac49mr901458f8f.34.1750973547385; Thu, 26 Jun 2025 14:32:27 -0700 (PDT) Received: from localhost ([84.79.192.255]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a88c7e7814sm894876f8f.8.2025.06.26.14.32.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Jun 2025 14:32:27 -0700 (PDT) From: Roi Martin To: Philip Kaludercic Subject: Re: bug#78877: 31.0.50; Command `package-vc-rebuild' fails with error '(wrong-type-argument stringp nil)' In-Reply-To: <874iw2cjwc.fsf@posteo.net> References: <87ldpiv1v1.fsf@gmail.com> <874iw2cjwc.fsf@posteo.net> Date: Thu, 26 Jun 2025 23:32:22 +0200 Message-ID: <87zfduxk7t.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78877 Cc: 78877@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Philip Kaludercic 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: /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") /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 From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 26 17:39:18 2025 Received: (at 78877) by debbugs.gnu.org; 26 Jun 2025 21:39:18 +0000 Received: from localhost ([127.0.0.1]:54578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uUuJS-0000pJ-0a for submit@debbugs.gnu.org; Thu, 26 Jun 2025 17:39:18 -0400 Received: from mout01.posteo.de ([185.67.36.65]:46529) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uUuJN-0000nf-V7 for 78877@debbugs.gnu.org; Thu, 26 Jun 2025 17:39:15 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 7ED5F240027 for <78877@debbugs.gnu.org>; Thu, 26 Jun 2025 23:39:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=posteo.net; s=1984.ea087b; t=1750973947; bh=d+MPPbwJcNQMhEW12mS0gyKq647FlXADsdTrAgFQbao=; h=From:To:Cc:Subject:Autocrypt:OpenPGP:Date:Message-ID:MIME-Version: Content-Type:From; b=Rs4juwhDYsvlsKhXjUWYoF8AVlgjUeuCq58H0JB5WOi4ueg/SZwbWKgzjqwzV6xlY bNw4zzlcsLMmMM43egTIrRAZcjXnWWl9F9iD4VB0IHGaUt3SDyGrqcrC3MicHc3L/n bzJQpWcQHrbWrBhNQI9qFGSRa4xWhuT5Ry7fiISR5r3putaUTzVbVI8CAEGo7DcN77 S3JEuMLXVi9G28qRcLCCJrGy7r6NN3z2oVPlpvye8z8SC/b+td9dxltUwskunG6zit tYhzejnpV3hu+ADWM3OgqURNE+vc/onp0h3wcBaQgCUnr/V0jDf8nYV8QufE7Q5RPo I6jCxkpXXIhFiiggeFcYBvTPVMW8sYKF0065pegJS2RGflaj+iSNzYRKyNOipaE76n AmsUV8n8jsl3V9XU5IjVJFRCX3yKv1tgl9NGUXsNFxrF5dbTb6INeNwJwjV8v0YJrh Uu6QzGacw/wHdLLJGG9KJSAQAHRiWm4gEsMoMUcMkcdhzjDWZ0y Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4bSsWt6wD7z9rxD; Thu, 26 Jun 2025 23:39:06 +0200 (CEST) From: Philip Kaludercic To: Roi Martin Subject: Re: bug#78877: 31.0.50; Command `package-vc-rebuild' fails with error '(wrong-type-argument stringp nil)' In-Reply-To: <87zfduxk7t.fsf@gmail.com> References: <87ldpiv1v1.fsf@gmail.com> <874iw2cjwc.fsf@posteo.net> <87zfduxk7t.fsf@gmail.com> Autocrypt: addr=philipk@posteo.net; keydata= mDMEZBBQQhYJKwYBBAHaRw8BAQdAHJuofBrfqFh12uQu0Yi7mrl525F28eTmwUDflFNmdui0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiWBBMWCAA+FiEEDg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwMFCQHhM4AFCwkI BwIGFQoJCAsCBBYCAwECHgECF4AACgkQ8xYDWXahwulikAEA77hloUiSrXgFkUVJhlKBpLCHUjA0 mWZ9j9w5d08+jVwBAK6c4iGP7j+/PhbkxaEKa4V3MzIl7zJkcNNjHCXmvFcEuDgEZBBQQhIKKwYB BAGXVQEFAQEHQI5NLiLRjZy3OfSt1dhCmFyn+fN/QKELUYQetiaoe+MMAwEIB4h+BBgWCAAmFiEE Dg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwwFCQHhM4AACgkQ8xYDWXahwukm+wEA8cml4JpK NeAu65rg+auKrPOP6TP/4YWRCTIvuYDm0joBALw98AMz7/qMHvSCeU/hw9PL6u6R2EScxtpKnWof z4oM OpenPGP: id=philipk@posteo.net; url="https://keys.openpgp.org/vks/v1/by-email/philipk@posteo.net"; preference=signencrypt Date: Thu, 26 Jun 2025 21:39:06 +0000 Message-ID: <87v7oib2th.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 78877 Cc: 78877@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Roi Martin writes: > Philip Kaludercic 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: > > /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") > > /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? Of course, that does make sense and is an issue that the change seems to have introduced. I will take a look at how we can improve this, probably by trying to follow the indirection when looking for a main file... > Roi