From sa2c@sa2c.net  Sun May 20 01:46:14 2007
Return-Path: <sa2c@sa2c.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 1B5C016A400
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 20 May 2007 01:46:14 +0000 (UTC)
	(envelope-from sa2c@sa2c.net)
Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.181])
	by mx1.freebsd.org (Postfix) with ESMTP id DA7EA13C45A
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 20 May 2007 01:46:13 +0000 (UTC)
	(envelope-from sa2c@sa2c.net)
Received: by py-out-1112.google.com with SMTP id f31so1499725pyh
        for <FreeBSD-gnats-submit@freebsd.org>; Sat, 19 May 2007 18:46:13 -0700 (PDT)
Received: by 10.35.128.17 with SMTP id f17mr5776613pyn.1179625572563;
        Sat, 19 May 2007 18:46:12 -0700 (PDT)
Received: from berkeley.l.sa2c.net ( [60.236.87.252])
        by mx.google.com with ESMTP id c1sm1002824nzd.2007.05.19.18.46.11;
        Sat, 19 May 2007 18:46:12 -0700 (PDT)
Received: by berkeley.l.sa2c.net (Postfix, from userid 3104)
	id 14E9440CD; Sun, 20 May 2007 10:46:09 +0900 (JST)
Message-Id: <20070520014609.14E9440CD@berkeley.l.sa2c.net>
Date: Sun, 20 May 2007 10:46:09 +0900 (JST)
From: NIIMI Satoshi <sa2c@sa2c.net>
Reply-To: NIIMI Satoshi <sa2c@sa2c.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: x11/xorg-libraries: does not build on clean environment
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         112796
>Category:       ports
>Synopsis:       x11/xorg-libraries: does not build on clean environment
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-x11
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 20 01:50:03 GMT 2007
>Closed-Date:    Fri May 25 21:14:02 GMT 2007
>Last-Modified:  Fri May 25 21:14:02 GMT 2007
>Originator:     NIIMI Satoshi
>Release:        FreeBSD 6.2-RELEASE-p4 i386
>Organization:
>Environment:
System: FreeBSD berkeley.l.sa2c.net 6.2-RELEASE-p4 FreeBSD 6.2-RELEASE-p4 #1: Fri Apr 27 10:03:16 JST 2007 root@berkeley.l.sa2c.net:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
x11/xorg-libraries does not build on clean environment, since /usr/X11R6
does not exists as directory nor symbolic link.

/usr/ports/Tools/scripts/mergebase.sh does not help.  It only creates
symbolic link iff /usr/X11R6 exists.
	
>How-To-Repeat:
# ls /usr/
bin	games	lib	libexec	ports	share
compat	include	libdata	obj	sbin	src
# pwd
/usr/ports/x11/xorg-libraries
# make install
Read /usr/ports/UPDATING for the procedure to upgrade to xorg 7.2.
*** Error code 1
	
>Fix:

	

--- xorg-libraries.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/x11/xorg-libraries/Makefile,v
retrieving revision 1.17
diff -u -r1.17 Makefile
--- Makefile	19 May 2007 20:28:05 -0000	1.17
+++ Makefile	20 May 2007 01:27:24 -0000
@@ -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(XORG_UPGRADE) && !defined(PACKAGE_BUILDING) && exists(/usr/X11R6)
 pre-everything::
 	@test -L /usr/X11R6 || ( echo "Read ${PORTSDIR}/UPDATING for the procedure to upgrade to xorg 7.2." && /usr/bin/false )
 .endif
--- xorg-libraries.diff ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-x11 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun May 20 01:50:10 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/112796: commit references a PR
Date: Fri, 25 May 2007 20:59:37 +0000 (UTC)

 lesi        2007-05-25 20:59:30 UTC
 
   FreeBSD ports repository
 
   Modified files:
     x11/xorg-libraries   Makefile pkg-plist 
   Log:
   Don't bail out on clean installs, just create convenience symlink instead.
   
   PR:             ports/112796
   Discussed with: flz, kris
   
   Revision  Changes    Path
   1.19      +5 -1      ports/x11/xorg-libraries/Makefile
   1.9       +1 -0      ports/x11/xorg-libraries/pkg-plist
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: lesi 
State-Changed-When: Fri May 25 21:12:59 UTC 2007 
State-Changed-Why:  
Committed, along with symlink creation if /usr/X11R6 does not exist. 
Thanks! 

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