Subject: Missing file in PLIST for print/tex-jadetex
To: None <tech-pkg@NetBSD.org>
From: D'Arcy J.M. Cain <darcy@NetBSD.org>
List: tech-pkg
Date: 06/14/2006 09:34:54
Hubert and I have been discussing this issue and he has suggested that
I bring it to tech-pkg for wider discussion.  Here is the issue.  If
you have set PKG_DEVELOPER to "YES" in your /etc/mk.conf and then
install print/tex-jadetex you get the following error:

=> Registering installation for tex-jadetex-3.13nb4
tex-jadetex-3.13nb4 requires installed package teTeX-bin-3.0nb13
tex-jadetex-3.13nb4 requires installed package tex-hugelatex-2.0nb3
=> Checking for missing run-time search paths in tex-jadetex-3.13nb4
=> Checking for work-directory references in tex-jadetex-3.13nb4
=> Checking file-check results for tex-jadetex-3.13nb4
ERROR: ************************************************************
ERROR: The following files are in /usr/pkg but not in the PLIST:
ERROR:         /usr/pkg/share/texmf/web2c/texmf.cnf-before-jadetex
*** Error code 1
Stop.

make: stopped in /usr/NetBSD/cvs/pkgsrc/print/tex-jadetex
*** Error code 1

Note:  It still installs but it won't continue if it was built as a
dependency of another package.  You can continue in the other package
by simply running make install again.  It will see that the dependent
package is already installed and continue.  You can also fix this by
removing PKG_DEVELOPER from /etc/mk.conf.  Neither of these seems
reasonable to me.

I thought that the simplest course is to simply make the following
change to PLIST but Hubert, while agreeing that the existing method
needs to be fixed, says that this is not the correct way.  I kind of
agree but I can't see any better way.  Any thoughts?

diff -u -p -u -r1.5 PLIST
--- PLIST       13 Nov 2005 05:30:11 -0000      1.5
+++ PLIST       14 Jun 2006 13:30:16 -0000
@@ -5,7 +5,7 @@ man/man1/jadetex.1
 man/man1/pdfjadetex.1
 @exec cp %D/${PKG_TEXMFPREFIX}/web2c/texmf.cnf %D/${PKG_TEXMFPREFIX}/web2c/texmf.cnf-before-jadetex
 ${PKG_TEXMFPREFIX}/web2c/texmf.cnf
-@unexec mv %D/${PKG_TEXMFPREFIX}/web2c/texmf.cnf-before-jadetex %D/${PKG_TEXMFPREFIX}/web2c/texmf.cnf
+@unexec cp %D/${PKG_TEXMFPREFIX}/web2c/texmf.cnf-before-jadetex %D/${PKG_TEXMFPREFIX}/web2c/texmf.cnf
 share/doc/jadetex/Makefile
 share/doc/jadetex/demo.sgm
 share/doc/jadetex/docbook.dsl
@@ -19,6 +19,7 @@ share/sgml/jade/pdfjadetex.ini
 share/texmf/tex/jadetex/dsssl.def
 share/texmf/tex/jadetex/jadetex.ltx
 share/texmf/web2c/jadetex.fmt
+share/texmf/web2c/texmf.cnf-before-jadetex
 share/texmf/web2c/pdfjadetex.fmt
 @dirrm ${PKG_TEXMFPREFIX}/tex/jadetex
 @dirrm share/doc/jadetex


-- 
D'Arcy J.M. Cain <darcy@NetBSD.org>
http://www.NetBSD.org/