[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Please let tetex-bin 3.0-28 go into testing



Dear release managers,

I'd like to ask you to let tetex-bin 3.0-28 enter testing (after the
usual 10 days, unless the release goes so fast that we need to make that
shorter ;-).

This upload was done to fix bug #402763, which is harmless but rather
ugly.

The changes between 3.0-27 and 3.0-28 are IMHO risk-free and bring two
improvements:
  1. Fix bug #402763.
  2. Fix the man page for mktexlsr: the program's behavior was slighlty
     modified in tetex-bin 3.0-27 but this modification remained
     undocumented until 3.0-28 (however, only misguided users[1] should be
     affected by the modification).

,----[ changelog.Debian for tetex-bin 3.0-28 ]
| tetex-bin (3.0-28) unstable; urgency=low
| 
|   * mktexlsr: print a useful message instead of "no" when called by root
|     with no arguments (closes: #402763).
|   * mktexlsr.man: document the change due to the patch closing bug #294197
|     (cf. first changelog entry for 3.0-27).
| 
|  -- Florent Rougon <frn@debian.org>  Wed, 27 Dec 2006 23:22:03 +0100
`----

Apart for the update to the man page for mktexlsr, the only changes
between 3.0-27 and 3.0-28 are these to /usr/bin/mktexlsr:

--- mktexlsr	2006-12-07 18:17:00.000000000 +0100
+++ /usr/bin/mktexlsr	2006-12-27 23:44:43.000000000 +0100
@@ -73,7 +73,9 @@
 '
   set x `kpsewhich --show-path=ls-R | tr : '
 ' | sort | uniq`; shift
-  if test "`id -u`" -eq 0; then NOROOTHOME=true; echo "no"; fi;
+  if test "`id -u`" -eq 0; then
+      NOROOTHOME=true
+  fi
   IFS=$OIFS
 }
 
@@ -81,7 +83,10 @@
   # Prepend cwd if the directory was relative.
   case "$TEXMFLS_R" in
   "") continue ;;  # Strictly speaking, it is an error if this case is taken.
-  $HOME/*) if test -n "$NOROOTHOME"; then continue; fi ;;
+  $HOME/*) if test -n "$NOROOTHOME"; then
+               tty -s && echo "$progname: Skipping $TEXMFLS_R" >&2
+               continue
+           fi ;;
   /* | [A-z]:/*) ;;
   *)  TEXMFLS_R="`pwd`/$TEXMFLS_R"
   esac

If you're wary about the 'tty -s' stuff, just have a look at the rest of
mktexlsr and you'll see it's the way this script prints its usual
messages:

  tty -s && echo "$progname: Updating $db_file... " >&2
  
  [...]

  tty -s && echo "$progname: Done." >&2

Therefore, the changes in 3.0-28 should be safe and consistent with the
rest of mktexlsr.

Note (minor details):

  If you're careful enough, you'll notice that the fix in 3.0-28 is
  slightly different from the one I proposed in the bug log (#402763).
  Reason is, the change made in 3.0-27 does not ignore TEXMFHOME, but
  every TEXMF tree located strictly under /root. Therefore, the fix in
  3.0-28 is correct even in non-default configurations (where there
  could be other TEXMF trees under /root than TEXMFHOME, or even no
  TEXMFHOME at all---or TEXMFHOME could be in another place than /root,
  whatever), as it tells exactly which TEXMF trees are ignored.

Thanks for considering our request. Regards,


  [1] Those wanting mktexlsr to create or update ls-R files in
      directories located strictly under /root/.

-- 
Florent

Attachment: pgpqvflz6ol4y.pgp
Description: PGP signature


Reply to: