Bug 87978

Summary: *_DEPENDS gets broken after changing (LOCAL|X11)BASE
Product: Ports & Packages Reporter: Dmitry Marakasov <amdmi3>
Component: Individual Port(s)Assignee: Port Management Team <portmgr>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Dmitry Marakasov 2005-10-25 12:00:28 UTC
Due to insufficient checking of object (library/executable) paths, when
having some ports installed in default LOCALBASE/X11BASE, installing ports
with changed *BASE will often fail, because dependencies will be found
among ports installed in default dirs, but won't be used, which will lead
to compile errors.

How-To-Repeat: 	# cd /usr/ports/devel/sdl12 && make install

	SDL installs normally

	Now,

	# mkdir /usr/X11R6_test /usr/local_test /var/db/pkg_test
	# X11BASE=/usr/X11R6_test LOCALBASE=/usr/local_test PKG_DBDIR=/var/db/pkg_test make install

	Note, that for current X11BASE, LOCALBASE and PKG_DBDIR values, nothing at all is installed.
	However, required libs will be found:

	===>  Extracting for sdl-1.2.9,2
	=> Checksum OK for SDL-1.2.9.tar.gz.
	===>  Patching for sdl-1.2.9,2
	===>  Applying FreeBSD patches for sdl-1.2.9,2
	===>   sdl-1.2.9,2 depends on executable: nasm - found
	===>   sdl-1.2.9,2 depends on file: /usr/local_test/bin/libtool15 - not found

	(libtool gets installed)

	===>   sdl-1.2.9,2 depends on shared library: aa.1 - found
	===>   sdl-1.2.9,2 depends on shared library: vga.1 - found
	===>   sdl-1.2.9,2 depends on shared library: X11.6 - found
	===>  Configuring for sdl-1.2.9,2

	And, of course, file-not-found errors wil occur:

	SDL_x11video.h:31:22: X11/Xlib.h: No such file or directory
	SDL_x11video.h:32:23: X11/Xutil.h: No such file or directory
	SDL_x11video.h:33:23: X11/Xatom.h: No such file or directory

	etc.
Comment 1 Anton Berezin freebsd_committer freebsd_triage 2005-10-25 12:44:02 UTC
Responsible Changed
From-To: freebsd-ports-bugs->portmgr

Over to maintainers.
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2005-12-19 14:00:38 UTC
State Changed
From-To: open->suspended

Mark suspended awaiting someone to figure out a patch for this.
Comment 3 Kris Kennaway freebsd_committer freebsd_triage 2006-09-20 05:10:37 UTC
State Changed
From-To: suspended->closed

Since this condition can only occur upon deliberate error by the user, 
I'm going to file this under "don't do that then" and state that 
there's insufficient need for the ports collection to guard against 
it.  Thanks anyway for your submission.