MAKE_ENV is used in the makefile to include ${FILESDIR}/TEXMFCNF, and the system-installed texmf.cnf; however, it assumes that TeX is installed in ${PREFIX}... instead kpsewhich could be used to find the TeX installation path, which won't break anything, but will allow those of us with non-standard installations to be able to build the port. Fix: Use kpsewhich to find the path to the TeX config for MAKE_ENV. How-To-Repeat: Have a slightly weird (!) installed-by-hand TeX installation like ours, and cd /usr/ports/print/jadetex make
Responsible Changed From-To: freebsd-ports->nik Over to maintainer. Nik: I don't know if it's appropriate (or if it will even work) to use a program installed by the port to check if it exists. Since it isn't already installed, the program, and thus make, should fail.
On Sun, 22 Jul 2001 22:15:00 PDT, dd@FreeBSD.org said: > >Nik: I don't know if it's appropriate (or if it will even work) to use a >program installed by the port to check if it exists. Since it isn't >already installed, the program, and thus make, should fail. I see what you mean... but since tex is a RUN_DEPEND, kpsewhich (which is part of the print/teTeX port), should get installed before the jadetex port looks for kpsewhich? That said, I'm probably reading it wrongly, and don't have a machine around here to try building from scratch on... -- Niall
[sorry for swamping ye with the emails... I'm not too familiar with the overall order in which the ports build process runs...] >On Sun, 22 Jul 2001 22:15:00 PDT, dd@FreeBSD.org said: >> >>Nik: I don't know if it's appropriate (or if it will even work) to >>use a program installed by the port to check if it exists. Since >>it isn't already installed, the program, and thus make, should fail. > > That said, I'm probably reading it wrongly, and don't have a machine Or am I? Since tex is also included as a BUILD_DEPENDS, shouldn't it get installed before the build process for jadetex starts? Or will MAKE_ENV be checked before all of that, and hence have a garbage value if kpsewhich is included in that? -- Niall
This won't fly if print/teTeX isn't installed before you try to install print/jadetex (read: when you type "make install"). I think you might want to use an extra variable for this (let's say TETEX_PREFIX?= ${PREFIX}) and replace ${PREFIX}/share/texmf with ${TETEX_PREFIX}/share/texmf. I guess that would work. I'll commit this in one week, unless Nik says it's not a good idea. -- Florent Thoumie flz@xbsd.org
State Changed From-To: open->closed Committed, thanks for your report!