Bug 193250 - bsd.tex.mk: deleting TeX related packages leaves removed file names in ls-R files
Summary: bsd.tex.mk: deleting TeX related packages leaves removed file names in ls-R f...
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Tex Mailing List (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-02 10:43 UTC by hiroto.kagotani
Modified: 2022-03-04 19:08 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hiroto.kagotani 2014-09-02 10:43:33 UTC
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.
Comment 1 John Marino freebsd_committer freebsd_triage 2014-09-04 15:47:44 UTC
I'm not sure who owns bsd.tex.mk so assigning to portmgr who can reassign as necessary.
Comment 2 Mathieu Arnold freebsd_committer freebsd_triage 2014-09-04 15:54:29 UTC
$ grep MAINT Mk/bsd.tex.mk
TEX_MAINTAINER= hrs@FreeBSD.org

you're welcome.
Comment 3 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2022-02-19 22:56:12 UTC
TeX system has been updated to 2021. Please check if the issue still persists after update.