Bug#350992: (Not) Moving all stuff to TEXMFDIST

2006-02-20 Thread Frank Küster
Ralf Stubner [EMAIL PROTECTED] wrote:

 [including #350992 again that I had removed previously by accident]

 On Sun, Feb 19, 2006 at 18:36 +0100, Norbert Preining wrote:
 On Son, 19 Feb 2006, Ralf Stubner wrote:
  Indeed it looks as if the mktex* in TEXMFMAIN/web2c as well as their
  configuration files mktex*.opt are explicitly searched in TEXMFMAIN.
  Therefore I would suggest to keep them there. The same for tcfmgr and
  related files in TEXMFMAIN/texconfig.
 
 Good, can we create a list?

I have added a remark in the Policy, but I guess we'd rather not include
the list there, okay?

 If we decide to keep pool files in TEXMFMAIN, this requirement should be
 documented in the TeX Policy.

The sentence is:

  Instead, the basic TeX packages install their files into their TEXMFDIST
  directories [1] , while TEXMFMAIN is used by TeX add-on packages for
  their files and allows them to shadow older versions provided by the
- basic TeX packages. 
+ basic TeX packages. A couple of files from the basic TeX packages still
+ need to be placed in TEXMFMAIN [2].

with the footnote [2]: 

Reasons include hardcoded paths in executables as well as the need for
e.g. pool files to exactly match the binaries' version, so that
shadowing must be prevented.

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




Bug#350992: (Not) Moving all stuff to TEXMFDIST

2006-02-20 Thread Ralf Stubner
Frank Küster wrote:
 Ralf Stubner [EMAIL PROTECTED] wrote:
 
 [including #350992 again that I had removed previously by accident]

 On Sun, Feb 19, 2006 at 18:36 +0100, Norbert Preining wrote:
 On Son, 19 Feb 2006, Ralf Stubner wrote:
  Indeed it looks as if the mktex* in TEXMFMAIN/web2c as well as their
  configuration files mktex*.opt are explicitly searched in TEXMFMAIN.
  Therefore I would suggest to keep them there. The same for tcfmgr and
  related files in TEXMFMAIN/texconfig.
 
 Good, can we create a list?
 
 I have added a remark in the Policy, but I guess we'd rather not include
 the list there, okay?

Yes. The list is useful for coordinating, but not policy material.

 If we decide to keep pool files in TEXMFMAIN, this requirement should be
 documented in the TeX Policy.
 
 The sentence is:
 
   Instead, the basic TeX packages install their files into their TEXMFDIST
   directories [1] , while TEXMFMAIN is used by TeX add-on packages for
   their files and allows them to shadow older versions provided by the
 - basic TeX packages. 
 + basic TeX packages. A couple of files from the basic TeX packages still
 + need to be placed in TEXMFMAIN [2].
 
 with the footnote [2]: 
 
 Reasons include hardcoded paths in executables as well as the need for
 e.g. pool files to exactly match the binaries' version, so that
 shadowing must be prevented.

Looks good.

cheerio
ralf



Bug#350992: (Not) Moving all stuff to TEXMFDIST

2006-02-20 Thread Norbert Preining
On Son, 19 Feb 2006, Ralf Stubner wrote:
 Ok, files in tetex-bin that I would suggest to keep in TEXMFMAIN:
 
 mktex*:
 
 /usr/share/texmf/web2c/mktex.opt
 /usr/share/texmf/web2c/mktexdir
 /usr/share/texmf/web2c/mktexdir.opt
 /usr/share/texmf/web2c/mktexnam
 /usr/share/texmf/web2c/mktexnam.opt
 /usr/share/texmf/web2c/mktexupd

Hmmm, unfortunately these files cannot be move away, but this is a bug I
would say in fmtutil etc. In most of the places these scripts are
searched with kpsewhich web2c files, so they would be found everywhere,
only in fmtutil (and maybe other places) there are functions defined
which do NOT use this:
mktexupd()
{
  initTexmfMain
  $MT_TEXMFMAIN/web2c/mktexupd $@
}

If it would use MT_MKTEXUPD which is set in cache_vars:
  : ${MT_VARTEXFONTS=`kpsewhich --expand-var='$VARTEXFONTS' | sed 's%^!!%%'`}
  : ${MT_MKTEXNAM=`kpsewhich --format='web2c files' mktexnam`}
  : ${MT_MKTEXNAM_OPT=`kpsewhich --format='web2c files' mktexnam.opt`}
  : ${MT_MKTEXDIR=`kpsewhich --format='web2c files' mktexdir`}
  : ${MT_MKTEXDIR_OPT=`kpsewhich --format='web2c files' mktexdir.opt`}
  : ${MT_MKTEXUPD=`kpsewhich --format='web2c files' mktexupd`}
  : ${MT_MKTEX_CNF=`kpsewhich --format='web2c files' mktex.cnf`}
  : ${MT_MKTEX_OPT=`kpsewhich --format='web2c files' mktex.opt`}
  export MT_VARTEXFONTS MT_MKTEXNAM MT_MKTEXNAM_OPT MT_MKTEXDIR
  export MT_MKTEXDIR_OPT MT_MKTEXUPD MT_MKTEX_CNF MT_MKTEX_OPT
it would be nice ;-)

I build texlive packages with all the files but those listed above moved
to texmf-texlive, tests will show ...

Best wishes

Norbert

---
Dr. Norbert Preining preining AT logic DOT at Università di Siena
gpg DSA: 0x09C5B094  fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
---
WHISSENDINE (n.)
The nose which occurs (often by night) in a strange house, which is
too short and too irregular for you ever to be able to find out what
it is and where it comes from.
--- Douglas Adams, The Meaning of Liff


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



Bug#350992: (Not) Moving all stuff to TEXMFDIST

2006-02-19 Thread Ralf Stubner
[including #350992 again that I had removed previously by accident]

On Sun, Feb 19, 2006 at 18:36 +0100, Norbert Preining wrote:
 On Son, 19 Feb 2006, Ralf Stubner wrote:
  Indeed it looks as if the mktex* in TEXMFMAIN/web2c as well as their
  configuration files mktex*.opt are explicitly searched in TEXMFMAIN.
  Therefore I would suggest to keep them there. The same for tcfmgr and
  related files in TEXMFMAIN/texconfig.
 
 Good, can we create a list?

Ok, files in tetex-bin that I would suggest to keep in TEXMFMAIN:

mktex*:

/usr/share/texmf/web2c/mktex.opt
/usr/share/texmf/web2c/mktexdir
/usr/share/texmf/web2c/mktexdir.opt
/usr/share/texmf/web2c/mktexnam
/usr/share/texmf/web2c/mktexnam.opt
/usr/share/texmf/web2c/mktexupd


tcfmgr:

/usr/share/texmf/texconfig/g/generic
/usr/share/texmf/texconfig/v/vt100
/usr/share/texmf/texconfig/x/xterm
/usr/share/texmf/texconfig/README
/usr/share/texmf/texconfig/generic
/usr/share/texmf/texconfig/tcfmgr
/usr/share/texmf/texconfig/tcfmgr.map


pool files:

/usr/share/texmf/web2c/omega.pool
/usr/share/texmf/web2c/aleph.pool
/usr/share/texmf/web2c/pdfetex.pool
/usr/share/texmf/web2c/pdfxtex.pool
/usr/share/texmf/web2c/tex.pool
/usr/share/texmf/web2c/mf.pool
/usr/share/texmf/web2c/mp.pool
/usr/share/texmf/web2c/pdfetex-pl.pool

According to your list, texlive has no pdfxtex.pool (and probably no
pdfxtex binary), but the rest is the same.

The problem here is, of course, what Frank remarked in #350992. The
TeX Policy says that all files should go to TEXMFDIST (we can change
that if we want) and the mktex*opt files are sort of configuration
files. However, those are explicitly searched in TEXMFMAIN, hence one
can't shadow them without significant changes to to the mktex* scripts
(and probably tcfmgr and other files). Doesn't sound like a good idea to
me.

   See attached list.
  
  I think most of these files could go to TEXMFDIST. The exceptions are
  mktex* et al. and tcfmgr et al. The pool files are a corner case where
  one can argue for both TEXMFMAIN and TEMXFDIST. I would prefer to keep
  them in TEXMFMAIN, though.
 
 Good idea, who is replacing the binaries really also has to replace the
 pool files. They should not be overrideable.

If we decide to keep pool files in TEXMFMAIN, this requirement should be
documented in the TeX Policy.

cheerio
ralf


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



Bug#350992: (Not) Moving all stuff to TEXMFDIST

2006-02-18 Thread Ralf Stubner
[ CCing relevant tetex-bin bug #350992 ]

On Sat, Feb 18, 2006 at 11:09 +0100, Norbert Preining wrote:

 Well, so trivial it is unfortunately not. tcfmgr is searched in
 TEXMFMAIN, which will for sure break also in tetex.

That is problematic indeed. One could change the way tcfmgr is searched,
but I am not sure it is worth it.
 
 In fact on second thought I don't think that we should *really* do this.
 Other Debian packages can override other latex/tex packages, but they
 should not be able to hide so-to-say system stuff.

I don't know what texlive installs in TEXMFMAIN. For tetex-bin we have

* some mktex* scripts and option files web2c

* pool files 

* dvips header files

* tcfmgr and related files

* pixmaps and configuration files for xdvi

As you noted, tcfmgr is explicitly searched in TEXMFMAIN. I am not sure
about the mktex* scripts. Everything else should be possible to replace.
Although the system would break badly if one where to replace the pool
files without replacing the binaries. And if somebody provides a package
with a more recent pdfTeX, it probably would be cleaner if /both/ binary
and pool file were diverged.

cheerio
ralf


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



Bug#350992: (Not) Moving all stuff to TEXMFDIST

2006-02-18 Thread Norbert Preining
Hi Ralf, hi all!

On Sam, 18 Feb 2006, Ralf Stubner wrote:
  Well, so trivial it is unfortunately not. tcfmgr is searched in
  TEXMFMAIN, which will for sure break also in tetex.
 
 That is problematic indeed. One could change the way tcfmgr is searched,
 but I am not sure it is worth it.

I would say no. We wouldn't be sure that we find all places where it is
actually expected that a file is in TEXMFMAIN. And I don't want to patch
many files.

 I don't know what texlive installs in TEXMFMAIN. For tetex-bin we have

See attached list.

Best wishes

Norbert

---
Dr. Norbert Preining preining AT logic DOT at Università di Siena
gpg DSA: 0x09C5B094  fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
---
IPSWICH (n.)
The sound at the other end of the telephone which tells you that the
automatic exchange is working very hard but is intending not actually
to connect you this time, merely to let you know how difficult it is.
--- Douglas Adams, The Meaning of Liff
/usr/share/texmf/tex/latex/dvipdfm/dvipdfm.def
/usr/share/texmf/tex/generic/config/pdftexconfig.tex
/usr/share/texmf/tex/generic/config/pdftex-dvi.tex
/usr/share/texmf/xdvi/XDvi
/usr/share/texmf/xdvi/pixmaps/toolbar.xpm
/usr/share/texmf/xdvi/pixmaps/toolbar2.xpm
/usr/share/texmf/dvips/base/color.pro
/usr/share/texmf/dvips/base/finclude.pro
/usr/share/texmf/dvips/base/tex.pro
/usr/share/texmf/dvips/base/texc.pro
/usr/share/texmf/dvips/base/texps.pro
/usr/share/texmf/dvips/base/special.pro
/usr/share/texmf/dvips/base/hps.pro
/usr/share/texmf/dvips/base/crop.pro
/usr/share/texmf/dvips/tetex/config.outline
/usr/share/texmf/dvips/tetex/config.dfaxhigh
/usr/share/texmf/dvips/tetex/config.pk
/usr/share/texmf/dvips/tetex/config.builtin35
/usr/share/texmf/dvips/tetex/config.pdf
/usr/share/texmf/dvips/tetex/config.www
/usr/share/texmf/dvips/tetex/config.gsftopk
/usr/share/texmf/dvips/tetex/config.download35
/usr/share/texmf/dvips/tetex/config.dfaxlo
/usr/share/texmf/dvips/gsftopk/render.ps
/usr/share/texmf/fonts/enc/dvips/tetex/aae443f0.enc
/usr/share/texmf/fonts/enc/dvips/tetex/mtex.enc
/usr/share/texmf/fonts/enc/dvips/tetex/74afc74c.enc
/usr/share/texmf/fonts/enc/dvips/tetex/bbad153f.enc
/usr/share/texmf/fonts/enc/dvips/tetex/b6a4d7c7.enc
/usr/share/texmf/fonts/enc/dvips/tetex/10037936.enc
/usr/share/texmf/fonts/enc/dvips/tetex/71414f53.enc
/usr/share/texmf/fonts/enc/dvips/tetex/0ef0afca.enc
/usr/share/texmf/fonts/enc/dvips/tetex/f7b6d320.enc
/usr/share/texmf/fonts/enc/dvips/tetex/1b6d048e.enc
/usr/share/texmf/fonts/enc/dvips/tetex/d9b29452.enc
/usr/share/texmf/fonts/enc/dvips/tetex/09fbbfac.enc
/usr/share/texmf/fonts/map/dvips/tetex/mt-belleek.map
/usr/share/texmf/fonts/map/dvips/tetex/dvips35.map
/usr/share/texmf/fonts/map/dvips/tetex/mathpple.map
/usr/share/texmf/fonts/map/dvips/tetex/pdftex35.map
/usr/share/texmf/fonts/map/dvips/tetex/dvipdfm35.map
/usr/share/texmf/fonts/map/dvips/tetex/ps2pk35.map
/usr/share/texmf/fonts/map/dvips/tetex/mt-plus.map
/usr/share/texmf/fonts/map/dvips/tetex/mt-yy.map
/usr/share/texmf/fonts/map/dvips/updmap/psfonts_t1.map
/usr/share/texmf/fonts/map/dvips/updmap/psfonts_pk.map
/usr/share/texmf/fonts/map/dvips/updmap/ps2pk.map
/usr/share/texmf/fonts/map/dvips/updmap/download35.map
/usr/share/texmf/fonts/map/dvips/updmap/builtin35.map
/usr/share/texmf/fonts/map/dvips/updmap/psfonts.map
/usr/share/texmf/fonts/map/dvipdfm/dvipdfmx/cid-x.map
/usr/share/texmf/fonts/map/dvipdfm/tetex/cm-dvipdfm-fix.map
/usr/share/texmf/fonts/map/dvipdfm/updmap/dvipdfm_ndl14.map
/usr/share/texmf/fonts/map/dvipdfm/updmap/dvipdfm.map
/usr/share/texmf/fonts/map/dvipdfm/updmap/dvipdfm_dl14.map
/usr/share/texmf/fonts/map/pdftex/updmap/pdftex_dl14.map
/usr/share/texmf/fonts/map/pdftex/updmap/pdftex.map
/usr/share/texmf/fonts/map/pdftex/updmap/pdftex_ndl14.map
/usr/share/texmf/web2c/maz-pl.tcx
/usr/share/texmf/web2c/cp1250cs.tcx
/usr/share/texmf/web2c/natural.tcx
/usr/share/texmf/web2c/cp1250t1.tcx
/usr/share/texmf/web2c/cp1250pl.tcx
/usr/share/texmf/web2c/il1-t1.tcx
/usr/share/texmf/web2c/cp852-cs.tcx
/usr/share/texmf/web2c/mktexnam.opt
/usr/share/texmf/web2c/mf.pool
/usr/share/texmf/web2c/tex.pool
/usr/share/texmf/web2c/mktex.opt
/usr/share/texmf/web2c/cp227.tcx
/usr/share/texmf/web2c/cp852-pl.tcx
/usr/share/texmf/web2c/kam-cs.tcx
/usr/share/texmf/web2c/amiga-pl.tcx
/usr/share/texmf/web2c/kam-t1.tcx
/usr/share/texmf/web2c/empty.tcx
/usr/share/texmf/web2c/il2-cs.tcx
/usr/share/texmf/web2c/macce-t1.tcx
/usr/share/texmf/web2c/macce-pl.tcx
/usr/share/texmf/web2c/texmf.cnf-4WIN
/usr/share/texmf/web2c/context.cnf
/usr/share/texmf/web2c/tcvn-t5.tcx
/usr/share/texmf/web2c/il2-t1.tcx
/usr/share/texmf/web2c/il2-pl.tcx
/usr/share/texmf/web2c/viscii-t5.tcx
/usr/share/texmf/web2c/pdfetex.pool
/usr/share/texmf/web2c/mktexdir
/usr/share/texmf/web2c/mktexnam