From nobody@FreeBSD.org  Tue May 22 18:50:45 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 732DC16A469
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 22 May 2007 18:50:45 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 4BD6713C489
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 22 May 2007 18:50:45 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l4MIojfe036318
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 22 May 2007 18:50:45 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l4MIjirs035691;
	Tue, 22 May 2007 18:45:44 GMT
	(envelope-from nobody)
Message-Id: <200705221845.l4MIjirs035691@www.freebsd.org>
Date: Tue, 22 May 2007 18:45:44 GMT
From: Alan Amesbury<amesbury@umn.edu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [workaround] [PATCH] xterm will not install; broken x11/xorg-libraries?
X-Send-Pr-Version: www-3.0

>Number:         112870
>Category:       ports
>Synopsis:       [workaround] [PATCH] xterm will not install; broken x11/xorg-libraries?
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-x11
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 22 19:00:10 GMT 2007
>Closed-Date:    Thu May 24 09:28:19 GMT 2007
>Last-Modified:  Thu May 24 09:28:19 GMT 2007
>Originator:     Alan Amesbury
>Release:        FreeBSD 6.1-RELEASE-p10/i386
>Organization:
University of Minnesota
>Environment:
FreeBSD mrtoad.oitsec.umn.edu 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #3: Wed Oct 11 12:25:48 CDT 2006     root@mrtoad.oitsec.umn.edu:/usr/obj/usr/src/sys/OITSEC-6  i386
>Description:
On a clean system with *NO* X11 apps installed (so this is not an upgrade), with X11BASE set to /usr/X11R6, and with USE_NONDEFAULT_X11BASE set, x11/xterm fails with this error:

  % sudo make install clean
  ===>   xterm-225_1 depends on file: /usr/X11R6/libdata/xorg/libraries - not found
  ===>    Verifying install for /usr/X11R6/libdata/xorg/libraries in /usr/ports/x11/xorg-libraries
  Read /usr/ports/UPDATING for the procedure to upgrade to xorg 7.2.
  *** Error code 1

  Stop in /usr/ports/x11/xorg-libraries.
  *** Error code 1

  Stop in /usr/ports/x11/xterm.
  % ls -la /usr/X11R6
  ls: /usr/X11R6: No such file or directory


Attempts to install x11/xorg-libraries (the missing dependency) fails:

  % cd /usr/ports/x11/xorg-libraries/
  % sudo make install clean
  Read /usr/ports/UPDATING for the procedure to upgrade to xorg 7.2.
  *** Error code 1

  Stop in /usr/ports/x11/xorg-libraries.


This appears to be related to this block in x11/xorg-libraries/Makefile:

  .if !defined(XORG_UPGRADE) && !defined(PACKAGE_BUILDING)
  pre-everything::
          @test -L /usr/X11R6 || ( echo "Read ${PORTSDIR}/UPDATING for the procedure to upgrade to xorg 7.2." && /usr/bin/false )
  .endif

>How-To-Repeat:
Attempt to install x11/xterm on a system that has NO X11 tree, and has X11BASE and USE_NONDEFAULT_X11BASE set as described above.
>Fix:
Check for existence of USE_NONDEFAULT_X11BASE.

Patch attached with submission follows:

--- Makefile.ORIG	Tue May 22 13:35:53 2007
+++ Makefile	Tue May 22 13:38:59 2007
@@ -64,7 +64,7 @@
 		${X11BASE}/libdata/pkgconfig/libfs.pc:${PORTSDIR}/x11-fonts/libFS \
 		${X11BASE}/libdata/pkgconfig/oldx.pc:${PORTSDIR}/x11/liboldX
 
-.if !defined(XORG_UPGRADE) && !defined(PACKAGE_BUILDING)
+.if !defined(USE_NONDEFAULT_X11BASE) && !defined(XORG_UPGRADE) && !defined(PACKAGE_BUILDING)
 pre-everything::
 	@test -L /usr/X11R6 || ( echo "Read ${PORTSDIR}/UPDATING for the procedure to upgrade or install xorg 7.2." && /usr/bin/false )
 .endif

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-x11 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue May 22 19:00:16 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=112870 

From: Alan Amesbury <amesbury@umn.edu>
To: FreeBSD-gnats-submit@FreeBSD.org,
    freebsd-ports-bugs@FreeBSD.org
Cc:  
Subject: Re: ports/112870: [workaround] [PATCH] xterm will not install; broken
 x11/xorg-libraries?
Date: Tue, 22 May 2007 14:10:42 -0500

 Sorry.  This is a dup of ports/112869.
 
 
 
 -- 
 Alan Amesbury
 OIT Security and Assurance
 University of Minnesota
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Thu May 24 09:27:59 UTC 2007 
State-Changed-Why:  
Duplicate of ports/112869. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=112870 
>Unformatted:
