eklitzke / emacs27-rpm

0 stars 0 forks source link

Not working #1

Open A6GibKm opened 4 years ago

A6GibKm commented 4 years ago

I get

$ /usr/bin/emacs
emacs: /usr/bin/../../lisp/emacs-lisp/eln-x86_64-redhat-linux-gnu-dde9447578f84b3f/lisp-mode.eln: cannot open shared object file: No such file or directory

when trying to run the binary.

r0bobo commented 4 years ago

It works if you symlink /usr/share/emacs/28.0.50/lisp to /lisp. I don't know why it looks for that hardcoded relative path. Is it from when emacs is dumped with the portable dumper during the build?

r0bobo commented 4 years ago

The issue seems to be due to the file /usr/libexec/emacs/28.0.50/x86_64-redhat-linux-gnu/emacs.pdmp in emacs-common. If I remove that everything works without any symlinking. Should the pdmp file not be included in the rpm or can it be dumped with the final installed paths to *.eln-files?

A6GibKm commented 4 years ago

Could you share the spec?

r0bobo commented 4 years ago

I have not created a spec. I did not have time to debug it now but I got some other weird issues that seemed to go away when I reverted for the original symlink setup. Someone that knows more about building emacs than me probably needs to look into this. :/

r0bobo commented 4 years ago

This pretest copr build does some trickery with pdmp files. Maybe that is something to look at?

A6GibKm commented 4 years ago

I tried to remove the pdmp file in my spec without success, will try yours.

A6GibKm commented 4 years ago

Adding

 %files
 %{_bindir}/emacs-%{version}
 %attr(0755,-,-) %ghost %{_bindir}/emacs
+%{_datadir}/applications/emacsclient.desktop
 %{_datadir}/applications/emacs.desktop

plus the latest commit fixes the issue.