Then please run
    dpkg-reconfigure texlive-xetex

------------------------------------------------------------------------
PREINING, Norbert                              http://www.preining.info
JAIST, Japan                                 TeX Live & Debian Developer
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0  ACF0 6CAC A448 860C DC13
------------------------------------------------------------------------

> On 2014/06/05, at 13:17, Eric Fort <[email protected]> wrote:
> 
> script as it is now (original except -x added to set line)
> 
> 
> Eric_Admin@INSPIRON1545 ~
> $ ssh 192.168.1.5 -l root
> Debian GNU/Linux 7
> 
> BeagleBoard.org BeagleBone Debian Image 2014-05-14
> 
> Support/FAQ: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian
> Last login: Wed Jun  4 05:53:36 2014 from 192.168.1.7
> root@beaglebone:~# df -h
> Filesystem      Size  Used Avail Use% Mounted on
> rootfs           30G  9.6G   19G  35% /
> udev             10M     0   10M   0% /dev
> tmpfs            49M  832K   48M   2% /run
> /dev/mmcblk0p2   30G  9.6G   19G  35% /
> tmpfs           122M     0  122M   0% /dev/shm
> tmpfs           122M     0  122M   0% /sys/fs/cgroup
> tmpfs           5.0M     0  5.0M   0% /run/lock
> tmpfs           100M     0  100M   0% /run/user
> /dev/mmcblk0p1   96M   78M   19M  82% /boot/uboot
> root@beaglebone:~# cd /var/lib/dpkg/info/
> root@beaglebone:/var/lib/dpkg/info# nano texlive-
> Display all 112 possibilities? (y or n)
> root@beaglebone:/var/lib/dpkg/info# nano texlive-xetex.post
> texlive-xetex.postinst  texlive-xetex.postrm
> root@beaglebone:/var/lib/dpkg/info# nano texlive-xetex.postinst
> root@beaglebone:/var/lib/dpkg/info# cat texlive-xetex.postinst
> #!/bin/sh
> 
> set -e -x
> # Automatically added by dh_installtex
> ##
> ## postinst-tex
> ##
> ## postinst snippets for everything TeX related (mktlsr, hyphenation
> ## patterns, formats, font maps)
> ##
> ## Authors:
> ##       Florent Rougon <[email protected]>
> ##       Norbert Preining <[email protected]>
> ##
> #
> 
> TEXMFTREES="/usr/share/texmf /var/lib/texmf"
> FULLTEXMFTREES="$TEXMFTREES /usr/share/texlive/texmf 
> /usr/share/texlive/texmf-dist"
> 
> #
> #
> dhit_libkpathsea_configured ()
> {
>     kpsewhich --version >/dev/null 2>&1
> }
> 
> dhit_update_lsr_files ()
> {
>     tempfile=$(mktemp -p /tmp mktexlsr.XXXXXXXX)
>     printf "Running mktexlsr. This may take some time... "
>     if mktexlsr $* > $tempfile 2>&1 ; then
>         rm -f $tempfile
>         echo "done."
>     else
>         exec >&2
>         echo
>         echo "mktexlsr $* failed. Output has been stored in"
>         echo "$tempfile"
>         echo "Please include this file if you report a bug."
>         echo
>         exit 1
>     fi
> }
> 
> 
> dhit_build_hyphen_format_if_format_exists ()
> {
>     v=$(kpsewhich -var-value TEXMFSYSVAR)
>     c=$(kpsewhich -var-value TEXMFSYSCONFIG)
>     TEXMFVAR="$v"
>     TEXMFCONFIG="$c"
>     export TEXMFVAR TEXMFCONFIG
>     fmtcnffile=$(kpsewhich --format='web2c files' fmtutil.cnf)
>     X=$(grep "^[[:space:]]*$1[[:space:]]" $fmtcnffile || true)
>     if [ -n "$X" ] ; then
>         dhit_build_format --byhyphen "$2"
>     fi
> }
> 
> dhit_build_format ()
> {
> 
>     tempfile=$(mktemp -p /tmp fmtutil.XXXXXXXX)
>     printf "Building format(s) $*.\n\tThis may take some time... "
>     if fmtutil-sys "$@" > $tempfile 2>&1 ; then
>         rm -f $tempfile
>         echo "done."
>     else
>         exec >&2
>         echo
>         echo "fmtutil-sys failed. Output has been stored in"
>         echo "$tempfile"
>         echo "Please include this file if you report a bug."
>         echo
>         exit 1
>     fi
> }
> 
> 
> case "$1" in
>     configure|abort-upgrade|abort-remove|abort-deconfigure)
>         update-updmap --quiet
>         update-language
>         update-fmtutil
>         if dhit_libkpathsea_configured; then
>             #
>             do_lsr=0
>             for i in format lsrfull ; do
>                 if [ "$i" = lsrfull ] ; then
>                     TEXMFTREES=$FULLTEXMFTREES
>                 fi
>                 if [ "$i" = allformats ] ; then
>                     do_lsr=1
>                 fi
>                 if [ "$i" = format ] ; then
>                     do_lsr=1
>                 fi
>             done
>             if [ $do_lsr = 1 ] ; then
>                 if which mktexlsr >/dev/null; then
>                     dhit_update_lsr_files $TEXMFTREES
>                 fi
>             fi
>             for i in format lsrfull ; do
>                 if [ "$i" = lsr ] ; then
>                     if [ $do_lsr = 0 ] ; then
>                         update-texmf-config lsr
>                     fi
>                 fi
>                 if [ "$i" = lsrfull ] ; then
>                     if [ $do_lsr = 0 ] ; then
>                         update-texmf-config lsrfull
>                     fi
>                 fi
>                 if [ "$i" = map ] ; then
>                     update-texmf-config map
>                 fi
>                 if [ "$i" = allformats ] ; then
>                     dhit_build_format --all
>                 fi
>                 if [ "$i" = format ] ; then
>                     for fmt in 10texlive-xetex ; do
>                         if [ -r "/etc/texmf/fmt.d/$fmt.cnf" ] ; then
>                             dhit_build_format --all --cnffile 
> "/etc/texmf/fmt.d/$fmt.cnf"
>                         else
>                             echo "config file /etc/texmf/fmt.d/$fmt.cnf not 
> available"
>                         fi
>                     done
>                 fi
>                 if [ "$i" = hyphen ] ; then
>                     update-texmf-config hyphen
>                 fi
>             done
>         fi
>     ;;
> 
> esac
> 
> # End automatically added section
> root@beaglebone:/var/lib/dpkg/info# dpkg --configure -a
> root@beaglebone:/var/lib/dpkg/info# 
> 
> 
> (as you can see no output. not lots like expected!)
> 
> 
> 
>> On Wed, Jun 4, 2014 at 8:14 PM, Norbert Preining <[email protected]> wrote:
>> On Wed, 04 Jun 2014, Eric Fort wrote:
>> > modified  that allows things to run:
>> 
>> Yeah, sure, adding
>>         exit 0
>> helps.
>> 
>> Please *remove* the
>>         exit 0 line
>> Add a
>>         set -x
>> line
>> (yeah, then there are two set lines. You can also write
>>         set -e -x
>> if you prefer)
>> 
>> Norbert
>> 
>> ------------------------------------------------------------------------
>> PREINING, Norbert                               http://www.preining.info
>> JAIST, Japan                                 TeX Live & Debian Developer
>> GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0  ACF0 6CAC A448 860C DC13
>> ------------------------------------------------------------------------
> 

Reply via email to