From owner-freebsd-ports-bugs@FreeBSD.ORG Tue May 22 18:50:03 2007 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2C66F16A468 for ; Tue, 22 May 2007 18:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 0C5FA13C4C2 for ; Tue, 22 May 2007 18:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l4MIo2oM061375 for ; Tue, 22 May 2007 18:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l4MIo26t061374; Tue, 22 May 2007 18:50:02 GMT (envelope-from gnats) Resent-Date: Tue, 22 May 2007 18:50:02 GMT Resent-Message-Id: <200705221850.l4MIo26t061374@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alan Amesbury Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3F4CA16A46C for ; Tue, 22 May 2007 18:46:14 +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 1C4E513C4BB for ; Tue, 22 May 2007 18:46:14 +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 l4MIkDR2035738 for ; Tue, 22 May 2007 18:46:13 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l4MIfBBa035307; Tue, 22 May 2007 18:41:11 GMT (envelope-from nobody) Message-Id: <200705221841.l4MIfBBa035307@www.freebsd.org> Date: Tue, 22 May 2007 18:41:11 GMT From: Alan Amesbury To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: ports/112869: [workaround] [PATCH] xterm will not install; broken x11/xorg-libraries? X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 May 2007 18:50:03 -0000 >Number: 112869 >Category: ports >Synopsis: [workaround] [PATCH] xterm will not install; broken x11/xorg-libraries? >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue May 22 18:50:02 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Alan Amesbury >Release: 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: >Unformatted: