From owner-freebsd-ports@FreeBSD.ORG Thu Nov 8 19:49:21 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B8266287 for ; Thu, 8 Nov 2012 19:49:21 +0000 (UTC) (envelope-from prvs=652d47202=pschmehl_lists@tx.rr.com) Received: from ip-001.utdallas.edu (ip-001.utdallas.edu [129.110.20.107]) by mx1.freebsd.org (Postfix) with ESMTP id 432948FC0A for ; Thu, 8 Nov 2012 19:49:20 +0000 (UTC) X-Group: None X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgwFALILnFCBbgogTmdsb2JhbABEsyGQWwEBI4MoAoFjGogdml2GWJsHkXhhA4haoHGBPSQ X-IronPort-AV: E=Sophos;i="4.80,739,1344229200"; d="scan'208";a="106300304" Received: from zxtm01.utdallas.edu (HELO [129.110.200.11]) ([129.110.10.32]) by ip-001.utdallas.edu with ESMTP/TLS/DHE-RSA-AES256-SHA; 08 Nov 2012 13:48:10 -0600 Date: Thu, 08 Nov 2012 13:48:09 -0500 From: Paul Schmehl To: FreeBSD Ports List Subject: Ports that don't honor PREFIX? Message-ID: <75C8F1ACD6E49C53D81A2687@localhost> X-Mailer: Mulberry/4.1.0a1 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline; size=2324 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Paul Schmehl List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2012 19:49:21 -0000 I'm working on updating a port that depends on a bunch of X11 and Gnome stuff. It seems there are a bunch of ports that don't honor PREFIX. In addition there seem to be a number of ports that are improperly done, because the detection of dependent ports fails. For example, building x11/libX11 results in this: ===> Installing for libXau-1.0.6 ===> libXau-1.0.6 depends on file: /usr/local/libdata/pkgconfig/xproto.pc - found ===> libXau-1.0.6 depends on executable: pkgconf - found ===> Generating temporary packing list ===> Checking if x11/libXau already installed ===> libXau-1.0.6 is already installed You may wish to ``make deinstall'' and install this port again by ``make reinstall'' to upgrade it properly. If you really wish to overwrite the old port of x11/libXau without deleting it first, set the variable "FORCE_PKG_REGISTER" in your environment or the "make install" command line. *** Error code 1 Stop in /usr/ports/x11/libXau. *** Error code 1 This should not be happening. The Makefile doesn't even list a build dependency for libXau. BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/xcb.pc:${PORTSDIR}/x11/libxcb \ ${LOCALBASE}/share/aclocal/xorg-macros.m4:${PORTSDIR}/devel/xorg-macros RUN_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/xcb.pc:${PORTSDIR}/x11/libxcb XORG_CAT= lib USE_XORG= bigreqsproto xau xcmiscproto xdmcp xextproto xtrans \ kbproto:both inputproto xf86bigfontproto xproto:both I suppose it's somehow being picked up by XORG_CAT= lib, but ports should know when a dependency is already installed and not try to build it again, right? . if ${XORG_CAT} == "lib" USE_GNOME+= gnomehack pkgconfig USE_LDCONFIG= yes CONFIGURE_ARGS+=--enable-malloc0returnsnull . endif So is this something wrong with the underlying make system? Something wrong with the xorg system? Gnome? Or is it me? -- Paul Schmehl, Senior Infosec Analyst As if it wasn't already obvious, my opinions are my own and not those of my employer. ******************************************* "It is as useless to argue with those who have renounced the use of reason as to administer medication to the dead." Thomas Jefferson "There are some ideas so wrong that only a very intelligent person could believe in them." George Orwell