From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Aug 27 14:45:29 2014 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5BE53D28 for ; Wed, 27 Aug 2014 14:45:29 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3BEAF3B9C for ; Wed, 27 Aug 2014 14:45:29 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s7REjTpa020310 for ; Wed, 27 Aug 2014 14:45:29 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 193067] New: textproc/antiword broken looking for mapping file (and other path issues) Date: Wed, 27 Aug 2014 14:45:29 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports Tree X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: z7dr6ut7gs@snkmail.com X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Aug 2014 14:45:29 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193067 Bug ID: 193067 Summary: textproc/antiword broken looking for mapping file (and other path issues) Product: Ports Tree Version: Latest Hardware: Any OS: Any Status: Needs Triage Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: z7dr6ut7gs@snkmail.com Created attachment 146379 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=146379&action=edit fix mapping file search & other prefix issues; look for fonts in LOCALBASE, not PREFIX antiword-0.37_2 broke as of r361831. Now, running it gives: If path in antiword.h not fixed, you get: =================== I can't open your mapping file (UTF-8.txt) It is not in '/h/jhein/.antiword' nor in '/usr/share/antiword'. Name: antiword Purpose: Display MS-Word files Author: (C) 1998-2005 Adri van Os Version: 0.37 (21 Oct 2005) Status: GNU General Public License Usage: antiword [switches] wordfile1 [wordfile2 ...] Switches: [-f|-t|-a papersize|-p papersize|-x dtd][-m mapping][-w #][-i #][-Ls] -f formatted text output -t text output (default) -a Adobe PDF output -p PostScript output paper size like: a4, letter or legal -x XML output like: db (DocBook) -m character mapping file -w in characters of text output -i image level (PostScript only) Beginning of bufferuse landscape mode (PostScript only) -r Show removed text -s Show hidden (by Word) text =================== That's because of the /usr/share in antiword.h Also, fontinfo.pl should replace /usr/share with ${LOCALBASE}/share, not ${PREFIX}/share. And if you build with PREFIX != /usr/local, then the /usr/local/bin in the Makefile will make a packaging failure. Before r361831, the 'find | xargs sed' found all the instances of /usr/local and /usr/share and replaced them. After that was removed, some cases of these hard-coded paths were missed. Attached is a patch to address these issues. -- You are receiving this mail because: You are the assignee for the bug.