From nobody@FreeBSD.org  Sun May 19 17:21:48 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id 4C8204B2
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 19 May 2013 17:21:48 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.FreeBSD.org (oldred.freebsd.org [8.8.178.121])
	by mx1.freebsd.org (Postfix) with ESMTP id 2D835113
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 19 May 2013 17:21:48 +0000 (UTC)
Received: from oldred.FreeBSD.org ([127.0.1.6])
	by oldred.FreeBSD.org (8.14.5/8.14.5) with ESMTP id r4JHLl0W057517
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 19 May 2013 17:21:47 GMT
	(envelope-from nobody@oldred.FreeBSD.org)
Received: (from nobody@localhost)
	by oldred.FreeBSD.org (8.14.5/8.14.5/Submit) id r4JHLlFp057516;
	Sun, 19 May 2013 17:21:47 GMT
	(envelope-from nobody)
Message-Id: <201305191721.r4JHLlFp057516@oldred.FreeBSD.org>
Date: Sun, 19 May 2013 17:21:47 GMT
From: Hon-Yu Lawrence Cheung <cheunghonyu@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: print/dvipdfmx fails at configure phrase
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         178774
>Category:       ports
>Synopsis:       print/dvipdfmx fails at configure phrase
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    hrs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 19 17:30:00 UTC 2013
>Closed-Date:    Mon May 27 01:02:30 UTC 2013
>Last-Modified:  Mon May 27 01:02:30 UTC 2013
>Originator:     Hon-Yu Lawrence Cheung
>Release:        FreeBSD 9.1-RELEASE-p3
>Organization:
>Environment:
>Description:
print/dvipdfmx is teTeX base while print/tex-dvipdfmx is texlive base now.
USE_TEX=yes in print/dvipdfmx/Makefile led to fail at configure phrase.

The following is poudriere log. 
=======================<phase: configure      >============================
===>  Configuring for dvipdfmx-20110311
configure: loading site script /usr/ports/Templates/config.site
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p
checking for gawk... (cached) /usr/bin/awk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of cc... gcc3
checking whether cc understands -c and -o together... yes
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for kpse_find_file in -lkpathsea... no
configure: error: kpathsea library not found
This version of dvipdfmx requires the kpathsea library and its headers. If
you know where it is you might try setting the LDFLAGS environment variable
with -L pointing to the directory containing libkpathsea.a.
    
===>  Script "configure" failed unexpectedly.
Please report the problem to ports@FreeBSD.org [maintainer] and attach the
"/wrkdirs/usr/ports/print/dvipdfmx/work/dvipdfmx-20110311/config.log" including
the output of the failure of your make command. Also, it might be a good idea
to provide an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg info -g -Ea).
*** [do-configure] Error code 1

Stop in /usr/ports/print/dvipdfmx.

>How-To-Repeat:

>Fix:
change USE_TEX=yes to USE_TEX=tetex in Makefile

Patch attached with submission follows:

--- Makefile.original   2013-05-20 00:22:27.637740478 +0800
+++ Makefile    2013-05-20 01:09:52.682741309 +0800
@@ -21,11 +21,11 @@
 
 LIB_DEPENDS=   png15:${PORTSDIR}/graphics/png \
                paper:${PORTSDIR}/print/libpaper
 RUN_DEPENDS=   ${ADOBECMAPDIR}/ai0/CMap/Identity-H:${PORTSDIR}/print/adobe-cmaps
 
-USE_TEX=       yes
+USE_TEX=       tetex
 GNU_CONFIGURE= yes
 CONFIGURE_ARGS=        --datadir=${LOCALBASE}/share
 MAKE_JOBS_SAFE=        yes
 
 PLIST_SUB=     DVIPDFMXDIR=${DVIPDFMXDIR} \


>Release-Note:
>Audit-Trail:

From: Hon-Yu Lawrence Cheung <cheunghonyu@gmail.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/178774: print/dvipdfmx fails at configure phrase
Date: Mon, 20 May 2013 21:53:59 +0800

 This is a multi-part message in MIME format.
 --------------070800000001020009010405
 Content-Type: text/plain; charset=UTF-8
 Content-Transfer-Encoding: 7bit
 
 Dear maintainer & committers,
 
 Change USE_TEX=yes to USE_TEX=base tetex to unbreak print/dvipdfmx
 
 Regards,
 Hon-Yu Lawrence Cheung
 
 
 
 --------------070800000001020009010405
 Content-Type: text/plain; charset=UTF-8;
  name="patch.txt"
 Content-Transfer-Encoding: base64
 Content-Disposition: attachment;
  filename="patch.txt"
 
 LS0tIE1ha2VmaWxlLm9yaWdpbmFsICAgMjAxMy0wNS0yMCAwMDoyMjoyNy42Mzc3NDA0Nzgg
 KzA4MDAKKysrIE1ha2VmaWxlICAgIDIwMTMtMDUtMjAgMjE6Mzg6MTMuNDk3Nzc1NzY0ICsw
 ODAwCkBAIC0yMSwxMSArMjEsMTEgQEAKIAogTElCX0RFUEVORFM9ICAgcG5nMTU6JHtQT1JU
 U0RJUn0vZ3JhcGhpY3MvcG5nIFwKICAgICAgICAgICAgICAgIHBhcGVyOiR7UE9SVFNESVJ9
 L3ByaW50L2xpYnBhcGVyCiBSVU5fREVQRU5EUz0gICAke0FET0JFQ01BUERJUn0vYWkwL0NN
 YXAvSWRlbnRpdHktSDoke1BPUlRTRElSfS9wcmludC9hZG9iZS1jbWFwcwogCi1VU0VfVEVY
 PSAgICAgICB5ZXMKK1VTRV9URVg9ICAgICAgIGJhc2UgdGV0ZXgKIEdOVV9DT05GSUdVUkU9
 IHllcwogQ09ORklHVVJFX0FSR1M9ICAgICAgICAtLWRhdGFkaXI9JHtMT0NBTEJBU0V9L3No
 YXJlCiBNQUtFX0pPQlNfU0FGRT0gICAgICAgIHllcwogCiBQTElTVF9TVUI9ICAgICBEVklQ
 REZNWERJUj0ke0RWSVBERk1YRElSfSBcCg==
 --------------070800000001020009010405--
Responsible-Changed-From-To: freebsd-ports-bugs->hrs 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun May 26 23:32:41 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=178774 
State-Changed-From-To: open->closed 
State-Changed-By: hrs 
State-Changed-When: Mon May 27 01:01:48 UTC 2013 
State-Changed-Why:  
Duplicated with ports/178729. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=178774 
>Unformatted:
