On Fr, 09 Nov 2007, Felipe Figueiredo wrote:
> I had /usr/bin/xdvi.bin correctly linked to /etc/alternatives/xdvi.bin,
> but the later was suposed to link to /usr/bin/xdvi-xaw.bin, and it
> wasn't.
> 
> The following seems to be the simplest fix:
> 
> sudo update-alternatives --auto xdvi.bin

I don't understand why this does not work on ubuntu. THe Debian packages
introduced with texlive-bin 2007-8:
  * rework the xdvi conf file handling code to not "preserve removal"
    when upgrading from older texlive versions (Closes: #425272)
which does in the postinst configure part:

xdvi_alternatives () {
  LANG=C update-alternatives --display xdvi.bin  | grep -q "$1"
}

update-alternatives --install /usr/bin/xdvi.bin xdvi.bin /usr/bin/xdvi-xaw.bin 
30
    if update-alternatives --list xdvi.bin | grep -q xdvi.real ; then
      # remove the old tetex alternative, should switch to auto mode 
      # automatically even if there are other xdvi alternatives
      # installed
      update-alternatives --remove xdvi.bin /usr/bin/xdvi.real
    else
      if xdvi_alternatives "status is manual" ; then
        if xdvi_alternatives "link currently points to /usr/bin/xdvi.real" ; 
then
          # link status is manual, and we point to the tetex alternative
          # can this happen? It seems so, see #419381 and siblings
          # we switch to auto mode
          update-alternatives --auto xdvi.bin
        else
          # xdvi.bin is in manual mode but not pointing to xdvi.real, leave
          # it untouched
          : do nothing
        fi
      fi
    fi

SO you wrote:
> but the later was suposed to link to /usr/bin/xdvi-xaw.bin, and it
> wasn't.

Where was it linked to?

And the output of 
        LANG=C update-alternatives --display xdvi.bin
        LANG=C update-alternatives --list xdvi.bin
would be nice. The output BEFORE fixing this by hand.

> Seems like a packaging bug to me, simple enough to fix, but I haven't
> checked the package script to confirm.

It is not THAT simple, because we have other xdvi alternatives and we
cannot replace a MANUALLY set link (status manual) in any case with
--auto, this is not how Debian (Ubuntu?) works, one has to respect the
decisions of the system administrator.

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
-------------------------------------------------------------------------------
WORKSOP (n.)
A person who never actually gets round to doing anything because he
spends all his time writing out lists headed 'Things to Do (Urgent)'.
                        --- Douglas Adams, The Meaning of Liff

-- 
[gutsy] xdvi.bin symlink not installed
https://bugs.launchpad.net/bugs/156628
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to