Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1040690: emacs-el: Warnings resulting from org-mode source files not found

75 views
Skip to first unread message

Balbir Thomas

unread,
Jul 9, 2023, 8:20:05 AM7/9/23
to
Package: emacs-el
Version: 1:28.2+1-15
Severity: normal

Dear Maintainer,

On starting emacs 28 in bookworm various warnings are displayed because
elisp source files (mostly for) org-mode are not found.

There are broken symlinks to source files in the directory /usr/share/emacs/site-lisp/elpa/org-9.4/
The symlinks point to files in the directory /usr/share/emacs/site-lisp/elpa-src/org-9.4/ which
does not exist.

Listed below are the warning messages
-------------------------

Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/dash-2.17.0/dash.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/esxml-0.3.5/esxml-query.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/org.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/org-macs.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/org-compat.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/org-keys.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/ol.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/org-table.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/ob-emacs-lisp.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/ob-core.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/ob-eval.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/org.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/org-entities.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/org-faces.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/org-list.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/org-pcomplete.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/org-src.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/ob-comint.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/org-footnote.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/org-macro.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/ob.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/ob-exp.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/ob-table.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/ob-lob.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/ob-ref.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/ob-tangle.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/ob-R.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/ob-shell.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/ob-dot.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/ob-julia.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/ob-spice.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/ob-ditaa.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/org.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/ob-latex.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/ob-octave.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/ob-python.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/ob-maxima.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/ob-fortran.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/org-9.4/ob-gnuplot.elc Disable showing Disable logging
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/markdown-mode-2.4/markdown-mode.elc Disable showing Disable logging
-------------------------

-- System Information:
Debian Release: 12.0
APT prefers stable-security
APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-10-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages emacs-el depends on:
ii emacs-common 1:28.2+1-15

emacs-el recommends no packages.

emacs-el suggests no packages.

-- no debconf information

Nicholas D Steeves

unread,
Jul 9, 2023, 3:41:11 PM7/9/23
to
Control: tag -1 confirmed
Control: tag -1 affects dh-elpa
Control: tag -1 severity important
# Justification: Causes packages to not upgrade cleanly

Hello,

Balbir Thomas <balbir...@gmail.com> writes:

> Package: emacs-el
> Version: 1:28.2+1-15
> Severity: normal
>
> Dear Maintainer,
>
> On starting emacs 28 in bookworm various warnings are displayed because
> elisp source files (mostly for) org-mode are not found.
[snip]

Thank you for filing this bug Balbir! I wonder if you reported this
against emacs-el, because your hypothesis is that this is an
Emacs28-related bug? Two things that stand out in your list to me are
esxml, and markdown-mode, because these are elpa-only packages that
don't overlap with files provided by emacs-el. Consequently, I wonder
if this bug is on the dh-elpa side rather than the emacs-el side.

I have the following list, with the notable omission of org mode,
because I had uninstalled elpa-org before upgrading from bullseye to
bookworm:

/usr/share/emacs/site-lisp/elpa/seq-2.22/seq.elc
/usr/share/emacs/site-lisp/elpa/seq-2.22/seq-25.elc
/usr/share/emacs/site-lisp/elpa/git-commit-2.99.0/git-commit.elc
/usr/share/emacs/site-lisp/elpa/dash-2.17.0/dash.elc
/usr/share/emacs/site-lisp/elpa/transient-0.2.0.30/transient.elc
/usr/share/emacs/site-lisp/elpa/async-1.9.3/async-bytecomp.elc
/usr/share/emacs/site-lisp/elpa/async-1.9.3/async.elc
/usr/share/emacs/site-lisp/elpa/with-editor-3.0.2/with-editor.elc
/usr/share/emacs/site-lisp/elpa/hl-todo-3.1.2/hl-todo.elc

> There are broken symlinks to source files in the directory /usr/share/emacs/site-lisp/elpa/org-9.4/
> The symlinks point to files in the directory /usr/share/emacs/site-lisp/elpa-src/org-9.4/ which
> does not exist.

I suspect bullseye2bookworm is a trigger condition, and here an example
of where things get weird:

Given /usr/share/emacs/site-lisp/elpa/with-editor-3.0.2/with-editor.elc
# dpkg -S /usr/share/emacs/site-lisp/elpa/with-editor-3.0.2/with-editor.elc
dpkg-query: no path found matching pattern /usr/share/emacs/site-lisp/elpa/with-editor-3.0.2/with-editor.elc
# cruft /usr/share/emacs/site-lisp/
returns no matches

Cruft should find matches, but doesn't ! Yes, I've also done a full
cruft run, and have grepped for with-editor, for example.

One final bit of data:

Your list has

/usr/share/emacs/site-lisp/elpa/markdown-mode-2.4/markdown-mode.elc

but mine doesn't. I remember that I had manually upgraded to
elpa-markdown 2.5 long ago, so this was the version that was present
during the bullseye2bookworm upgrade. Consequently, it seems that the
version of the elpa-foo package needs to change during bullseye2bookworm
process in order to trigger this bug.


'hope this helps identify what's going on!
Regards,
Nicholas
signature.asc

Richard Lewis

unread,
Jul 10, 2023, 3:10:05 PM7/10/23
to
i've only ever run stable, i get the following list

Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/helpful-0.18/helpful.elc Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/elisp-refs-1.3/elisp-refs.elc Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/dash-2.17.0/dash.elc Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/loop-1.3/loop.elc
Warning (comp): Cannot look-up eln file as no source file was found for /usr/share/emacs/site-lisp/elpa/dash-functional-1.2.0/dash-functional.elc

Richard Lewis

unread,
Jul 10, 2023, 5:20:04 PM7/10/23
to
On Mon, 10 Jul 2023 20:07:30 +0100 Richard Lewis <richard.le...@googlemail.com> wrote:
> i've only ever run stable, i get the following list
>
> Warning (comp): Cannot look-up eln file as no source file was found for
> /usr/share/emacs/site-lisp/elpa/helpful-0.18/helpful.elc Warning (comp):

> Cannot look-up eln file as no source file was found for
> /usr/share/emacs/site-lisp/elpa/elisp-refs-1.3/elisp-refs.elc Warning

> (comp): Cannot look-up eln file as no source file was found for
> /usr/share/emacs/site-lisp/elpa/dash-2.17.0/dash.elc Warning (comp): Cannot

> look-up eln file as no source file was found for
> /usr/share/emacs/site-lisp/elpa/loop-1.3/loop.elc

> Warning (comp): Cannot look-up eln file as no source file was found for
> /usr/share/emacs/site-lisp/elpa/dash-functional-1.2.0/dash-functional.elc
 
And elpa-dash-functional, elpa-loop, elpa-transient were all purged when i upgraded to bookworm (same aptitude run that upgraded dh-elpa and the other emacs packages)

(do say if other info helpful and/or if this is not helping)

Christoph Groth

unread,
Jul 21, 2023, 9:30:05 AM7/21/23
to
After upgrading to bookworm I also got bitten by this issue. Otherwise
the upgrade went smoothly.

I noted that at least for some of the superfluous files, the cruft tool
(from package cruft-ng) reports that a file belongs to the package
emacs, while it does not according to dpkg -L or dpkg -S:

# cruft /usr/share/emacs/site-lisp/elpa/org-9.4/org.elc
emacs
# dpkg -L emacs
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/emacs
/usr/share/doc/emacs/changelog.Debian.gz
/usr/share/doc/emacs/copyright

(I do not know who’s the culprit here, just noting in case other people
who read this have a better understanding.)

----------------------------------------------------------------

Since I was not sure what’s going on and I needed a properly working
Emacs installation quickly, I simply uninstalled all packages named by
“dpkg -S /usr/share/emacs”, removed /usr/share/emacs (which contained
a lot of cruft at that point), and reinstalled the previously removed
packages again.
0 new messages