Bug 84937

Summary: 4.11 & hylafax port doesn't work
Product: Ports & Packages Reporter: risner <risner>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description risner 2005-08-15 06:30:11 UTC
	Hylafax uses gmake for Makefile, but port tries with BSD make.

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
How-To-Repeat: 	4.11 Stable; portupgrade comms/hylafax
Comment 1 risner 2005-08-16 20:29:48 UTC
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
Comment 2 Simon Barner freebsd_committer freebsd_triage 2005-09-15 14:51:59 UTC
State Changed
From-To: open->closed

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.