Bug#492655: tex-common: fails to install - no such file /usr/local/texmf/emacs
Package: tex-common
Version: 1.11.1
Severity: grave
Justification: 9.1.2
Setting up tex-common (1.11.1) ...
Replacing config file /etc/texmf/texmf.d/85Misc.cnf with new version
Replacing config file /etc/texmf/texmf.cnf with new version
chown: cannot access `/usr/local/texmf/emacs': No such file or directory
dpkg: error processing tex-common (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
tex-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
$ ls /usr/local/
bin games include lib man sbin share src
I don't see that tex-common should be doing anything with /usr/local/
anyway - I could have installed stuff in there from local builds and
tex-common comes along and replaces things (or worse, it currently tries
to and fails!).
To me, #475077 should have been a won't fix. Why should support for a
non-free package trample over user files?
Anyway, as regards this bug and the failure to complete the postinst:
Policy 9.1.2
As mandated by the FHS, packages must not place any files in /usr/local,
either by putting them in the file system archive to be unpacked by dpkg
or by manipulating them in their maintainer scripts.
However, the package may create empty directories below /usr/local so
that the system administrator knows where to place site-specific files.
These are not directories in /usr/local, but are children of directories
in /usr/local. These directories (/usr/local/*/dir/) should be removed
on package removal if they are empty.
tex-common is trying to create /usr/local/texmf when all that Policy
allows is /usr/local/share/texmf or some other subdirectory of the
existing contents of /usr/local:
$ ls /usr/local/
bin games include lib man sbin share src
Policy does NOT allow /usr/local/foo, only /usr/local/*/foo where the
subdirectory of /usr/local/ must already exist, like /usr/local/share/
/usr/local/share/texmf/ does exist (now) so presumably this is a typo in
the NMU:
tex-common.postinst
- chown root:staff /usr/local/texmf/emacs
+ chown root:staff /usr/local/share/texmf/emacs
?
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.25-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages tex-common depends on:
ii debconf 1.5.23 Debian configuration management sy
ii ucf 3.007 Update Configuration File: preserv
tex-common recommends no packages.
Versions of packages tex-common suggests:
ii debhelper 7.0.16 helper programs for debian/rules
Versions of packages tetex-bin depends on:
ii texlive 2007.dfsg.1-3 TeX Live: A decent selection of th
Versions of packages tetex-extra depends on:
ii texlive 2007.dfsg.1-3 TeX Live: A decent selection of th
ii texlive-bibtex-extra 2007.dfsg.3-2 TeX Live: Extra BibTeX styles
ii texlive-font-utils 2007.dfsg.2-3 TeX Live: TeX font-related program
ii texlive-fonts-extra 2007.dfsg.3-2 TeX Live: Extra fonts
ii texlive-lang-croatian 2007.dfsg.3-3 TeX Live: Croatian
ii texlive-lang-cyrillic 2007.dfsg.3-3 TeX Live: Cyrillic
ii texlive-lang-czechslovak 2007.dfsg.3-3 TeX Live: Czech/Slovak
ii texlive-lang-danish 2007.dfsg.3-3 TeX Live: Danish
ii texlive-lang-dutch 2007.dfsg.3-3 TeX Live: Dutch
ii texlive-lang-finnish 2007.dfsg.3-3 TeX Live: Finnish
ii texlive-lang-french 2007.dfsg.3-3 TeX Live: French
ii texlive-lang-german 2007.dfsg.3-3 TeX Live: German
ii texlive-lang-greek 2007.dfsg.3-3 TeX Live: Greek typesetting
ii texlive-lang-hungarian 2007.dfsg.3-3 TeX Live: Hungarian
ii texlive-lang-italian 2007.dfsg.3-3 TeX Live: Italian
ii texlive-lang-latin 2007.dfsg.3-3 TeX Live: Latin
ii texlive-lang-mongolian 2007.dfsg.3-3 TeX Live: Mongolian
ii texlive-lang-norwegian 2007.dfsg.3-3 TeX Live: Norwegian
ii texlive-lang-other 2007.dfsg.3-3 TeX Live: Other hyphenation files
ii texlive-lang-polish 2007.dfsg.3-3 TeX Live: Polish
ii texlive-lang-portuguese 2007.dfsg.3-3 TeX Live: Portuguese
ii texlive-lang-spanish 2007.dfsg.3-3 TeX Live: Spanish
ii texlive-lang-swedish 2007.dfsg.3-3 TeX Live: Swedish
ii texlive-lang-vietnamese 2007.dfsg.3-3 TeX Live: Vietnamese
ii texlive-latex-extra 2007.dfsg.3-2 TeX Live: LaTeX supplementary pack
ii texlive-math-extra 2007.dfsg.3-2 TeX Live: Advanced math typesettin
ii texlive-pictures 2007.dfsg.1-3 TeX Live: Packages for drawings gr
ii texlive-pstricks 2007.dfsg.3-2 TeX Live: PSTricks packages
ii texlive-publishers 2007.dfsg.3-2 TeX Live: Support for publishers
Versions of packages texlive-base depends on:
ii texlive-base-bin 2007.dfsg.2-3 TeX Live: Essential binaries
ii texlive-common 2007.dfsg.1-3 TeX Live: Base component
ii texlive-doc-base 2007.dfsg.1-1 TeX Live: Base documentation
-- debconf information:
tex-common/check_texmf_wrong:
tex-common/check_texmf_missing:
tex-common/singleuser: true
Reply to: