Subject: pkg/32787: Builds fail in sysutils/xfm
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 02/10/2006 01:05:00
>Number:         32787
>Category:       pkg
>Synopsis:       sysutils/xfm package doesn't compile in i386 NetBSD 3.0
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 10 01:05:00 +0000 2006
>Release:        NetBSD 3.0
System: NetBSD 3.0 NetBSD 3.0 (GENERIC) #0: Mon Dec 19 01:04:02 UTC 2005 i386
Architecture: i386
Machine: i386
The xfm package crashes when it try to `install` a file which doesn't exists (xfm.install.script).
This is produced, in my opinion, because the Makefile isn't filled correctly by the Imakefile through pkgxmkmf.
I have observed that making (with the original files of the xfm distribution, without any patches) xmkmf or pkgxmkmf in NetBSD, they didn't fill the Makefile correctly, but I tried to do the same in linux, and it works correctly. 
Maybe NetBSD xmkmf and Linux xmkmf haven't the same format for Imakefile.

This is all that I can found and supppose.

	in sysutils/xfm: make install
After you had executed `make install` and it had crashed, apply this patch in work/xfm-1.4.3/ with the command `patch Makefile [patchname]`:

--- Makefile    2006-02-09 14:12:07.000000000 +0100
+++ Makefile    2006-02-09 19:10:56.000000000 +0100
@@ -1094,7 +1094,7 @@
        $(RM) xfm.install.script
+install:: xfm.install.script
        @if [ -d $(DESTDIR)$(DESTDIR)$(BINDIR) ]; then \
                set +x; \
        else \
@@ -1112,7 +1112,7 @@
        @if [ -d $(DESTDIR)$(XAPPLOADDIR) ]; then \
                set +x; \
        else \