Subject: pkg/32787: Builds fail in sysutils/xfm
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <nocker.bk@gmail.com>
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
>Originator: nocker.bk@gmail.com
>Release: NetBSD 3.0
>Organization:
>Environment:
System: NetBSD icaro.clubs.etsit.upm.es 3.0 NetBSD 3.0 (GENERIC) #0: Mon Dec 19 01:04:02 UTC 2005 builds@works.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/i386/200512182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
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.
>How-To-Repeat:
in sysutils/xfm: make install
>Fix:
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 @@
cleandir::
$(RM) xfm.install.script
-install::
+install:: xfm.install.script
@if [ -d $(DESTDIR)$(DESTDIR)$(BINDIR) ]; then \
set +x; \
else \
@@ -1112,7 +1112,7 @@
cleandir::
$(RM) Xfm.ad
-install::
+install:: Xfm.ad
@if [ -d $(DESTDIR)$(XAPPLOADDIR) ]; then \
set +x; \
else \