From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Oct 10 08:40:20 2006 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 [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 22D8B16A40F for ; Tue, 10 Oct 2006 08:40:20 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9528F43D45 for ; Tue, 10 Oct 2006 08:40:19 +0000 (GMT) (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 k9A8eJ1f002338 for ; Tue, 10 Oct 2006 08:40:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k9A8eJ8u002335; Tue, 10 Oct 2006 08:40:19 GMT (envelope-from gnats) Resent-Date: Tue, 10 Oct 2006 08:40:19 GMT Resent-Message-Id: <200610100840.k9A8eJ8u002335@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, Sergey Zaharchenko Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B02F316A407 for ; Tue, 10 Oct 2006 08:35:38 +0000 (UTC) (envelope-from doublef-ctm@yandex.ru) Received: from smtp1.yandex.ru (smtp1.yandex.ru [213.180.223.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id D53C743D45 for ; Tue, 10 Oct 2006 08:35:37 +0000 (GMT) (envelope-from doublef-ctm@yandex.ru) Received: from [83.239.189.126] ([83.239.189.126]:23769 "EHLO shark" smtp-auth: "doublef-ctm" TLS-CIPHER: TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S2078934AbWJJIfe (ORCPT ); Tue, 10 Oct 2006 12:35:34 +0400 Received: by shark (Postfix, from userid 1000) id 46A011741F; Tue, 10 Oct 2006 12:35:31 +0400 (MSD) Message-Id: <20061010083531.46A011741F@shark> Date: Tue, 10 Oct 2006 12:35:31 +0400 (MSD) From: Sergey Zaharchenko To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/104251: [PATCH] graphics/pixie: builds, but doesn't run X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Sergey Zaharchenko List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Oct 2006 08:40:20 -0000 >Number: 104251 >Category: ports >Synopsis: [PATCH] graphics/pixie: builds, but doesn't run >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 10 08:40:18 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Sergey Zaharchenko >Release: FreeBSD 7.0-CURRENT i386 >Organization: Volgograd State Technical University >Environment: System: FreeBSD shark.localdomain 7.0-CURRENT FreeBSD 7.0-CURRENT #4: Thu Sep 14 16:32:04 MSD 2006 root@shark.localdomain:/var/obj/src/usr.src/sys/GENERIC i386 >Description: The graphics/pixie port (used by other ports like graphics/makehuman) builds and installs, but doesn't work correctly as it's misconfigured and a shared library is missing. >How-To-Repeat: Install graphics/pixie and try running rndr. It will complain about libcommon.so not being found. If you add it, it will complain about not finding `display drivers' named `file', `framebuffer', or whatever display you have in the .rib file, and the shaders you have in the .rib file. >Fix: The following patch installs the `common' shlib and configures pixie so that rndr can find the shaders, etc. it wants. diff -ud pixie.orig/Makefile pixie/Makefile --- pixie.orig/Makefile Sun Sep 3 11:35:51 2006 +++ pixie/Makefile Tue Oct 10 11:56:10 2006 @@ -28,8 +28,9 @@ CXXFLAGS="${CXXFLAGS} -O -fPIC -I${LOCALBASE}/include -I${X11BASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \ LIBS="${PTHREAD_LIBS}" +CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/${PORTNAME} --with-shaderdir=${PREFIX}/share/${PORTNAME}/shaders --with-modeldir=${PREFIX}/share/${PORTNAME} --with-texturedir=${PREFIX}/share/${PORTNAME} --with-proceduraldir=${PREFIX}/share/${PORTNAME} --with-displaysdir=${PREFIX}/lib/${PORTNAME} USE_LDCONFIG= yes -LDCONFIG_DIRS= %%PREFIX%%/lib/${PORTNAME} +LDCONFIG_DIRS= ${PREFIX}/lib/${PORTNAME} WRKSRC= ${WRKDIR}/Pixie PIXIE_EXES= precomp rndr sdrc sdrinfo show texmake @@ -68,7 +69,7 @@ # libs # avoid conflicts by installing in separate dir @${MKDIR} ${PREFIX}/lib/${PORTNAME} -.for i in sdr ri +.for i in sdr ri common ${INSTALL_DATA} ${WRKSRC}/src/${i}/.libs/lib${i}.a \ ${PREFIX}/lib/${PORTNAME} ${INSTALL_PROGRAM} ${WRKSRC}/src/${i}/.libs/lib${i}.so.0 \ Common subdirectories: pixie.orig/files and pixie/files diff -ud pixie.orig/pkg-plist pixie/pkg-plist --- pixie.orig/pkg-plist Tue Oct 10 12:09:26 2006 +++ pixie/pkg-plist Tue Oct 10 11:40:30 2006 @@ -12,6 +12,8 @@ include/pixie/shadeop.h lib/pixie/file.so lib/pixie/framebuffer.so +lib/pixie/libcommon.so +lib/pixie/libcommon.so.0 lib/pixie/libri.a lib/pixie/libri.so lib/pixie/libri.so.0 >Release-Note: >Audit-Trail: >Unformatted: