reassign 607857 tex-common tags 607857 patch thanks Hi,
I've tried it with pbuilder chroot environment, installed tex-common. >r...@hp115:/# ls -l /usr/local/share/ >total 0 >drwxrwsr-x 2 root staff 40 Dec 21 08:40 man >drwxrwsr-x 2 root staff 40 Dec 24 01:26 texmf Oops, there's texmf! >r...@hp115:/# dpkg -L tex-common |grep local >r...@hp115:/# However, its package doesn't have such directory. >henr...@hp115:~/tmp/tex-common-2.08/debian$ grep "/usr/local/share/texmf" -r >./ >./postinst.in: if [ ! -e /usr/local/share/texmf ] >./postinst.in: if mkdir -p /usr/local/share/texmf 2>/dev/null >./postinst.in: chown root:staff /usr/local/share/texmf >./postinst.in: chmod 2775 /usr/local/share/texmf >./postrm.in: # try to remove /usr/local/share/texmf if it is empty >./postrm.in: #rm -f /usr/local/share/texmf/ls-R 2>/dev/null || true >./postrm.in: rmdir --ignore-fail-on-non-empty /usr/local/share/texmf/ >2>/dev/null || true >./changelog: * Remove the code in postrm that removes >/usr/local/share/texmf/ls-R, >./changelog: /usr/local/share/texmf/ls-R (closes: #528021) >./changelog: * Create empty /usr/local/share/texmf in postinst, remove in >prerm if >./changelog: * take over installation of /var/cache/fonts/*, >/usr/local/share/texmf >./prerm: rmdir /usr/local/share/texmf 2>/dev/null || true postinst script in tex-common package creates this. >tex-common (1.19) unstable; urgency=low > > [ Norbert Preining ] > * change dh_installtex generated postrm code to call update-texmf-config > only if it is present. That should be due to the policy, but it still > might happen that tex-common is not installed bug another package > depending on it is tried to be removed (see bug #531581). > (Closes: #530832) > * Remove the code in postrm that removes /usr/local/share/texmf/ls-R, > we are not allowed to do that (policy), but we try to remove that > directory if it is empty. (Closes: #528021) > > [ Frank Küster ] > * Make sure that tex-common's own postinst script does not create > /usr/local/share/texmf/ls-R (closes: #528021) Unfortunately, no, #528021 still exists. Here's a proposal patch to fix this issue. diff -Nru tex-common-2.08/debian/postinst.in tex-common-2.08+nmu1/debian/postinst.in --- tex-common-2.08/debian/postinst.in 2010-02-28 13:07:43.000000000 +0900 +++ tex-common-2.08+nmu1/debian/postinst.in 2010-12-24 10:39:01.000000000 +0900 @@ -385,18 +385,6 @@ dhit_build_format --all fi fi - - - # create empty dirs in /usr/local/share/ - if [ ! -e /usr/local/share/texmf ] - then - if mkdir -p /usr/local/share/texmf 2>/dev/null - then - chown root:staff /usr/local/share/texmf - chmod 2775 /usr/local/share/texmf - fi - fi - ;; *) ;; -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org