I sent these patches to Pat, but I think my email addy is
having a torrid affair with /dev/null.
These patches are all for 14.2+:
1) fixes an existing gv patch (patch-of-a-patch)
2) fixes gv not printing or saving files
3) adds the above patch and UTF-8 to the gv slackbuild
4) adds documentation to the python-docutils package
5) fixes bsd games countmail(6)
Note: gv and bsd-games seem to be unmaintained.
Code:
gv-bounding-box.patch
Bug: no whitespace between test operator and operand.
Fix whitespace and move the change to the end of the
test to make the patch easier to review.
diff --git a/gv-bounding-box.patch b/gv-bounding-box.patch
index 4cfcb74..af54158 100644
--- a/gv-bounding-box.patch
+++ b/gv-bounding-box.patch
@@ -7,7 +7,7 @@ index 2428bcc..822b65a 100644
p++;
fury = strtod(p, &pe);
- if (*pe != '\n' && *pe != '\0' && *pe != ' ' && *pe != '\t') {
-+ if (*pe != '\n' && *pe != '\r'&& *pe != '\0' && *pe != ' ' && *pe != '\t') {
++ if (*pe != '\n' && *pe != '\0' && *pe != ' ' && *pe != '\t' && *pe != '\r') {
return 0;
}
Code:
src/Makefile.am: update for ghostscript > v9.10
gv fails to print or save files.
The pswrite "device" was removed in ghostscript 9.10.x,
it was replace by ps2write.
diff --git a/src/Makefile.am b/src/Makefile.am
index a6ca99c..14e0af2 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -198,7 +198,7 @@ gv_intern_res_unix.dat :
@echo "" >> gv_intern_res_unix.dat
@echo "GV.gsInterpreter: gs" >> gv_intern_res_unix.dat
@echo "GV.gsCmdScanPDF: gs -dNODISPLAY -dQUIET -sPDFname=%s -sDSCname=%s %s pdf2dsc.ps -c quit" >> gv_intern_res_unix.dat
- @echo "GV.gsCmdConvPDF: gs -dNOPAUSE -dQUIET -dBATCH -sDEVICE=pswrite -sOutputFile=%s -f %s -c save pop quit" >> gv_intern_res_unix.dat
+ @echo "GV.gsCmdConvPDF: gs -dNOPAUSE -dQUIET -dBATCH -sDEVICE=ps2write -sOutputFile=%s -f %s -c save pop quit" >> gv_intern_res_unix.dat
@echo "GV.gsX11Device: -sDEVICE=x11" >> gv_intern_res_unix.dat
@echo "GV.gsX11AlphaDevice: -sDEVICE=x11 -dTextAlphaBits=4 -dGraphicsAlphaBits=2 -dMaxBitmap=10000000 -dNOPLATFONTS" >> gv_intern_res_unix.dat
@echo "GV.gsSafeDir: True" >> gv_intern_res_unix.dat
diff --git a/src/Makefile.in b/src/Makefile.in
index 559a866..b0f2e7f 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -1134,7 +1134,7 @@ gv_intern_res_unix.dat :
@echo "" >> gv_intern_res_unix.dat
@echo "GV.gsInterpreter: gs" >> gv_intern_res_unix.dat
@echo "GV.gsCmdScanPDF: gs -dNODISPLAY -dQUIET -sPDFname=%s -sDSCname=%s %s pdf2dsc.ps -c quit" >> gv_intern_res_unix.dat
- @echo "GV.gsCmdConvPDF: gs -dNOPAUSE -dQUIET -dBATCH -sDEVICE=pswrite -sOutputFile=%s -f %s -c save pop quit" >> gv_intern_res_unix.dat
+ @echo "GV.gsCmdConvPDF: gs -dNOPAUSE -dQUIET -dBATCH -sDEVICE=ps2write -sOutputFile=%s -f %s -c save pop quit" >> gv_intern_res_unix.dat
@echo "GV.gsX11Device: -sDEVICE=x11" >> gv_intern_res_unix.dat
@echo "GV.gsX11AlphaDevice: -sDEVICE=x11 -dTextAlphaBits=4 -dGraphicsAlphaBits=2 -dMaxBitmap=10000000 -dNOPLATFONTS" >> gv_intern_res_unix.dat
@echo "GV.gsSafeDir: True" >> gv_intern_res_unix.dat
Code:
gv.SlackBuild: add ghostscript patch and utf8 conf
Add patch for ghostscript >= 9.10
Add configure for utf8 and locales
You can test the i18n configuration like so:
LANG=ja_JP.UTF-8 gv
You will see the UI in Japanese.
gv includes relatively few translated locales, but it's better than
nothing. It is also easy for users to create their own as explained in
README.TRANSLATION.
diff --git a/gv.SlackBuild b/gv.SlackBuild
index aeb3c11..b0e3d8c 100755
--- a/gv.SlackBuild
+++ b/gv.SlackBuild
@@ -82,6 +82,7 @@ zcat $CWD/gv-dat.patch.gz | patch -p1 --verbose || exit 1
zcat $CWD/gv-aarch64.patch.gz | patch -p1 --verbose || exit 1
zcat $CWD/gv-bounding-box.patch.gz | patch -p2 --verbose || exit 1
zcat $CWD/gv-bug1071238.patch.gz | patch -p1 --verbose || exit 1
+zcat $CWD/gv-ghostscript.patch.gz | patch -p1 --verbose || exit 1
# Configure:
CFLAGS="$SLKCFLAGS $(pkg-config --cflags xaw3d)" \
@@ -93,7 +94,8 @@ CFLAGS="$SLKCFLAGS $(pkg-config --cflags xaw3d)" \
--infodir=/usr/info \
--program-prefix= \
--program-suffix= \
- --build=$ARCH-slackware-linux
+ --build=$ARCH-slackware-linux \
+ --enable-international
# Build and install:
make $NUMJOBS || make || exit 1
Code:
Add python-docutils documentation, including reStructuredText.
FAQ:
Why?
More projects, including the Linux kernel, are moving to
reStructuredText documentation. 14.2+ does not have any
information about it.
Why keep the reStructuredText source (*.txt) files?
Because the documentation itself is a demo for
reStructuredText and each html page links back to its
source rst (the DTD files are also linked to).
Why keep the file tree and html versions of README, etc.?
The documentation links back to the doc root files and all
of the html links depend upon the existing tree structure.
diff --git a/python-docutils.SlackBuild b/python-docutils.SlackBuild
index 174e016..d0ac1a9 100755
--- a/python-docutils.SlackBuild
+++ b/python-docutils.SlackBuild
@@ -73,8 +73,10 @@ cd $PKG/usr/bin
done
cd -
+tools/buildhtml.py -sgt --link-stylesheet --field-name-limit=20
+
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION
-cp -a *.txt PKG-INFO \
+cp -a *.txt PKG-INFO docs *.html \
$PKG/usr/doc/$PKGNAM-$VERSION
find $PKG/usr/doc/$PKGNAM-$VERSION -type f -exec chmod 0644 {} \+
Code:
countmail: "from: command not found"
As far as I can tell Slackware never had a 'from' command.
Elm's 'frm' will do though.
(Alt solution create a symlink: from -> nfrm)
"It's a wonder any Work gets done here" ;)
--- countmail.orig 2019-11-25 14:18:32.991763538 -0500
+++ countmail 2019-11-25 14:19:29.736475476 -0500
@@ -48,7 +48,7 @@
# for krb.
#set -- `from -t`
#v=$3
-set -- `from | wc -l`
+set -- `frm | wc -l`
v=$1
#v=`from | wc -l`