Package: irony-mode
Version: 0.1.2-2
Severity: grave
Justification: renders package unusable

Dear Maintainer,

The irony-mode package doesn't work.  In emacs, when you go:

  M-x irony-mode

You get the following error:

  command-execute: Cannot open load file: no such file or directory,
  irony-mode

This is because the shim at

  /etc/emacs/site-start.d/50irony-mode.el

attempts to load the wrong file.  It attempst to load "irony-mode.el",
whereas the main irony-mode file is called "irony.el".  `reportbug` has
helpfully included the modified 50irony-mode.el below.  Critically,
this is the change:

  (autoload 'irony-mode "irony" ; <-- used to be "irony-mode" here
        "Minor mode for clang based C/C++ completion." t)

Kind regards,

Tim.


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.5.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages irony-mode depends on:
ii  emacsen-common  2.0.8
ii  libc6           2.22-9
ii  libclang1-3.6   1:3.6.2-3
ii  libgcc1         1:6.1.1-3
ii  libstdc++6      6.1.1-3

irony-mode recommends no packages.

irony-mode suggests no packages.

-- Configuration Files:
/etc/emacs/site-start.d/50irony-mode.el changed:
;; -*-emacs-lisp-*-
;;
;; Emacs startup file, e.g.  /etc/emacs/site-start.d/50irony-mode.el
;; for the Debian irony-mode package
;;
;; Originally contributed by Nils Naumann <naum...@unileoben.ac.at>
;; Modified by Dirk Eddelbuettel <e...@debian.org>
;; Adapted for dh-make by Jim Van Zandt <j...@debian.org>
;; The irony-mode package follows the Debian/GNU Linux 'emacsen' policy and
;; byte-compiles its elisp files for each 'emacs flavor' (emacs19,
;; xemacs19, emacs20, xemacs20...).  The compiled code is then
;; installed in a subdirectory of the respective site-lisp directory.
;; We have to add this to the load-path:
(let ((package-dir (concat "/usr/share/"
                           (symbol-name debian-emacs-flavor)
                           "/site-lisp/irony-mode")))
;; If package-dir does not exist, the irony-mode package must have
;; removed but not purged, and we should skip the setup.
  (when (file-directory-p package-dir)
    (if (fboundp 'debian-pkg-add-load-path-item)
        (debian-pkg-add-load-path-item package-dir)
      (setq load-path (cons package-dir load-path)))
    (autoload 'irony-mode "irony"
      "Minor mode for clang based C/C++ completion." t)))


-- no debconf information

Reply via email to