Bug#788106: debiandoc-sgml: debiandoc2pdf does not set -progname to kpsewhich

2015-06-08 Thread Ilya Anfimov
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


Bug#788106: debiandoc-sgml: debiandoc2pdf does not set -progname to kpsewhich

2015-06-08 Thread Osamu Aoki
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.)

Osamu


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#788106: debiandoc-sgml: debiandoc2pdf does not set -progname to kpsewhich

2015-06-08 Thread Ilya Anfimov
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?


*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
 ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***


-- System Information:
Debian Release: 8.0
  APT prefers oldoldstable
  APT policy: (500, 'oldoldstable'), (500, 'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages debiandoc-sgml depends on:
ii  libhtml-parser-perl  3.71-1+b3
ii  libroman-perl1.23-1
ii  libtext-format-perl  0.59-1
ii  perl 5.20.2-3
ii  sgml-base1.26+nmu4
ii  sgml-data2.0.10
ii  sgmlspl  1.03ii-33
ii  sp   1.3.4-1.2.1-47.3

Versions of packages debiandoc-sgml recommends:
ii  ghostscript  9.06~dfsg-2
ii  texinfo  5.2.0.dfsg.1-6
ii  texlive  2014.20141024-2
ii  texlive-latex-extra  2014.20141024-1

Versions of packages debiandoc-sgml suggests:
pn  debiandoc-sgml-doc  
ii  latex-cjk-all   4.8.3+git20140831-1
ii  texlive-lang-all2014.20141024-1

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org