From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jul 19 20:30:04 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E4C1106566B for ; Mon, 19 Jul 2010 20:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 28A138FC23 for ; Mon, 19 Jul 2010 20:30:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o6JKU4M3057761 for ; Mon, 19 Jul 2010 20:30:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o6JKU4bc057758; Mon, 19 Jul 2010 20:30:04 GMT (envelope-from gnats) Resent-Date: Mon, 19 Jul 2010 20:30:04 GMT Resent-Message-Id: <201007192030.o6JKU4bc057758@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, Leinier Cruz Salfran Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 959E61065672 for ; Mon, 19 Jul 2010 20:25:02 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 801138FC0C for ; Mon, 19 Jul 2010 20:25:02 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o6JKP20F015958 for ; Mon, 19 Jul 2010 20:25:02 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o6JKP2lV015950; Mon, 19 Jul 2010 20:25:02 GMT (envelope-from nobody) Message-Id: <201007192025.o6JKP2lV015950@www.freebsd.org> Date: Mon, 19 Jul 2010 20:25:02 GMT From: Leinier Cruz Salfran To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/148774: x11/nvidia-driver: Being possible to get compiled on Tinderbox 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: Mon, 19 Jul 2010 20:30:04 -0000 >Number: 148774 >Category: ports >Synopsis: x11/nvidia-driver: Being possible to get compiled on Tinderbox >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Jul 19 20:30:03 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Leinier Cruz Salfran >Release: 8.0-RELEASE-p2 >Organization: IPI 'Jose M. Maceo Grajales' >Environment: FreeBSD 8.0-RELEASE-p2 #0: Mon Jul 19 14:06:21 CDT 2010 root@tinderbox.ipigto.rimed.cu:/usr/src/sys/magic/kernel/path >Description: i can't construct the 'x11/nvidia-driver' package on tinderbox because the port creator require an X server implementation installed but there is no 'xorg-server' installed initially on tinderbox so the package can't be constructed i examined the result of '/usr/sbin/pkg_info -qO x11-servers/xorg-server' and '/usr/sbin/pkg_info -qO graphics/libGL' and saw that it's the same result of '/usr/bin/make -C /usr/ports/x11-servers/xorg-server -V PKGNAME' and '/usr/bin/make -C /usr/ports/graphics/libGL -V PKGNAME' so i modified the 'Makefile' file in order to add a 'Tinderbox hack' but keeping the original port code to avoid author conflicts i can construct 'x11/nvidia-driver*' packages successfully now with 'WITH_TINDERBOX_HACK=yes' and 'FORCE_PACKAGE=yes' environment variables on Tinderbox i attached the unified patch and hope the patch will be applied >How-To-Repeat: >Fix: Patch attached with submission follows: --- Makefile.orig 2010-07-19 15:52:08.000000000 -0400 +++ Makefile 2010-07-19 16:10:37.000000000 -0400 @@ -18,6 +18,7 @@ COMMENT= NVidia graphics card binary drivers for hardware OpenGL rendering NO_PACKAGE= should be recompiled for a particular FreeBSD kernel +USE_XORG= xorg-server USE_GL= gl USE_LDCONFIG= yes SUB_FILES+= pkg-message @@ -48,7 +49,8 @@ ONLY_FOR_ARCHS= i386 .endif -OPTIONS= FREEBSD_AGP "Use FreeBSD AGP GART driver" off \ +OPTIONS= TINDERBOX_HACK "Use Tinderbox hack" off \ + FREEBSD_AGP "Use FreeBSD AGP GART driver" off \ ACPI_PM "Enable support for ACPI Power Management" off \ LINUX "Build with support for Linux compatibility" on .if ${NVVERSION} >= 1952200 @@ -57,13 +59,18 @@ .include +.if defined(WITH_TINDERBOX_HACK) +XSERVVERSION!= ${MAKE} -C ${PORTSDIR}/x11-servers/xorg-server -V PKGNAME 2>/dev/null || true +LIBGLVERSION!= ${MAKE} -C ${PORTSDIR}/graphics/libGL -V PKGNAME 2>/dev/null || true +.endif +.if defined(WITHOUT_TINDERBOX_HACK) # XXX Should use ${PKG_INFO} but it does not expand for some reason XXX # -XSERVVERSION!= /usr/sbin/pkg_info -qO x11-servers/xorg-server 2>/dev/null || true -LIBGLVERSION!= /usr/sbin/pkg_info -qO graphics/libGL 2>/dev/null || true - +XSERVVERSION!= /usr/sbin/pkg_info -qO x11-servers/xorg-server 2>/dev/null || true +LIBGLVERSION!= /usr/sbin/pkg_info -qO graphics/libGL 2>/dev/null || true .if empty(XSERVVERSION) -IGNORE= needs an X server implementation installed +IGNORE= needs an X server implementation installed +.endif .endif PLIST_SUB+= XSERVVERSION=${XSERVVERSION} LIBGLVERSION=${LIBGLVERSION} \ >Release-Note: >Audit-Trail: >Unformatted: