On Tue, Jun 09, 2015 at 01:34:02AM +0900, Osamu Aoki wrote:
> Hi,
>
> On Mon, Jun 08, 2015 at 07:09:43PM +0300, Ilya Anfimov wrote:
> > Package: debiandoc-sgml
> > Version: 1.2.29-1
> > Severity: normal
> >
> > Dear Maintainer, I have some specifics in kpse path search
> > library configuration, and latex packages do not appear there by default.
> >
> > Whould you be so kind to add -progname pdflatex to kpsewhich calls
> > in debiandoc2pdf, so to check exact availability of that packages
> > for pdflatex?
> $ dpkg -S kpsewhich
> texlive-binaries: /usr/share/man/man1/kpsewhich.1.gz
> texlive-binaries: /usr/bin/kpsewhich
> $ zgrep kpsewhich `dpkg -L debiandoc-sgml`
> /usr/bin/debiandoc2latexpdf:if ! kpsewhich \
> /usr/bin/debiandoc2latexpdf:if ! kpsewhich \
> /usr/bin/debiandoc2latexpdf:if ! kpsewhich \
> /usr/bin/debiandoc2latexps:if ! kpsewhich \
> /usr/bin/debiandoc2latexps:if ! kpsewhich \
> /usr/bin/debiandoc2latexps:if ! kpsewhich \
> /usr/bin/debiandoc2latexdvi:if ! kpsewhich \
> /usr/bin/debiandoc2latexdvi:if ! kpsewhich \
> /usr/bin/debiandoc2latexdvi:if ! kpsewhich \
> /usr/bin/debiandoc2ps:if ! kpsewhich \
> /usr/bin/debiandoc2ps:if ! kpsewhich \
> /usr/bin/debiandoc2ps:if ! kpsewhich \
> /usr/bin/debiandoc2dvi:if ! kpsewhich \
> /usr/bin/debiandoc2dvi:if ! kpsewhich \
> /usr/bin/debiandoc2dvi:if ! kpsewhich \
> /usr/bin/debiandoc2pdf:if ! kpsewhich \
> /usr/bin/debiandoc2pdf:if ! kpsewhich \
> /usr/bin/debiandoc2pdf:if ! kpsewhich \
>
> I do not understand what you are after. Please assume me as total
> newbie for latex. What is "add -progname pdflatex"?
>
> I have no idea what you are asking. Please report woth log of what you
> did and where in the installed files needs to be changed. (Patch to the
> source is even better.)
Oh, sorry. The patch is attached.
kpathsearch library, used by texlive programs to find it's
files in local filesystem, asks for program name for search con-
fig.
Usually most TeX and even LaTeX style files and top-level addons
could be found without specifing program name, to simplify
searching in distinct tex flavours -- tex, latex, luatex, pdfla-
tex, ...
However, this is changed on my system, and debiandoc2... scripts
reports uninstalled latex packages despite the fact that packages
are installed latex/pdflatex runs just fine from debiandoc.
Attached patch adds -progname to respective calls to kpsewich.
Index: debiandoc-sgml-1.2.29/tools/bin/template
===
--- debiandoc-sgml-1.2.29.orig/tools/bin/template
+++ debiandoc-sgml-1.2.29/tools/bin/template
@@ -155,10 +155,17 @@ then
fi
@@@end-latexpdf-active@@@
-@@@start-latexdvi-latexps-latexpdf-active@@@
+@@@start-latexdvi-latexps-active@@@
## --
## check for presence of used latex styles
-if ! kpsewhich \
+if ! kpsewhich -progname latex \
+@@@end-latexdvi-latexps-active@@@
+@@@start-latexpdf-active@@@
+## --
+## check for presence of used pdflatex styles
+if ! kpsewhich -progname pdflatex \
+@@@end-latexpdf-active@@@
+@@@start-latexdvi-latexps-latexpdf-active@@@
fancyhdr.sty \
helvet.sty \
hyperref.sty \
@@ -174,10 +181,17 @@ then
fi
@@@end-latexdvi-latexps-latexpdf-active@@@
-@@@start-latexdvi-latexps-latexpdf-active@@@
+@@@start-latexdvi-latexps-active@@@
## --
## check for presence of used latex styles
-if ! kpsewhich \
+if ! kpsewhich -progname latex \
+@@@end-latexdvi-latexps-active@@@
+@@@start-latexpdf-active@@@
+## --
+## check for presence of used pdflatex styles
+if ! kpsewhich -progname pdflatex \
+@@@end-latexpdf-active@@@
+@@@start-latexdvi-latexps-latexpdf-active@@@
footmisc.sty \
paralist.sty \
vmargin.sty \
@@ -189,10 +203,17 @@ then
fi
@@@end-latexdvi-latexps-latexpdf-active@@@
-@@@start-latexdvi-latexps-latexpdf-active@@@
+@@@start-latexdvi-latexps-active@@@
## --
## check for presence of used latex styles
-if ! kpsewhich \
+if ! kpsewhich -progname latex \
+@@@end-latexdvi-latexps-active@@@
+@@@start-latexpdf-active@@@
+## --
+## check for presence of used pdflatex styles
+if ! kpsewhich -progname pdflatex \
+@@@end-latexpdf-active@@@
+@@@start-latexdvi-latexps-latexpdf-active@@@
wasysym.sty \
>/dev/null 2>&1
then