Bug#401903: should not ship /etc/apache2/sites-available/tetex-doc
Uwe Kleine-Koenig <zeisberg@informatik.uni-freiburg.de> wrote:
>> These packages (actually those for apache2) are only Suggested. Should
>> we move this to Recommends?
> I wouldn't do that. In my eyes Suggested is fine.
I think so, too: Many who want tetex-doc will not want an apache
running.
> There are still a few questions/issues open for me:
>
> 1) are really both Alias+<Directory> Directives needed?
> `-> On http://localhost/texmf-tetex/doc/texdoc.php, the entry
> "KOMA-Script User's Guide" links to
> http://localhost/texmf/doc/latex/koma-script/scrguien.pdf.gz while
> "ConTeXt: TeXEXEC manual" points to
> http://localhost/texmf-tetex/context/base/mtexexec.pdf
I think only the texmf-tetex directory alias should be needed to make it
work, plus a change to config.php:
$texmftrees['fs'] = array( '' => '../../../texmf-tetex/',
'main' => '../../../texmf',
'local' => '../../../../local/share/texmf/');
$texmftrees['url'] = array( '' => '../../../texmf-tetex/',
'main' => '../../../texmf/',
'local' => '../../../../local/share/texmf/' );
> (BTW: That file doesn't exist, in version 2.0.2-9 of tetex-doc
> /usr/share/doc/texmf/context/base/mtexexec.pdf.gz was included.)
It's in tetex-doc-nonfree. And that's the thing I don't understand:
Although in item.php, the function that looks for the file is supposed
to loop over all trees in $texmftrees['fs'] and report the path that is
found, it doesn't. And although I have no experience with PHP, it's
easy to read and I think I understand everything but
if ($_GET[$treekey] <> "no")
> 2) The whole thing needs to be duplicated once more for
>
> <IfModule mod_php4.c>
> ...
> </IfModule>
Yes, that's true.
>
> 3) If php[45] is not installed (or disabled)
> http://localhost/doc/tetex-doc/texdoc.php still shows the
> php-source. Don't know if that's OK.
Since the source isn't secret, I don't see a problem.
> 4) Maybe you should consider something like:
>
> if test -e /etc/apache2/mods-enabled/php5.load ||
> test -e /etc/apache2/mods-enabled/php4.load; then
> if apache2ctl configtest 2>/dev/null; then
> invoke-rc.d apache2 force-reload || true
> else
> echo "Your apache2 configuration is broken, so we're not restarting it for you."
> fi
> fi
>
> (stolen from libapache2-mod-php5.postinst)
Thanks for digging that up, I also had the thought we should restart
apache.
Regards, Frank
--
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)
Reply to: