From risner@stdio.com  Mon Aug 15 05:24:36 2005
Return-Path: <risner@stdio.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7B9E516A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 15 Aug 2005 05:24:36 +0000 (GMT)
	(envelope-from risner@stdio.com)
Received: from fantasia.stdio.com (fantasia.openworldinc.com [207.246.98.248])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E249343D55
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 15 Aug 2005 05:24:35 +0000 (GMT)
	(envelope-from risner@stdio.com)
Received: from fantasia.stdio.com (localhost [127.0.0.1])
	by fantasia.stdio.com (8.13.1/8.13.1) with ESMTP id j7DIxgOJ047653
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 13 Aug 2005 14:59:42 -0400 (EDT)
	(envelope-from risner@fantasia.stdio.com)
Received: (from root@localhost)
	by fantasia.stdio.com (8.13.1/8.13.1/Submit) id j7DIxgFg047652;
	Sat, 13 Aug 2005 14:59:42 -0400 (EDT)
	(envelope-from risner)
Message-Id: <200508131859.j7DIxgFg047652@fantasia.stdio.com>
Date: Sat, 13 Aug 2005 14:59:42 -0400 (EDT)
From: James Risner <risner@stdio.com>
Reply-To: James Risner <risner@stdio.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: 4.11 & hylafax port doesn't work
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         84937
>Category:       ports
>Synopsis:       4.11 & hylafax port doesn't work
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 15 05:30:11 GMT 2005
>Closed-Date:    Thu Sep 15 13:54:43 GMT 2005
>Last-Modified:  Thu Sep 15 13:54:43 GMT 2005
>Originator:     James Risner
>Release:        FreeBSD 4.11-RELEASE i386
>Organization:
OpenWorld, Inc
>Environment:
System: FreeBSD fantasia.stdio.com 4.11-RELEASE FreeBSD 4.11-RELEASE #0: Fri Jan 21 17:21:22 GMT 2005 root@perseus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386


>Description:
	Hylafax uses gmake for Makefile, but port tries with BSD make.
>How-To-Repeat:
	4.11 Stable; portupgrade comms/hylafax
>Fix:

I had an old version installed.  New install should be similar:

# Upgrade old version

cd /usr/ports/comms/hylafax; make clean
portupgrade -wW hylafax
cd /usr/ports/comms/hylafax/work/hylafax-4.2.1/
mv Makefile Makefile.gmake
cat > Makefile << EOF
all:
	/usr/bin/env SHELL=/bin/sh PORTOBJFORMAT=elf PREFIX=/usr/local LOCALBASE=/usr/local X11BASE=/usr/X11R6 MOTIFLIB="-L/usr/X11R6/lib -lXm -lXp" LIBDIR="/usr/lib" CFLAGS="-O -pipe " CXXFLAGS=" -O -pipe " MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -c -s -o root -g wheel -m 555" BSD_INSTALL_SCRIPT="install -c -o root -g wheel -m 555" BSD_INSTALL_DATA="install -c -o root -g wheel -m 444" BSD_INSTALL_MAN="install -c -o root -g wheel -m 444" gmake -f Makefile.gmake dirs

install:
	gmake -f Makefile.gmake install
EOF
portupgrade -wW hylafax

>Release-Note:
>Audit-Trail:

From: James Risner <risner@stdio.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/84937: 4.11 & hylafax port doesn't work
Date: Tue, 16 Aug 2005 15:29:48 -0400

 This problem may have been related to leftover files from the
 previous 4.x system before the upgrade.
 
 On some other 4.11 machines, I was able to make install hylafax without error.
 
 So, I went looking for the problem.  The error was that it bailed
 on a line in "rules" that used gmake syntax.
 
 I had installed it by adding the makefiles I put in the pr report.
 Once I deleted all extra files on the system not part of a port
 (with this command and a manual inspect of each:
 find /usr/local /usr/X11R6 -type f -print0 | xargs -0 pkg_which -v | fgrep '?' )
 and reinstalled every port (portupgrade -a -f), hylafax will now reinstall
 properly.
 
 I do not know what caused the failure, but removing old ports
 (pkg_delete automake, autoconf, libtool other than the latest)
 and removing old crud in /usr/local made the port work again.
 
 Risner
 
State-Changed-From-To: open->closed 
State-Changed-By: barner 
State-Changed-When: Thu Sep 15 13:51:59 GMT 2005 
State-Changed-Why:  
The build error was a local problem of the submitter (left-over files from 
older installations). 
Since there are no problem reports on pointyhat either, I close this PR. 

@ Submitter: Feel free to contact me in case I understood something wrong, 
and the PR needs to be re-opened. 

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