From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#14941: 24.3.50; package.el should lighten up wrt version specification Date: Tue, 23 Jul 2013 10:32:33 -0700 (PDT) Message-ID: <8b0062be-4eb9-4cfe-a994-5dbdeec4eb93@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1374601150 9108 80.91.229.3 (23 Jul 2013 17:39:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Jul 2013 17:39:10 +0000 (UTC) To: 14941@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 23 19:39:10 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V1gYH-0006ks-UW for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Jul 2013 19:39:10 +0200 Original-Received: from localhost ([::1]:55928 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1gYH-0003iw-IC for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Jul 2013 13:39:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1gYD-0003il-Eh for bug-gnu-emacs@gnu.org; Tue, 23 Jul 2013 13:39:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1gYB-0002cS-CP for bug-gnu-emacs@gnu.org; Tue, 23 Jul 2013 13:39:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50918) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1gYB-0002cM-6y for bug-gnu-emacs@gnu.org; Tue, 23 Jul 2013 13:39:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V1gYA-0003bx-Hp for bug-gnu-emacs@gnu.org; Tue, 23 Jul 2013 13:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Jul 2013 17:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14941 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.137460108513773 (code B ref -1); Tue, 23 Jul 2013 17:39:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Jul 2013 17:38:05 +0000 Original-Received: from localhost ([127.0.0.1]:45234 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V1gXF-0003a4-0T for submit@debbugs.gnu.org; Tue, 23 Jul 2013 13:38:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36856) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V1gXC-0003ZR-Lj for submit@debbugs.gnu.org; Tue, 23 Jul 2013 13:38:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1gX6-0002IZ-Ac for submit@debbugs.gnu.org; Tue, 23 Jul 2013 13:37:57 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:54556) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1gS3-0000AQ-Eh for submit@debbugs.gnu.org; Tue, 23 Jul 2013 13:32:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1gRz-0002mq-V4 for bug-gnu-emacs@gnu.org; Tue, 23 Jul 2013 13:32:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1gRw-00007Z-T8 for bug-gnu-emacs@gnu.org; Tue, 23 Jul 2013 13:32:39 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:34793) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1gRw-00007V-ML for bug-gnu-emacs@gnu.org; Tue, 23 Jul 2013 13:32:36 -0400 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r6NHWYE8024238 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 23 Jul 2013 17:32:36 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r6NHWXDP016741 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 23 Jul 2013 17:32:34 GMT Original-Received: from abhmt115.oracle.com (abhmt115.oracle.com [141.146.116.67]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r6NHWXbn023962 for ; Tue, 23 Jul 2013 17:32:33 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.7 (607090) [OL 12.0.6668.5000 (x86)] X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:76605 Archived-At: File headers are for human readers too, not just for tools. 1. `package-buffer-info' should treat "Version: " as "Version: 0" `package-buffer-info' has this code, which is the wrong thing to do: (let* ((requires-str (lm-header "package-requires")) ;; Prefer Package-Version; if defined, the package author ;; probably wants us to use it. Otherwise try Version. (pkg-version (or (package-strip-rcs-id (lm-header "package-version")) (package-strip-rcs-id (lm-header "version"))))) (unless pkg-version (error "Package lacks a \"Version\" or \"Package-Version\" header")) A user should be able to use "Version: ", i.e., specify explicitly that there is no version, and have that be treated the same as "Version: 0". Version is not just for package.el. It is a field that conveys versioning info to human readers. An empty Version field can be used to indicate explicitly that the file is not versioned. 2. More generally, package.el should treat the lack of a version spec the same way it currently treats version 0. If Package-Requires specifies "0" for some file, it means that ANY version of that file is OK, and that should apply also to a lack of a version spec for that file. Package-Requires should be able to specify that there is a dependency on a particular file, by name, but any copy of that file will do - any version or any copy that has no version specified. It is important to be able to express this kind of dependency - any foo.el and not any specific version of foo.el - and it in no way limits package.el to allow this. 3. In keeping with #2, package.el should allow Package-Requires, like Version, to lack a version number for a given file, and have that be interpreted as version "0" for that file, meaning that any version of the file will do. IOW, allow this: ;; Package-Requires ((foo.el)) to mean the same as this: ;; Package-Requires ((foo.el "0")) In GNU Emacs 24.3.50.1 (i686-pc-mingw32) of 2013-07-14 on ODIEONE Bzr revision: 113423 lekktu@gmail.com-20130715004922-i67tg2ois14h3fpm Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=3D/c/Devel/emacs/binary --enable-checking=3Dyes,glyphs CFLAGS=3D'-O0 -g3' CPPFLAGS=3D'-Ic:/Devel/emacs/include' LDFLAGS=3D'-Lc:/Devel/emacs/lib''