Re: emacs26-app

Hanspeter Niederstrasser <[email protected]> Tue, 12 May 2020 14:06:52 -0500
Newsgroups gmane.os.apple.fink.devel
Organization Snaggled Works
Message-ID <[email protected]>
On 5/12/20 1:35 PM, Leigh Smith wrote:
> Attempting to build on MacOS 10.14.6 throws up some issues of interaction between emacs26 and gnuplot. It seems that emacs needs to be installed to install gnuplot texi documentation, and gnuplot needs to be installed to install emacs26-app. I tried to get bootstrapping to work by installing emacs26-nox, then gnuplot, which produced the error below. gnuplot-minimal had already been installed, so I guess I could try removing that before attempting to install gnuplot.
> 
> Making install-info in docs
> make[1]: Entering directory '/sw/src/fink.build/gnuplot-5.0.7-4/gnuplot-5.0.7/docs'
> if test "emacs" != no; then \
>     test ".." = ".." || cp ./gnuplot.doc . ; \
>     emacs -batch -q --no-site-file -l doc2texi.el -f d2t-doc-to-texi ; \
>     test ".." = ".." || rm -f ./gnuplot.doc ; \
> else \
>     echo "No emacs found - cannot create texinfo file" ; \
> fi
> Inserting help for terminals ...
> Match data clobbered by buffer modification hooks
> makeinfo -I. gnuplot.texi --no-split --output=gnuplot.info
> could not open gnuplot.texi: No such file or directory
> make[1]: *** [Makefile:1119: gnuplot.info] Error 1
> make[1]: Leaving directory '/sw/src/fink.build/gnuplot-5.0.7-4/gnuplot-5.0.7/docs'
> make: *** [Makefile:419: install-info-recursive] Error 1
> ### execution of /tmp/fink.Z9c5T failed, exit code 2
> ### execution of /tmp/fink.m46Nf failed, exit code 2
> Removing runtime build-lock...
> Removing build-lock package...
> /sw/bin/dpkg-lockwait -r fink-buildlock-gnuplot-5.0.7-4
> (Reading database ... 342483 files and directories currently installed.)
> Removing fink-buildlock-gnuplot-5.0.7-4 ...
> Failed: phase installing: gnuplot-5.0.7-4 failed
> 
> Before reporting any errors, please run "fink selfupdate" and try again.
> 
> If you continue to have issues, please check to see if the FAQ on Fink's
> website solves the problem.  If not, ask on one (not both, please) of
> these mailing lists:
> 
> 	The Fink Users List <[email protected]>
> 	The Fink Beginners List <[email protected]>.
> 
> Please try to include the complete error message in your report.  This
> generally consists of a compiler line starting with e.g. "gcc" or "g++"
> followed by the actual error output from the compiler.
> 
> Also include the following system information:
> Package manager version: 0.45.1
> Distribution version: selfupdate-git Tue May 12 13:18:41 2020, 10.14.5, x86_64
> Trees: local/main stable/main local/injected
> Xcode.app: 10.3
> Xcode command-line tools: 10.3.0.0.1.1562985497
> Max. Fink build jobs:  1
> 
> Attempting to just plough ahead with gnuplot-minimal installed and install emacs26-app produces the error message regarding a lack of charsets.
> 
> emacs-remove emacs26
> defined(@array) is deprecated at /sw/lib/emacsen-common/generate-install-list line 24.
> 	(Maybe you should just omit the defined()?)
> 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.
> emacsen-common: Handling removal of emacsen flavor emacs26
> emacsen-common: purging byte-compiled files for emacs26
> remove/gnuplot-mode: purging byte-compiled files for emacs26
> Setting up emacs26-app (26.3-1) ...
> emacs-install emacs26
> defined(@array) is deprecated at /sw/lib/emacsen-common/generate-install-list line 24.
> 	(Maybe you should just omit the defined()?)
> 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
> Warning: arch-dependent data dir '/sw/src/fink.build/root-emacs26-app-26.3-1/sw/lib/emacs/26.3/x86_64-apple-darwin18.7.0/': No such file or directory
> Warning: arch-independent data dir '/sw/src/fink.build/root-emacs26-app-26.3-1/sw/share/emacs/26.3/etc/': No such file or directory
> Warning: Lisp directory '/sw/src/fink.build/root-emacs26-app-26.3-1/sw/share/emacs/26.3/lisp': No such file or directory
> Error: charsets directory not found:
> /sw/src/fink.build/root-emacs26-app-26.3-1/sw/share/emacs/26.3/etc/charsets
> Emacs will not function correctly without the character map files.
> Please check your installation!
> emacs-install: /sw/lib/emacsen-common/packages/install/gnuplot emacs26 failed at /sw/lib/emacsen-common/emacs-install line 28, <TSORT> line 2.
> /sw/bin/dpkg: error processing emacs26-app (--install):
>   subprocess post-installation script returned error exit status 1
> Errors were encountered while processing:
>   emacs26-app
> ### execution of /sw/bin/dpkg-lockwait failed, exit code 1
> Failed: can't install package emacs26-app-26.3-1

Leigh,

emacs26-app doesn't depend on gnuplot. I think that part of the output 
is a red herring. emacs used to provide a mode file for gnuplot, but 
then it got split off and now it belongs to gnuplot (since it makes more 
sense there).

I think the real error is in emacs26-app trying to find the buildtime 
directory 
'/sw/src/fink.build/root-emacs26-app-26.3-1/sw/share/emacs/26.3/etc/charsets'. 
I don't know why the emacs26-app postinstall scripts are looking there 
since I don't speak emacs.

A suggestion would be to remove all gnuplot and emacs variants, then run:

fink rebuild emacs26-nox
fink reinstall emacs26-nox
fink rebuild gnuplot (which ever variant you want).

Hanspeter


_______________________________________________
Fink-devel mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel