Re: emacs23* fails to install due to PostInstScript

Derek Homeier <[email protected]> Tue, 26 Dec 2017 19:18:32 +0100
Newsgroups gmane.os.apple.fink.devel
Message-ID <3621CD6E-CC0F-4B0C-AE14-241C1526DA9F@astro.physik.uni-goettingen.de>
On 25 Dec 2017, at 11:50 am, Hanspeter Niederstrasser <[email protected]> wrote:
> 
> In fink-run-directories:
> ../../../share/emacs23/site-lisp/fink-startup.el:129:25:Warning: `mapcar'
>    called for effect; use `mapc' or `dolist' instead
> Wrote /sw/share/emacs23/site-lisp/fink-startup.elc
> sh: /sw/share/info/emacs-23/*.info.gz: No such file or directory
> install-info(/sw/share/info/emacs-23/*.info.gz): read gzip -cd </sw/share/info/emacs-23/*.info.gz |: 256
> /sw/bin/dpkg: error processing emacs23 (--install):
> subprocess post-installation script returned error exit status 1
> Errors were encountered while processing:
> emacs23
> 
> 
> The info files for emacs-23 are not gzipped (as in emacs24,emacs25).
> This was introduced here:
> https://github.com/fink/fink-distributions/commit/8e8509e2246d05bd9603bfd89bdb77d8c317bc13#diff-bd51196878bd7e5ef7f32b0190ed39daR173
> 
> Fixing it should be easy, but I wanted to confirm it's broken elsewhere before I do.
> 
Confirmed here; also they don’t have a .info suffix. I got it to build with 

@@ -174,7 +174,7 @@
 
 	# Since we're placing our info files in a subdirectory of %p/share/info
 	# we need to manually add each doc to the info dir-file
-	for file in $(basename %p/share/info/emacs-23/*.info.gz)
+	for file in $(basename %p/share/info/emacs-23/[a-z]*)
 	do
 		install-info --infodir=%p/share/info --section Emacs Emacs %p/share/info/emacs-23/${file}
 	done
@@ -188,7 +188,7 @@
 <<
 PreRmScript: <<
 	# Manually remove all of our info docs from the dir-file
-	for file in $(basename %p/share/info/emacs-23/*.info.gz)
+	for file in $(basename %p/share/info/emacs-23/[a-z]*)
 	do
 		install-info --infodir=%p/share/info --remove-exactly emacs-23/${file}
 	done

but from looking at the original package description, updates to all the individual entries (like calc-1, calc-2 etc.)
might not be necessary.

I also tested my ess package with this and found it not to work; not surprising though, as the minimum emacs
version is given as emacs-24.3.

					Derek


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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