Page MenuHomeFreeBSD

Mk/bsd.tex.mk: fix 'check-plist' for some TeX ports
AbandonedPublic

Authored by avilla on Jun 28 2015, 12:27 PM.

Details

Reviewers
hrs
Group Reviewers
portmgr
Summary

print/tex-formats (and possibly other ports) fails on 'check-plist':

===> Checking for items in STAGEDIR missing from pkg-plist
Error: Orphaned: @dir %%TEXMFDISTDIR%%

This is due to the directory being created in 'do-fmtutil' but not being correctly removed:

/bin/mkdir -p /scratch/tmp/avilla/wrkdirs/tex-formats-20140525_1/stage/scratch/tmp/avilla/fakeroot/usr/local/share/texmf-var/web2c  /scratch/tmp/avilla/wrkdirs/tex-formats-20140525_1/stage/scratch/tmp/avilla/fakeroot/usr/local/share/texmf-dist/web2c

[...]

/bin/rmdir /scratch/tmp/avilla/wrkdirs/tex-formats-20140525_1/stage/scratch/tmp/avilla/fakeroot/usr/local/share/texmf-dist/web2c || true

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

avilla retitled this revision from to Mk/bsd.tex.mk: fix 'check-plist' for some TeX ports.
avilla updated this object.
avilla edited the test plan for this revision. (Show Details)
avilla added a reviewer: hrs.
avilla set the repository for this revision to rP FreeBSD ports repository.
avilla edited edge metadata.
avilla updated this object.
mat added inline comments.
Mk/bsd.tex.mk
240–241

mmm, would ${RMDIR} -p ${STAGEDIR}${PREFIX}/${TEXMFDISTDIR}/web2c || ${TRUE} work too ?

Mk/bsd.tex.mk
240–241

Sure it would, but I was concerned about possible weird RMDIR redefinition (I can't think of any, actually). It would certainly be a cleaner solution.

hrs edited edge metadata.

Thank you. I think this patch is correct. TEXMFDISTDIR in STAGEDIR always has web2c/texmf.cnf only, and the whole directory tree is used for temporary purpose.

I see it was committed in r392534 already, sorry.