[Slackbuilds-users] Build script for html2ps 1.0b7 is broken.

Kees Theunissen C.J.Theunissen at differ.nl
Tue Sep 9 21:11:32 UTC 2014


Hello,


The build script for html2ps version 1.0b7 installs most files
in a rather uncommon place: below usr/share/html2ps/.

[...]
Creating Slackware package:  /tmp/html2ps-1.0b7-noarch-2_SBo.tgz

./
install/
install/doinst.sh
install/slack-desc
usr/
usr/bin/
usr/bin/xhtml2ps
usr/share/
usr/share/pixmaps/
usr/share/pixmaps/xhtml2ps.png
usr/share/html2ps/
usr/share/html2ps/bin/
usr/share/html2ps/bin/html2ps
usr/share/html2ps/lib/
usr/share/html2ps/lib/html2ps/
usr/share/html2ps/lib/html2ps/html2psrc
usr/share/html2ps/lib/html2ps/hyphen.tex
usr/share/html2ps/lib/html2ps/html2ps.html
usr/share/html2ps/man/
usr/share/html2ps/man/man5/
usr/share/html2ps/man/man5/html2psrc.5
usr/share/html2ps/man/man1/
usr/share/html2ps/man/man1/html2ps.1
usr/share/applications/
usr/share/applications/xhtml2ps.desktop
usr/man/
usr/man/man5/
usr/man/man1/
usr/doc/
usr/doc/html2ps-1.0b7/
usr/doc/html2ps-1.0b7/LICENSE.xhtml2ps
usr/doc/html2ps-1.0b7/xhtml2ps/
usr/doc/html2ps-1.0b7/html2ps.ps
usr/doc/html2ps-1.0b7/COPYING
usr/doc/html2ps-1.0b7/html2ps.SlackBuild
usr/doc/html2ps-1.0b7/README
usr/doc/html2ps-1.0b7/README.xhtml2ps

Slackware package /tmp/html2ps-1.0b7-noarch-2_SBo.tgz created.
[...]



The patch below seems to fix this but is not tested thoroughly.



$ diff -u html2ps.SlackBuild.original html2ps.SlackBuild
diff -u html2ps.SlackBuild.original html2ps.SlackBuild
--- html2ps.SlackBuild.original	2013-11-22 20:47:41.000000000 +0100
+++ html2ps.SlackBuild	2014-09-09 22:33:33.351567811 +0200
@@ -60,7 +60,6 @@
 mkdir -p $PKG/usr/{bin,man/man{1,5},share/html2ps,doc/$PRGNAM-$VERSION}

 printf "
-
 n
 ${PKG}/usr/bin
 ${PKG}/usr/share/html2ps





After that the "doinst.sh" script complains at install time about a
missing "etc/html2ps/html2psrc.new" file.

I'm not sure how to handle this. The global configuration file is
(with the above patch applied) installed in "/usr/share/html2ps/html2psrc"
without a ".new" extention. I guess that the maintainer (RW) moved the
file intentionally away from /etc and that the ".new" extention was
also removed by intention because the file contains mostly build-time
parameters and should not be considered as a real configuration file.
In that case should the line "config etc/html2ps/html2psrc.new"
and the "config()" subroutine be removed from "doinst.sh".



Regards,

Kees Theunissen.

-- 
Kees Theunissen,  System and network manager,   Tel: +31 (0)30 6096724
Dutch Institute For Fundamental Energy Research (DIFFER)
e-mail address:   C.J.Theunissen at differ.nl
postal address:   PO Box 1207, 3430 BE Nieuwegein, NL
visitors address: Edisonbaan 14, 3439 MN Nieuwegein, NL



More information about the SlackBuilds-users mailing list