Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emacs26-app-26.3-2: subprocess post-installation script returned error exit status 2 #1068

Closed
cooljeanius opened this issue Sep 29, 2023 · 10 comments

Comments

@cooljeanius
Copy link

cooljeanius commented Sep 29, 2023

Kind of a follow-up to #1060, but different enough that I think it's worth a separate bug:

emacs-install emacs26
Package `gnuplot' is not installed and no info is available.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
install/gnuplot-mode: Handling install for emacsen flavor emacs26
emacsen-common: Handling install of emacsen flavor emacs26
Loading 00fink-vars...
Loading /opt/sw/etc/emacs/site-start.d/40edb.el (source)...
Loading `edbcore': unescaped character literals `?(', `?)' detected!
Error while loading 40edb
Loading /opt/sw/etc/emacs/site-start.d/50anthy-el.el (source)...
Loading /opt/sw/etc/emacs/site-start.d/50auctex.el (source)...
Loading /opt/sw/share/emacs/site-lisp/auctex/auctex.el (source)...
Error while loading 50auctex
Loading /opt/sw/etc/emacs/site-start.d/50gnuplot.el (source)...
emacsen-common: byte-compiling for emacs26
Loading /opt/sw/etc/emacs26/site-start.d/00fink-vars.el (source)...
Loading /opt/sw/etc/emacs/site-start.d/40edb.el (source)...
Loading `edbcore': unescaped character literals `?(', `?)' detected!
Error while loading 40edb
Loading /opt/sw/etc/emacs/site-start.d/50anthy-el.el (source)...
Loading /opt/sw/etc/emacs/site-start.d/50auctex.el (source)...
Loading /opt/sw/share/emacs/site-lisp/auctex/auctex.el (source)...
Error while loading 50auctex
Loading /opt/sw/etc/emacs/site-start.d/50gnuplot.el (source)...

In fink-file->string:
/opt/sw/etc/emacs26/site-start.d/00fink-vars.el:32:23:Warning: Use
    `with-current-buffer' rather than save-excursion+set-buffer

In fink-run-directories:
/opt/sw/share/emacs26/site-lisp/fink-startup.el:131:49:Warning: `mapcar'
    called for effect; use `mapc' or `dolist' instead
install/edb: Handling install of emacsen flavor emacs26
-n install/edb: Byte-compiling for emacs26...
done.
install/edb: Compilation log saved in /opt/sw/share/doc/edb/CompilationLog-emacs26.gz.
install/auctex: Setting up for emacs26...  (log file: /opt/sw/share/emacs26/site-lisp/auctex//CompilationLog)... emacs-install: /opt/sw/lib/emacsen-common/packages/install/auctex emacs26 emacs26 failed at /opt/sw/lib/emacsen-common/emacs-install line 28, <TSORT> line 5.
/opt/sw/bin/dpkg: error processing emacs26-app (--install):
 subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
 emacs26-app
### execution of /opt/sw/bin/dpkg-lockwait failed, exit code 1
Failed: can't install package emacs26-app-26.3-2

I'm on Big Sur with Xcode 13.
cc @okayamat
(btw besides the install failure, it also looks like there's a usage of the non-portable echo -n in there as well, which isn't really that important, but just a minor annoyance)

@cooljeanius
Copy link
Author

Anyone know who on here to tag in for the "Todai Fink Team"? Since they apparently maintain auctex, which looks like it might be part of this... Also is @jessealama the one listed as the maintainer for the "edb" package? Since that's in there, too...

@nieder
Copy link
Member

nieder commented Oct 9, 2023

For Todai, Tomoaki Okayama is the name I can remember. Don't know their github handle, but email was LASTNAME at users.sourceforge.net

I just tested auctex with emacs25 and it installed cleanly (10.14.6), both with and without edb installed.

There's a newer auctex, but it's emacs25 and up only (but shouldn't matter here).

@cooljeanius
Copy link
Author

For Todai, Tomoaki Okayama is the name I can remember.

Ah good, I already tagged them in, then...

@nieder
Copy link
Member

nieder commented Oct 9, 2023

I think there might still be files leftover from an aborted install of edb or another emacs mod that left files around and one of those files is messing up the emacs .el registration process.

  1. fink remove edb auctex anthy-el anthy : make sure it's really uninstalled according to the fink database. However, an aborted install won't list as installed and the files will remain.
  2. dpkg -S /opt/sw/share/emacs/site-lisp /opt/sw/etc/emacs/site-start.d : find which packages own any installed mod files, then run fink remove PKG to remove them.
    2a. Then find /opt/sw/share/emacs/site-lisp /opt/sw/etc/emacs/site-start.d to manually remove any leftover files that belong to an emacs-mod that didn't uninstall (be careful to not remove some files belonging to emacsen-common or actual emacs; only remove leftover files obviously part of some mod).
  3. fink reinstall emacs26 : with edb and other emacs-mods out of the way, make sure emacs26 is installing cleanly.
  4. sed -n 21,27p /opt/sw/lib/emacsen-common/generate-install-list : check that the emacs26 file is truly patched. This is leftover from emacsen-common: Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at /opt/sw/lib/emacsen-common/generate-install-list line 24. #1060, but just making sure.
  5. fink install edb. Should install cleanly. Then repeat for auctex and others as they succeed.

@cooljeanius
Copy link
Author

I'm going to need to get fink/fink#259 figured out first...

@cooljeanius
Copy link
Author

cooljeanius commented Oct 11, 2023

  1. fink remove edb auctex anthy-el anthy : make sure it's really uninstalled according to the fink database. However, an aborted install won't list as installed and the files will remain.

✔︎

  1. dpkg -S /opt/sw/share/emacs/site-lisp /opt/sw/etc/emacs/site-start.d : find which packages own any installed mod files, then run fink remove PKG to remove them.
$ /opt/sw/bin/dpkg -S /opt/sw/share/emacs/site-lisp /opt/sw/etc/emacs/site-start.d
dpkg: serious warning: files list file for package `fink-buildlock-ccp4-6.5-1' missing, assuming package has no files currently installed.
ocaml-dune, coq, cmake, sgmls-pm, quilt, git, auctex, mizar, guile18, mercurial-py36, mercurial-py37, desktop-file-utils, a2ps, gri, global, mercurial-py27, emacsen-common, emacs26-app, gnuplot-wxgtk-qtx11: /opt/sw/share/emacs/site-lisp
emacsen-common, gnuplot-wxgtk-qtx11, auctex: /opt/sw/etc/emacs/site-start.d

(...that's kind of a lot!)

$ fink remove ocaml-dune coq cmake sgmls-pm quilt git auctex mizar guile18 mercurial-py36 mercurial-py37 desktop-file-utils a2ps gri global mercurial-py27 emacsen-common emacs26-app gnuplot-wxgtk-qtx11
Information about 15259 packages read in 2 seconds.
WARNING: auctex is not installed, skipping.
WARNING: emacs26-app is not installed, skipping.
Fink will attempt to remove 17 packages

Do you want to continue? [Y/n] 
Reading buildlock packages...
	All buildlocks accounted for.
/opt/sw/bin/dpkg-lockwait --remove a2ps cmake coq desktop-file-utils emacsen-common git global gnuplot-wxgtk-qtx11 gri guile18 mercurial-py27 mercurial-py36 mercurial-py37 mizar ocaml-dune quilt sgmls-pm
(Reading database ... 
dpkg: serious warning: files list file for package `fink-buildlock-ccp4-6.5-1' missing, assuming package has no files currently installed.
1044849 files and directories currently installed.)
Removing a2ps ...
[...]
dpkg: dependency problems prevent removal of cmake:
 kde4-buildenv depends on cmake (>= 2.8.10.2-1).
/opt/sw/bin/dpkg: error processing cmake (--remove):
 dependency problems - not removing
Removing coq ...
[...]
dpkg: dependency problems prevent removal of desktop-file-utils:
 devhelp depends on desktop-file-utils (>= 0.15-2).
 glade3 depends on desktop-file-utils (>= 0.15-2).
 fontforge depends on desktop-file-utils.
 file-roller depends on desktop-file-utils.
 pcb depends on desktop-file-utils.
 meld depends on desktop-file-utils.
 gedit-plugins depends on desktop-file-utils.
 pybliographer depends on desktop-file-utils.
 gliv depends on desktop-file-utils.
 gedit depends on desktop-file-utils.
 zenmap depends on desktop-file-utils.
/opt/sw/bin/dpkg: error processing desktop-file-utils (--remove):
 dependency problems - not removing
dpkg: dependency problems prevent removal of git:
 hg-fast-export depends on git.
 git-remote-githg-py27 depends on git (>= 1.9.3-1).
 git-goggles-py27 depends on git.
 git-remote-gitifyhg-py27 depends on git.
 tig depends on git.
 git-remote-mediawiki depends on git (>= 2.27.0).
 gcutils depends on git.
 git-svn depends on git (>= 2.27.0).
 git-wrapper-pm5184 depends on git; however:
  Package git is to be removed.
 git-spindle depends on git.
 git-send-email depends on git (>= 2.27.0).
 github depends on git.
 git-ftp depends on git.
 git-remote-testsvn depends on git (>= 2.27.0).
 stgit depends on git.
 git-extras depends on git.
 git-remote-gitbzr-py27 depends on git (>= 1.9.3-1).
 git-cvsimport depends on git (>= 2.27.0).
/opt/sw/bin/dpkg: error processing git (--remove):
 dependency problems - not removing
Removing global ...
[...]
dpkg - warning: while removing global, directory `/opt/sw/var/gtags' not empty so not removed.
Removing gnuplot-wxgtk-qtx11 ...
[...]
/opt/sw/etc/texmf.local/latex/gnuplot
texhash: Updating /opt/sw/etc/texmf.local/latex/gnuplot/ls-R... 
texhash: Done.
remove/gnuplot-mode: purging byte-compiled files for emacs26
install-info(gnuplot.info): deleting entry `* GNUPLOT: (gnuplot) ...'
install-info(gnuplot.info): deleting empty section `Math'
[...]
Removing gri ...
[...]
install-info(gri.info): deleting entry `* Gri: (gri) ...'
install-info(gri.info): deleting empty section `Scientific Applications'
[...]
dpkg: dependency problems prevent removal of guile18:
 guile18-lib depends on guile18.
 gnome-games depends on guile18.
/opt/sw/bin/dpkg: error processing guile18 (--remove):
 dependency problems - not removing
dpkg: dependency problems prevent removal of mercurial-py27:
 mercurial-keyring-py27 depends on mercurial-py27.
 hg-fast-export depends on mercurial-py27.
 git-remote-githg-py27 depends on mercurial-py27 (>= 3.2.1-1).
 mercurial-extension-utils-py27 depends on mercurial-py27.
 chg depends on mercurial-py27 (>= 3.8.1-1).
 git-remote-gitifyhg-py27 depends on mercurial-py27.
 hg-git-py27 depends on mercurial-py27.
 hgsubversion-py27 depends on mercurial-py27.
 hg-fastimport-py27 depends on mercurial-py27 (>= 4.5-1).
/opt/sw/bin/dpkg: error processing mercurial-py27 (--remove):
 dependency problems - not removing
Removing mercurial-py36 ...
[...]
Removing mercurial-py37 ...
[...]
Removing mizar ...
[...]
Removing ocaml-dune ...
[...]
Removing quilt ...
[...]
dpkg: dependency problems prevent removal of sgmls-pm:
 po4a depends on sgmls-pm.
 docbook-utils depends on sgmls-pm; however:
  Package sgmls-pm is to be removed.
/opt/sw/bin/dpkg: error processing sgmls-pm (--remove):
 dependency problems - not removing
Removing emacsen-common ...
[...]
emacsen-common: Handling removal of emacsen flavor emacs
emacsen-common: Handling removal of emacsen flavor emacs26
emacsen-common: purging byte-compiled files for emacs26
[...]
Errors were encountered while processing:
 cmake
 desktop-file-utils
 git
 guile18
 mercurial-py27
 sgmls-pm
### execution of /opt/sw/bin/dpkg-lockwait failed, exit code 1
ERROR: Can't remove package(s). If the above error message mentions dependency problems, you can try
  fink remove --recursive a2ps cmake coq desktop-file-utils emacsen-common git global gnuplot-wxgtk-qtx11 gri guile18 mercurial-py27 mercurial-py36 mercurial-py37 mizar ocaml-dune quilt sgmls-pm
This will attempt to remove the package(s) specified as well as ALL packages that depend on it.
Failed: can't batch-remove packages: a2ps cmake coq desktop-file-utils emacsen-common git global gnuplot-wxgtk-qtx11 gri guile18 mercurial-py27 mercurial-py36 mercurial-py37 mizar ocaml-dune quilt sgmls-pm

(irrelevant portions about ccp4 trimmed)
...anyways, I'm kind of reluctant to do the recursive removal just due to how many more packages that would result in... since it says that auctex wasn't actually installed in the first place to be able to remove, I guess that means I can remove just the auctex-related ones by hand?

2a. Then find /opt/sw/share/emacs/site-lisp /opt/sw/etc/emacs/site-start.d to manually remove any leftover files that belong to an emacs-mod that didn't uninstall (be careful to not remove some files belonging to emacsen-common or actual emacs; only remove leftover files obviously part of some mod).

$ find /opt/sw/share/emacs/site-lisp /opt/sw/etc/emacs/site-start.d | xargs /opt/sw/bin/dpkg -S
dpkg: serious warning: files list file for package `fink-buildlock-ccp4-6.5-1' missing, assuming package has no files currently installed.
desktop-file-utils, mercurial-py27, emacsen-common, emacs26-app, cmake, sgmls-pm, git, auctex, guile18: /opt/sw/share/emacs/site-lisp
git: /opt/sw/share/emacs/site-lisp/git-blame.el
desktop-file-utils: /opt/sw/share/emacs/site-lisp/desktop-entry-mode.el
dpkg: /opt/sw/share/emacs/site-lisp/mercurial.el not found.
cmake: /opt/sw/share/emacs/site-lisp/cmake-mode.el
guile18: /opt/sw/share/emacs/site-lisp/gds.el
mercurial-py27: /opt/sw/share/emacs/site-lisp/mq-py27.el
git: /opt/sw/share/emacs/site-lisp/git.el
guile18: /opt/sw/share/emacs/site-lisp/gds-server.el
emacsen-common: /opt/sw/share/emacs/site-lisp/fink-startup.el
auctex: /opt/sw/share/emacs/site-lisp/auctex
auctex: /opt/sw/share/emacs/site-lisp/auctex/tex-font.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/context-nl.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/context-en.el
dpkg: /opt/sw/share/emacs/site-lisp/auctex/auto-loads.el not found.
dpkg: /opt/sw/share/emacs/site-lisp/auctex/tex.elc not found.
auctex: /opt/sw/share/emacs/site-lisp/auctex/install-sh
auctex: /opt/sw/share/emacs/site-lisp/auctex/configure.ac
auctex: /opt/sw/share/emacs/site-lisp/auctex/configure
auctex: /opt/sw/share/emacs/site-lisp/auctex/tex-jp.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/ChangeLog
auctex: /opt/sw/share/emacs/site-lisp/auctex/images
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/prvtex24.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/prvwrk24.xbm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/exec.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/jumpdvi.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/view.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/prvwrk20.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/dropdown.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/sep.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/dvipdf.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/dvips.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/prvwrk24.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/prvtex20.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/error.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/bibtex.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/prvtex24.xbm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/ltx-symb-turn-off.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/viewps.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/prverr16.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/execpdftex.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/execbibtex.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/execerror.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/prverr20.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/prverr24.xbm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/execdvips.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/execviewdvi.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/tex.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/execviewpdf.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/prverr24.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/amstex.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/pdftex.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/prvwrk14.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/prvtex16.xbm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/prvtex12.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/pspdf.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/gv.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/prvwrk16.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/viewdvi.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/ltx-symb-turn-on.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/prvwrk12.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/prvtex16.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/viewpdf.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/prvtex12.xbm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/prvtex-cap-up.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/execviewps.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/images/exectex.xpm
auctex: /opt/sw/share/emacs/site-lisp/auctex/multi-prompt.el
dpkg: /opt/sw/share/emacs/site-lisp/auctex/Makefile not found.
auctex: /opt/sw/share/emacs/site-lisp/auctex/tex-bar.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/tex-site.el.in
dpkg: /opt/sw/share/emacs/site-lisp/auctex/tex-site.el.out not found.
auctex: /opt/sw/share/emacs/site-lisp/auctex/tex-mik.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/tex.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/bib-cite.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/multind.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/foils.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/plhb.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/flashcards.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/czech.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/psfig.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/scrreprt.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/j-article.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/.nosearch
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/jreport.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/csquotes.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/amsthm.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/biblatex.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/CJKutf8.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/paralist.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/graphicx.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/inputenc.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/pstricks.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/pdfsync.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/ltxdoc.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/ruby.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/virtex.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/CJK.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/MinionPro.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/alltt.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/nicefrac.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/dk-bib.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/jurabib.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/icelandic.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/nomencl.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/prosper.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/jura.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/graphics.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/dinbrief.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/index.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/amstex.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/lettrine.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/subfigure.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/pst-node.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/jarticle.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/mdwlist.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/tabularx.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/swedish.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/comment.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/ltx-base.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/listings.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/units.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/natbib.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/scrpage2.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/pst-grad.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/austrian.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/pst-plot.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/polski.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/amsmath.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/german.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/frenchb.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/italian.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/jsarticle.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/scrartcl.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/hyperref.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/xspace.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/beamer.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/verbatim.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/slovak.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/francais.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/scrlttr2.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/amsbsy.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/multido.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/j-report.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/pst-slpe.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/emp.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/scrbook.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/danish.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/article.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/fancyref.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/bulgarian.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/naustrian.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/polish.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/alphanum.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/varioref.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/epsf.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/setspace.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/report.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/ngerman.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/plfonts.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/captcont.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/babel.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/french.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/url.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/latexinfo.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/letter.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/makeidx.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/amstext.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/jsbook.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/dk.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/jbook.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/dutch.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/amsart.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/booktabs.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/book.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/multicol.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/slides.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/doc.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/amsbook.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/shortvrb.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/amsopn.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/j-book.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/scrbase.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/style/harvard.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/tex-wizard.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/tex-fold.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/latex.el
dpkg: /opt/sw/share/emacs/site-lisp/auctex/config.status not found.
auctex: /opt/sw/share/emacs/site-lisp/auctex/font-latex.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/tex-info.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/tex-style.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/doc
dpkg: /opt/sw/share/emacs/site-lisp/auctex/doc/Makefile not found.
auctex: /opt/sw/share/emacs/site-lisp/auctex/doc/Makefile.in
dpkg: /opt/sw/share/emacs/site-lisp/auctex/config.log not found.
auctex: /opt/sw/share/emacs/site-lisp/auctex/preview
auctex: /opt/sw/share/emacs/site-lisp/auctex/preview/configure.ac
auctex: /opt/sw/share/emacs/site-lisp/auctex/preview/configure
dpkg: /opt/sw/share/emacs/site-lisp/auctex/preview/Makefile not found.
auctex: /opt/sw/share/emacs/site-lisp/auctex/preview/latex
dpkg: /opt/sw/share/emacs/site-lisp/auctex/preview/latex/Makefile not found.
auctex: /opt/sw/share/emacs/site-lisp/auctex/preview/latex/Makefile.in
auctex: /opt/sw/share/emacs/site-lisp/auctex/preview/latex/preview.dtx
auctex: /opt/sw/share/emacs/site-lisp/auctex/preview/prv-install.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/preview/preview.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/preview/auto.el.in
dpkg: /opt/sw/share/emacs/site-lisp/auctex/preview/config.status not found.
auctex: /opt/sw/share/emacs/site-lisp/auctex/preview/prv-xemacs.el
dpkg: /opt/sw/share/emacs/site-lisp/auctex/preview/auto.el not found.
dpkg: /opt/sw/share/emacs/site-lisp/auctex/preview/config.log not found.
auctex: /opt/sw/share/emacs/site-lisp/auctex/preview/prv-emacs.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/preview/Makefile.in
auctex: /opt/sw/share/emacs/site-lisp/auctex/context.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/toolbar-x.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/auctex.el.in
auctex: /opt/sw/share/emacs/site-lisp/auctex/tex-buf.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/texmathp.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/lpath.el
dpkg: /opt/sw/share/emacs/site-lisp/auctex/auctex.el not found.
auctex: /opt/sw/share/emacs/site-lisp/auctex/plain-tex.el
auctex: /opt/sw/share/emacs/site-lisp/auctex/Makefile.in
dpkg: /opt/sw/share/emacs/site-lisp/auctex/tex-site.el not found.
auctex: /opt/sw/share/emacs/site-lisp/auctex/aclocal.m4
guile18: /opt/sw/share/emacs/site-lisp/gds-scheme.el
sgmls-pm: /opt/sw/share/emacs/site-lisp/sgmls.el
mercurial-py27: /opt/sw/share/emacs/site-lisp/mercurial-py27.el
dpkg: /opt/sw/share/emacs/site-lisp/mq.el not found.
emacsen-common, auctex: /opt/sw/etc/emacs/site-start.d
auctex: /opt/sw/etc/emacs/site-start.d/50auctex.el
emacsen-common: /opt/sw/etc/emacs/site-start.d/00fink-vars.el
anthy-el: /opt/sw/etc/emacs/site-start.d/50anthy-el.el
gnuplot-wxgtk-qtx11: /opt/sw/etc/emacs/site-start.d/50gnuplot.el

I don't get it, how can dpkg -S report auctex as providing those files if auctex isn't even installed and available for removal in the first place?

  1. fink reinstall emacs26 : with edb and other emacs-mods out of the way, make sure emacs26 is installing cleanly.

er... missing -app suffix?

  1. sed -n 21,27p /opt/sw/lib/emacsen-common/generate-install-list : check that the emacs26 file is truly patched. This is leftover from emacsen-common: Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at /opt/sw/lib/emacsen-common/generate-install-list line 24. #1060, but just making sure.

  2. fink install edb. Should install cleanly. Then repeat for auctex and others as they succeed.

@cooljeanius
Copy link
Author

Thinking a bit more about how many packages the recursive removal would remove, and I'm wondering if it'd make sense to create new splitoffs for packages that install random bits of elisp currently? That way one could remove just, say, a "git-elisp" package instead of the entire "git" package...

@dmacks
Copy link
Member

dmacks commented Oct 18, 2023

dpkg -r --force-depends PKGNAME will let you remove just PKGNAME even if other packages have dependencies on it, leaving those others installed. Obviously this is a Bad Idea in general, so make sure you re-install PKGNAME as soon as possible after doing whatever else you are doing.

@cooljeanius
Copy link
Author

cooljeanius commented Oct 18, 2023

dpkg -r --force-depends PKGNAME will let you remove just PKGNAME even if other packages have dependencies on it, leaving those others installed.

OK, done. Now, going back to where I left off...

  1. fink reinstall emacs26 : with edb and other emacs-mods out of the way, make sure emacs26 is installing cleanly.

Seems to have worked properly this time around.

  1. sed -n 21,27p /opt/sw/lib/emacsen-common/generate-install-list : check that the emacs26 file is truly patched. This is leftover from emacsen-common: Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at /opt/sw/lib/emacsen-common/generate-install-list line 24. #1060, but just making sure.
$ sed -n 21,27p /opt/sw/lib/emacsen-common/generate-install-list
sub installed_add_on_packages_list {
  # Caches value for future use...

  if( (! defined($installed_add_on_pkgs) ) || ( @$installed_add_on_pkgs == 0 ) ) {
    my $oldir = cwd();    
    chdir($lib_dir . "/packages/install/") or die "couldn't chdir";
    @$installed_add_on_pkgs = glob("*");
  1. fink install edb. Should install cleanly. Then repeat for auctex and others as they succeed.

OK this seems to have worked this time around, too. The whole emacs situation here still seems like it's in a bit of a mess, though. Perhaps keep this open for some cleanups?

@cooljeanius
Copy link
Author

The whole emacs situation here still seems like it's in a bit of a mess, though. Perhaps keep this open for some cleanups?

Or actually never mind; I'm going to close this now...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants