Bug 79353 - zh-CJK Makefile broken for teTeX 3.0
Summary: zh-CJK Makefile broken for teTeX 3.0
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: Sam Lawrance
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-30 07:00 UTC by Edmund Lian
Modified: 2005-08-01 16:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Edmund Lian 2005-03-30 07:00:09 UTC
portinstall chinese/CJK fails with teTeX 3.0 since makefile contains lines:

@${LN} -s ${PREFIX}/share/fonts/TrueType/bkai00mp.ttf ${ARPHICDIR}/arb5_
kai.ttf
@${LN} -s ${PREFIX}/share/fonts/TrueType/bsmi00lp.ttf ${ARPHICDIR}/arb5_
sung.ttf
@${LN} -s ${PREFIX}/share/fonts/TrueType/gbsn00lp.ttf ${ARPHICDIR}/argb_
sung.ttf
@${LN} -s ${PREFIX}/share/fonts/TrueType/gkai00mp.ttf ${ARPHICDIR}/argb_
kai.ttf
@${LN} -s ttf2pk ${PREFIX}/share/texmf/ttf2tfm

However: 
1. Symbolic links to Arphic fonts were already in place, perhaps due to a previous failed installation attempt. So makefile should be able to deal with this situation, and also guarantee proper removal of symlinks on installation failure.

Error message seen is:
ln: /usr/local/share/texmf/fonts/truetype/arphic/arb5_kai.ttf: File exists
*** Error code 1

2. Manually removing symlinks that cause failure above (#1) still results in failure. This time error message seen is:
grep: /usr/local/share/texmf/ttf2pk/ttfonts.map: No such file or directory
/usr/ports/chinese/CJK/scripts/post-install: cannot create /usr/local/share/texmf/ttf2pk/ttfonts.map: No such file or directory
*** Error code 2

How-To-Repeat: portinstall chinese/CJK when teTeX 3.0 is installed.
Comment 1 elian 2005-03-30 21:23:48 UTC
To confirm the problem, teTeX 3.0 was completely removed as per 
instructions in http://people.freebsd.org/~hrs/tetex-upgrade.txt 
(referenced in /usr/ports/UPDATING, 20050206). Then, running make 
install in /usr/ports/chinese/CJK fails with the following error messages:

<snip>
/bin/cp -R /usr/ports/chinese/CJK/work/cjk-4.5.2/examples 
/usr/local/share/examples/CJK
ln: /usr/local/share/texmf/fonts/truetype/arphic/arb5_kai.ttf: File exists
*** Error code 1

Stop in /usr/ports/chinese/CJK.
*** Error code 1

Stop in /usr/ports/chinese/CJK.
cp: data: No such file or directory
grep: /usr/local/share/texmf/fontname/special.map: No such file or directory
/usr/ports/chinese/CJK/scripts/post-install: cannot create 
/usr/local/share/texmf/fontname/special.map: No such file or directory
*** Error code 2

Stop in /usr/ports/chinese/CJK.
*** Error code 1

Stop in /usr/ports/chinese/CJK.
Comment 2 Sam Lawrance freebsd_committer freebsd_triage 2005-06-12 16:17:58 UTC
Responsible Changed
From-To: freebsd-ports-bugs->lawrance

Track
Comment 3 Sam Lawrance freebsd_committer freebsd_triage 2005-06-12 16:18:25 UTC
State Changed
From-To: open->feedback

Maintainer was asked for feedback.
Comment 4 Sam Lawrance freebsd_committer freebsd_triage 2005-06-13 02:18:57 UTC
Hello, you are the maintainer of chinese/CJK

Could you please look into this problem and determine if a fix is
required:

http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/79353
Comment 5 Sam Lawrance freebsd_committer freebsd_triage 2005-06-15 17:09:32 UTC
State Changed
From-To: feedback->open

Maintainer address bounces
Comment 6 Sam Lawrance freebsd_committer freebsd_triage 2005-08-01 16:10:23 UTC
State Changed
From-To: open->closed

Superseded by ports/84415