Bug 194791

Summary: missing texmf.cnf from devel/tex-kpathsea?
Product: Ports & Packages Reporter: Joseph Mingrone <jrm>
Component: Individual Port(s)Assignee: Hiroki Sato <hrs>
Status: Closed FIXED    
Severity: Affects Many People Flags: jrm: maintainer-feedback? (hrs)
Priority: ---    
Version: Latest   
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
build log of devel/tex-kpathsea-6.2.0 using poudriere-devel and a 10.1-RC4 jail none

Description Joseph Mingrone freebsd_committer freebsd_triage 2014-11-03 20:10:14 UTC
I just installed texlive-full on a 10.1-RC3 system.  It was a package built
with default options with poudriere-devel.  The installation finished
fine, but when trying to compile a latex document we saw:

warning: kpathsea: configuration file texmf.cnf not found in these
directories:....

Looking on another FreeBSD system with a working texlive, the file
/usr/local/share/texmf-dist/web2c/texmf.cnf existed and `pkg which` told
us it belonged to devel/tex-kpathsea.  Copying the file to the 10.1-RC3
system fixed the problem and `pkg which` on that system said the file was
from devel/tex-kpathsea, so it seems the file isn't getting installed.
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2014-11-03 20:10:14 UTC
Auto-assigned to maintainer hrs@FreeBSD.org
Comment 2 Hiroki Sato freebsd_committer freebsd_triage 2014-11-03 20:30:30 UTC
texmf.cnf should be installed by devel/tex-kpathsea.  I cannot investigate why your environment did not have it because your report does not include information about tex-kpathsea package.  Please re-submit the same PR with more details (specifically, log files of package building) and/or try the officially-provided package of tex-kpathsea if you need help.
Comment 3 Joseph Mingrone freebsd_committer freebsd_triage 2014-11-03 21:15:20 UTC
Created attachment 149003 [details]
build log of devel/tex-kpathsea-6.2.0 using poudriere-devel and a 10.1-RC4 jail
Comment 4 Joseph Mingrone freebsd_committer freebsd_triage 2014-11-03 21:17:24 UTC
Sorry.  I assumed since it was built in a clean 10.1-RC4 jail (I said 10.1-RC3 below, but it was actually RC4) with poudriere-devel it would be easy to reproduce.  I've attached the build log.
Comment 5 Joseph Mingrone freebsd_committer freebsd_triage 2014-11-03 21:18:45 UTC
The problematic part seems to be

===========================================================================
=======================<phase: build          >============================
===>  Building for tex-kpathsea-6.2.0
gmake[1]: Entering directory '/wrkdirs/usr/ports/devel/tex-kpathsea/work/texlive-20140525-source/texk/kpathsea'
echo a | grep -v b >/dev/null || { echo "*** grep broken, goodbye."; exit 1; }
echo "/* paths.h: Generated from texmf.cnf. */" >paths.tmp
/usr/bin/awk -f ./bsnl.awk ./texmf.cnf \
| sed -e 's/%.*//' -e 's/^[ 	]*//' -e 's/[ 	]*$//' \
| /usr/bin/awk -f ./cnf-to-paths.awk \
>>paths.tmp
Comment 6 Hiroki Sato freebsd_committer freebsd_triage 2014-11-03 22:55:08 UTC
Why this part is problematic?

I can see that texmf.cnf is installed from the following line:

> install  -o root -g wheel -m 0644 './texmf.cnf' '/wrkdirs/usr/ports/devel/tex-kpathsea/work/stage/usr/local/share/texmf-dist/web2c/texmf.cnf'

Please check the contents of your package tarball and see if it has texmf.cnf or not.  The build log shows that texmf.cnf is installed into the stage directory and the package tarball contains it.
Comment 7 Joseph Mingrone freebsd_committer freebsd_triage 2014-11-04 06:15:21 UTC
Indeed the file is there.

To test further, I uninstalled all tex-related ports, then installed only devel/tex-kpathsea and the file was installed.  Next, I incrementally installed all the other texlive packages to see if anything was messing with the file, but it was still there, so I'm not sure what's going on.  The only thing I can say with certainty is that the file wasn't there immediately after a `pkg install texlive-full`, but now it is?  I even uninstalled all tex-related packages a second time and did a `pkg install texlive-full`  and it was there.  What changed, I have no idea?
Comment 8 Hiroki Sato freebsd_committer freebsd_triage 2014-11-04 21:35:10 UTC
Please reopen this PR if you could reproduce the symptom.