Subject: bug#14704: closed (Re: bug#14704: 24.3.50; cl-lib breaks built-in Emacs version)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 25 Jun 2013 16:28:03 +0000

Your bug report

#14704: 24.3.50; cl-lib breaks built-in Emacs version

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
14704: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14704
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#14704: 24.3.50; cl-lib breaks built-in Emacs version
From: Stefan Monnier <[email-masked]>
To: Sebastian Wiesner <[email-masked]>
Cc: [email-masked]
Date: Tue, 25 Jun 2013 12:27:39 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

ELISP> (require 'cl-lib)
> cl-lib
ELISP> (package-built-in-p 'emacs (version-to-list "24.1"))
> nil
ELISP> (assq 'emacs package--builtin-versions)
> (emacs 2 2)

Thanks, should be fixed now,

        Stefan

Subject: 24.3.50; cl-lib breaks built-in Emacs version
From: Sebastian Wiesner <[email-masked]>
To: [email-masked]
Date: Mon, 24 Jun 2013 17:30:47 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

"(require 'cl-lib)" breaks the Emacs version information for
package.el.  In "emacs -Q", "M-x ielm":

ELISP> (package-initialize)
t
ELISP> (package-built-in-p 'emacs (version-to-list "24.1"))
t
ELISP> (assq 'emacs package--builtin-versions)
(emacs 24 3 50)

ELISP> (require 'cl-lib)
cl-lib
ELISP> (package-built-in-p 'emacs (version-to-list "24.1"))
nil
ELISP> (assq 'emacs package--builtin-versions)
(emacs 2 2)

This breaks dependency resolution for packages which depend against a
certain Emacs version.

These incorrect entries in package--builtin-versions come from
"cl-loaddefs.el", which contains two instances of the following line:

(push (purecopy (quote (emacs 2 2))) package--builtin-versions)

These lines are apparently extracted from the package headers of
"cl-macs.el" and "cl-seq.el" which look like the following:

;; Author: Dave Gillespie <[email-masked]>
;; Version: 2.02
;; Keywords: extensions
;; Package: emacs

This meta information is obviously wrong.

This is the 3rd critical package.el bug I discovered within just a week
or so.  Don't you test your code?!