Date: Tue, 02 Sep 2014 10:43:33 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 193250] New: bsd.tex.mk: deleting TeX related packages leaves removed file names in ls-R files Message-ID: <bug-193250-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193250 Bug ID: 193250 Summary: bsd.tex.mk: deleting TeX related packages leaves removed file names in ls-R files Product: Ports Tree Version: Latest Hardware: Any OS: Any Status: Needs Triage Severity: Affects Only Me Priority: --- Component: Infrastructure Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: hiroto.kagotani@gmail.com For example in +MANIFEST file of tex-dvipdfmx-20140317.txz, there is an entry: "pre-deinstall":"for D in /usr/local/share/texmf /usr/local/share/texmf-dist /usr/local/share/texmf-local /usr/local/share/texmf-var /usr/local/share/texmf-config; do if [ -r $D/ls-R ]; then /usr/local/bin/mktexlsr $D; fi; done\ncd /usr/local" This means that "mktexlsr" is executed on "pre-deinstall" phase when files are not yet removed. As the result, removed file names are still listed in ls-R files. The following log shows deleting tex-dvipdfmx does not affect the size of ls-R file, while manually executed mktexlsr does. (In my environment 10.0R and64): # pkg install texlive-full # pkg delete texlive-full tex-dvipdfmx # ls -l /usr/local/share/texmf-dist/ls-R -rw-r--r-- 1 root wheel 2246685 Sep 2 19:26 /usr/local/share/texmf-dist/ls-R # mktexlsr # ls -l /usr/local/share/texmf-dist/ls-R -rw-r--r-- 1 root wheel 2243427 Sep 2 19:26 /usr/local/share/texmf-dist/ls-R # pkg install tex-dvipdfmx # ls -l /usr/local/share/texmf-dist/ls-R -rw-r--r-- 1 root wheel 2246685 Sep 2 19:28 /usr/local/share/texmf-dist/ls-R # pkg delete tex-dvipdfmx # ls -l /usr/local/share/texmf-dist/ls-R -rw-r--r-- 1 root wheel 2246685 Sep 2 19:28 /usr/local/share/texmf-dist/ls-R # mktexlsr # ls -l /usr/local/share/texmf-dist/ls-R -rw-r--r-- 1 root wheel 2243427 Sep 2 19:42 /usr/local/share/texmf-dist/ls-R Though apparently mktexlsr should be executed in "post-deinstall" phase, I can't tell how it can be implemented. -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-193250-13>