Bug 29154 - TeX resource settings from MAKE_ENV in print/jadetex port
Summary: TeX resource settings from MAKE_ENV in print/jadetex port
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: nik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-07-23 03:40 UTC by bradyn
Modified: 2005-06-01 15:41 UTC (History)
0 users

See Also:


Attachments
file.diff (427 bytes, patch)
2001-07-23 03:40 UTC, bradyn
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description bradyn 2001-07-23 03:40:00 UTC
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
Comment 1 dd freebsd_committer freebsd_triage 2001-07-23 06:13:42 UTC
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.
Comment 2 bradyn 2001-07-23 16:31:25 UTC
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
Comment 3 bradyn 2001-07-23 21:17:09 UTC
[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
Comment 4 Florent Thoumie 2005-04-19 14:18:00 UTC
	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
Comment 5 Florent Thoumie freebsd_committer freebsd_triage 2005-06-01 15:40:37 UTC
State Changed
From-To: open->closed

Committed, thanks for your report!