From pwd@punky.snu.ac.kr  Mon Jan 11 18:50:51 1999
Received: from punky.snu.ac.kr (punky.snu.ac.kr [147.46.59.58])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA13979
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 11 Jan 1999 18:50:46 -0800 (PST)
          (envelope-from pwd@punky.snu.ac.kr)
Received: (from pwd@localhost)
	by punky.snu.ac.kr (8.8.8/8.8.8) id LAA05209;
	Tue, 12 Jan 1999 11:49:11 +0900 (KST)
	(envelope-from pwd)
Message-Id: <199901120249.LAA05209@punky.snu.ac.kr>
Date: Tue, 12 Jan 1999 11:49:11 +0900 (KST)
From: junker@jazz.snu.ac.kr
Reply-To: junker@jazz.snu.ac.kr
To: FreeBSD-gnats-submit@freebsd.org
Subject: port fix: korean/hanterm
X-Send-Pr-Version: 3.2

>Number:         9448
>Category:       ports
>Synopsis:       port fix: korean/hanterm
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 11 19:00:00 PST 1999
>Closed-Date:    Fri Jan 15 04:27:46 PST 1999
>Last-Modified:  Fri Jan 15 04:28:55 PST 1999
>Originator:     CHOI Junho
>Release:        FreeBSD 2.2.8-STABLE i386
>Organization:
NARAE, CS Dept., Seoul National Univ., ROK
>Environment:

FreeBSD punky.snu.ac.kr 2.2.8-STABLE FreeBSD 2.2.8-STABLE #0: Mon Dec 14 12:08:34 KST 1998     pwd@punky.snu.ac.kr:/allegro/2.2-src/sys/compile/PUNKY  i386

FreeBSD samba.snu.ac.kr 3.0-CURRENT FreeBSD 3.0-CURRENT #4: Thu Dec  3 10:00:45 KST 1998     pwd@samba.snu.ac.kr:/usr/src/sys/compile/SAMBA  i386

>Description:

Recently I received a patch of ELF building of
korean/hanterm-xf86. I've tested it with a 3.0-CURRENT(post
3.0-RELEASE, ELF) machine and send-pr'ed it(and now committed). 

So I look at korean/hanterm again(original Unicode-support and
multiplatform variant of hanterm) again, it is marked as BROKEN_ELF too.

But, I can't find any hint that why this ports is marked as
BROKEN_ELF. It can be built as usual, running, and installed.

I've read the ELF section of porting guide in handbook, but I couldn't
find useful information. Why korean/hanterm marked as BROKEN_ELF?

In the log of ports/korean/hanterm/Makefile, the reason is as follows:

  Mark BROKEN for ELF:
  checking for XextCreateExtension in -lXext... yes
  checking for XawSimpleMenuAddGlobalActions in -lXaw... no
  checking for XawSimpleMenuAddGlobalActions in -lXaw_s... no
  configure: error: Unable to successfully link Athena library
  (-lcf_x_athena) with test program 
  *** Error code 1

It is not true, as korean/hanterm is not a 'autoconf' application, but
a 'imake' application! I think that it's a mistake in confusing
korean/hanterm and korean/hanterm-xf86, because the BROKEN_ELF reason
of two package is just same. Case of korean/hanterm-xf86 is right, but
the other is not. Maybe who marked it didn't look at this in detail.

And this patch has fontpath(as a dependency) fix.

>How-To-Repeat:

Build korean/hanterm as a fresh recent system.

>Fix:
	
Apply the following diffs:

--- korean/hanterm/Makefile~	Tue Jan 12 11:42:19 1999
+++ korean/hanterm/Makefile	Tue Jan 12 11:42:34 1999
@@ -15,9 +15,7 @@
 
 MAINTAINER=	junker@jazz.snu.ac.kr
 
-BROKEN_ELF=	yes
-
-RUN_DEPENDS=	${PREFIX}/lib/X11/fonts/misc/johabm16.pcf.gz:${PORTSDIR}/korean/johabfonts
+RUN_DEPENDS=	${PREFIX}/lib/X11/fonts/local/johabm16.pcf.gz:${PORTSDIR}/korean/johabfonts
 
 USE_IMAKE=	yes
 NO_INSTALL_MANPAGES= yes
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: kuriyama 
State-Changed-When: Fri Jan 15 04:27:46 PST 1999 
State-Changed-Why:  
I've checked on my -current machine but built successfully. 
So patch is committed.  Thanks! 
>Unformatted:
