Bug#438551: xdvi doesn't work

2007-08-25 Thread Norbert Preining
On Son, 19 Aug 2007, Andreas Degert wrote:
 On Sat, 18 Aug 2007 13:36:22 +0200
 xdvi_alternatives () {
   LANG=C update-alternatives --display xdvi.bin  | grep -q $1
 }
 if xdvi_alternatives status is manual; then
  if xdvi_alternatives link currently points to /usr/bin/xdvi.real; then

Thanks, installed this code. Should occur in the next upload.

Best wishes

Norbert

---
Dr. Norbert Preining [EMAIL PROTECTED]Vienna University of Technology
Debian Developer [EMAIL PROTECTED] Debian TeX Group
gpg DSA: 0x09C5B094  fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
---
SKEGNESS (n.)
Nose excreta of a malleable consistency.
--- Douglas Adams, The Meaning of Liff


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#438551: xdvi doesn't work

2007-08-21 Thread Frank Küster
Andreas Degert [EMAIL PROTECTED] wrote:

 On Sat, 18 Aug 2007 13:36:22 +0200
 Frank Küster [EMAIL PROTECTED] wrote:

 Andreas Degert [EMAIL PROTECTED] wrote:
 
  xdvi wants to use xdvi.bin which is not included in the package.
  Symlinking from xdvi.bin to xdvi-xaw.bin in /usr/bin makes it work.
 
 The symlink is supposed to go this way:
 
 /usr/bin/xdvi.bin - /etc/alternatives/xdvi.bin
 /etc/alternatives/xdvi.bin - /usr/bin/xdvi-xaw.bin
 
 (unless you have one of the far-eastern language support packages
 installed), and these symlinks are generated by update-alternatives.
 What is the output on your system of
 
 update-alternatives --display xdvi.bin

 xdvi.bin - status is manual.
  link currently absent
 /usr/bin/xdvi-xaw.bin - priority 30
 Current `best' version is /usr/bin/xdvi-xaw.bin.

This means that update-alternatives thinks you chose to handle the xdvi
alternative manually, and moved symlinks around yourself.  Of course, it
could also be that some script that you ran did this.  

Do you remember anything of that sort?

 hmm... I just looked what the postinst is doing, you are grepping for
 status is manual... since I installed texlive-base-bin in a
 LANG=de_DE environment, the text output is different (the above output
 was produced with LANG=C to make it readable in english, now I realize I
 accidentally removed the most important bit of information ;-)

That's a good point, thank you for noticing this.  However, it cannot
explain how your alternatives got into manual mode in the first place. 

 What do you think of changing

 if update-alternatives --display xdvi.bin | grep -q status is manual ; then
 if update-alternatives --display xdvi.bin | grep -q link currently 
 points to /usr/bin/xdvi.real ; then

 to something like

 xdvi_alternatives () {
   LANG=C update-alternatives --display xdvi.bin  | grep -q $1
 }
 if xdvi_alternatives status is manual; then
  if xdvi_alternatives link currently points to /usr/bin/xdvi.real; then

Thank you, that seems to be a good workaround.  The real solution,
however, would be to add to update-alternatives an option which outputs
information similar to --display in a machine-readable, non-localized
format. 

Regards, Frank

-- 
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)



Bug#438551: xdvi doesn't work

2007-08-19 Thread Andreas Degert
On Sat, 18 Aug 2007 13:36:22 +0200
Frank Küster [EMAIL PROTECTED] wrote:

 Andreas Degert [EMAIL PROTECTED] wrote:
 
  xdvi wants to use xdvi.bin which is not included in the package.
  Symlinking from xdvi.bin to xdvi-xaw.bin in /usr/bin makes it work.
 
 The symlink is supposed to go this way:
 
 /usr/bin/xdvi.bin - /etc/alternatives/xdvi.bin
 /etc/alternatives/xdvi.bin - /usr/bin/xdvi-xaw.bin
 
 (unless you have one of the far-eastern language support packages
 installed), and these symlinks are generated by update-alternatives.
 What is the output on your system of
 
 update-alternatives --display xdvi.bin

xdvi.bin - status is manual.
 link currently absent
/usr/bin/xdvi-xaw.bin - priority 30
Current `best' version is /usr/bin/xdvi-xaw.bin.

 update-alternatives --config xdvi.bin

There is only 1 program which provides xdvi.bin
(/usr/bin/xdvi-xaw.bin). Nothing to configure.

 

hmm... I just looked what the postinst is doing, you are grepping for
status is manual... since I installed texlive-base-bin in a
LANG=de_DE environment, the text output is different (the above output
was produced with LANG=C to make it readable in english, now I realize I
accidentally removed the most important bit of information ;-)

What do you think of changing

if update-alternatives --display xdvi.bin | grep -q status is manual ; then
if update-alternatives --display xdvi.bin | grep -q link currently points 
to /usr/bin/xdvi.real ; then

to something like

xdvi_alternatives () {
  LANG=C update-alternatives --display xdvi.bin  | grep -q $1
}
if xdvi_alternatives status is manual; then
 if xdvi_alternatives link currently points to /usr/bin/xdvi.real; then




Bug#438551: xdvi doesn't work

2007-08-18 Thread Frank Küster
Andreas Degert [EMAIL PROTECTED] wrote:

 xdvi wants to use xdvi.bin which is not included in the package.
 Symlinking from xdvi.bin to xdvi-xaw.bin in /usr/bin makes it work.

The symlink is supposed to go this way:

/usr/bin/xdvi.bin - /etc/alternatives/xdvi.bin
/etc/alternatives/xdvi.bin - /usr/bin/xdvi-xaw.bin

(unless you have one of the far-eastern language support packages
installed), and these symlinks are generated by update-alternatives.
What is the output on your system of

update-alternatives --display xdvi.bin
update-alternatives --config xdvi.bin

(run as root)?

Regards, Frank

-- 
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)



Bug#438551: xdvi doesn't work

2007-08-17 Thread Andreas Degert
Package: texlive-base-bin
Version: 2007-13
Severity: normal

--- Please enter the report below this line. ---
xdvi wants to use xdvi.bin which is not included in the package.
Symlinking from xdvi.bin to xdvi-xaw.bin in /usr/bin makes it work.

--- System information. ---
Architecture: i386
Kernel:   Linux 2.6.21-2-686

Debian Release: lenny/sid
  500 unstableftp.de.debian.org 
  500 testing security.debian.org 
  500 testing ftp.de.debian.org 
  500 stable  security.debian.org 
  500 stable  ftp.de.debian.org 
  500 proposed-updates ftp.de.debian.org 

--- Package information. ---
Depends(Version) | Installed
-+-==
perl | 5.8.8-7
ed   | 0.2-19
mime-support | 3.39-1
libc6 (= 2.6-1) | 2.6.1-1
libkpathsea4   (= 2007) | 2007-12
libncurses5 (= 5.6) | 5.6+20070812-1
libpng12-0 (= 1.2.13-4) | 1.2.15~beta5-1
libpoppler1   (= 0.5.1) | 0.5.4-6.1
libx11-6 | 2:1.0.3-7
libxaw7  | 1:1.0.1-5
libxmu6  | 6.9.0.dfsg.1-2
libxpm4  | 6.9.0.dfsg.1-2
libxt6   | 6.9.0.dfsg.1-2
zlib1g (= 1:1.2.3.3.dfsg-1) | 1:1.2.3.3.dfsg-3
texlive-common (= 2007) | 2007-10




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]