Bug 36811

Summary: XFree86-4-libraries cannot find version.def
Product: Ports & Packages Reporter: Thomas Hurst <freaky>
Component: Individual Port(s)Assignee: Eric Anholt <anholt>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Thomas Hurst 2002-04-06 14:20:01 UTC
	During configure, the port shows:

/ports/x11/XFree86-4-libraries/scripts/configure
cp: /usr/X11R6/lib/X11/config/version.def: No such file or directory

	A quick sniff about locates this file at
	/usr/pkg/lib/X11/config/version.def

	During build, the compile fails with:

./config/imake/imake -I./config/cf  -s ./config/makedepend/Makefile.proto -f ./config/makedepend/Ima
kefile -DTOPDIR=../.. -DCURDIR=./config/makedepend
In file included from config/cf/FreeBSD.cf:552,
                 from config/cf/Imake.tmpl:94,
                  from Imakefile.c:13:
config/cf/xfree86.cf:14: version.def: No such file or directory
./config/imake/imake: Exit code 1.
Stop.
*** Error code 1

Stop in /usr/ports/x11/XFree86-4-libraries/work/xc.
*** Error code 1

	LOCALBASE has been modified, but X11BASE has always been the
	default /usr/X11R6; presumably the port is looking in /usr/local,
	then defaulting to /usr/X11R6

	ports/36259 appears to be related.

Fix: 

A quick grep -R locates this in scripts/configure.

	Applying:

109c109
< cp ${X11BASE}/lib/X11/config/version.def ${WRKSRC}/config/cf
---
> cp ${LOCALBASE}/lib/X11/config/version.def ${WRKSRC}/config/cf

	Fixed it for me, although I have strong doubts that this
	is the correct fix :)
How-To-Repeat: 	Install system, modify LOCALBASE
	
	cd /usr/ports/x11/XFree86-4-libraries/ && make
Comment 1 dwcjr 2002-05-08 15:29:54 UTC
have you asked the maintainer about this?
Comment 2 Patrick Li freebsd_committer freebsd_triage 2002-07-26 00:01:00 UTC
Responsible Changed
From-To: freebsd-ports->anholt

Over to maintainer
Comment 3 Eric Anholt freebsd_committer freebsd_triage 2002-10-17 03:50:29 UTC
State Changed
From-To: open->closed

Fixed, needed a portupgrade -RfN.