From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#54747: 28.1.50; package.el - Better error message if newer Emacs is required Date: Fri, 08 Apr 2022 14:51:06 +0200 Message-ID: <874k33agcl.fsf@gnus.org> References: <9c7d2f03-5ee2-c5f8-e804-2c4dbf98a05e@daniel-mendler.de> <7647e4c3-2e5e-b09c-f9a7-aee42571e6d5@daniel-mendler.de> <874k35azgj.fsf_-_@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1179"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 54747@debbugs.gnu.org To: Daniel Mendler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 08 14:52:15 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 1nco62-00005D-VC for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 08 Apr 2022 14:52:15 +0200 Original-Received: from localhost ([::1]:57576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nco61-0007gd-TS for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 08 Apr 2022 08:52:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50434) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nco5q-0007gL-56 for bug-gnu-emacs@gnu.org; Fri, 08 Apr 2022 08:52:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40225) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nco5p-0004mR-RE for bug-gnu-emacs@gnu.org; Fri, 08 Apr 2022 08:52:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nco5p-0004kN-Ou for bug-gnu-emacs@gnu.org; Fri, 08 Apr 2022 08:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Apr 2022 12:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54747 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 54747-submit@debbugs.gnu.org id=B54747.164942228018198 (code B ref 54747); Fri, 08 Apr 2022 12:52:01 +0000 Original-Received: (at 54747) by debbugs.gnu.org; 8 Apr 2022 12:51:20 +0000 Original-Received: from localhost ([127.0.0.1]:34122 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nco59-0004jS-Vt for submit@debbugs.gnu.org; Fri, 08 Apr 2022 08:51:20 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:59950) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nco58-0004jE-5B for 54747@debbugs.gnu.org; Fri, 08 Apr 2022 08:51:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=7ZKdwLKK3R/YvntfaKLMt6iBVK0w+3/KBlTgQq0KQy8=; b=ZLZhVHUQKSdWyBoIdh9gfHHXGN VCMj5WcOLzeYFF1UJSJteDZF2pxC6cbRN2mNanXrQlXkU+eBUkFsxr5bNwjsBy2IcsJrgItAOb6Cg qDCj7ZOgKS6Eg2WJfsdxFZ93SA3iWFij0sJem2CAr+8C3RZgTwZeeb/bzuKrqlT7ywu4=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nco4z-0002uB-6C; Fri, 08 Apr 2022 14:51:11 +0200 X-Now-Playing: Plastikman & Chilly Gonzales's _Consumed In Key_: "Consume (In Key)" In-Reply-To: (Daniel Mendler's message of "Thu, 7 Apr 2022 13:55:31 +0200") 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" Xref: news.gmane.io gmane.emacs.bugs:229567 Archived-At: Daniel Mendler writes: > I am running Emacs 28 and I just went to `list-packages` and did `M-x > package-install` on a package marked as "incompat". For some weird > reason Emacs still installed the package while I would have expected an > error now? Is this another bug? Hm... I don't know. Let's see... The only one I have that's incompatible (in Emacs 29) is: helm-gitignore 20170211.8 incompat melpa Gener= ate .gitignore files with gitignore.io. And the `i' command just skips it, so that works, at least. And using `M-x package-install' on it just says Package =E2=80=98gitignore-mode-1.1.0=E2=80=99 is unavailable But I haven't tried this in Emacs 28. > Regarding the error messages - I think even experienced users could > profit from slightly improved error messages which explain dependency > resolution failure. > > - Package X version V requires package Y version W, which is > unavailable. The newest available version of Y is W'. > - Package X version V requires package Y, which is unavailable. The > package Y cannot be found in the archives. > - Package X version V requires package Y version W, which cannot be > installed. The dependency Z of Y cannot be satisfied. > - ... It does say some of that. Reading the code: (disabled (unless problem (setq problem (if (stringp disabled) (format-message "Package `%s' held at version %s, but version = %s required" next-pkg disabled (package-version-join next-version)) (format-message "Required package `%s' is disable= d" next-pkg))))) (t (setq found pkg-desc))))) (unless found (cond (problem (error "%s" problem)) (found-something (error "Need package `%s-%s', but only %s is available" next-pkg (package-version-join next-version) found-something)) (t --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no