From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jun 24 15:40:04 2009 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 442961065675 for ; Wed, 24 Jun 2009 15:40: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 050058FC1E for ; Wed, 24 Jun 2009 15:40:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n5OFe3XO039657 for ; Wed, 24 Jun 2009 15:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n5OFe3tI039650; Wed, 24 Jun 2009 15:40:03 GMT (envelope-from gnats) Resent-Date: Wed, 24 Jun 2009 15:40:03 GMT Resent-Message-Id: <200906241540.n5OFe3tI039650@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, Robert Kruus Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DEB37106564A for ; Wed, 24 Jun 2009 15:34:45 +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 CD1E58FC0A for ; Wed, 24 Jun 2009 15:34:45 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n5OFYjYI000109 for ; Wed, 24 Jun 2009 15:34:45 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n5OFYjcP000108; Wed, 24 Jun 2009 15:34:45 GMT (envelope-from nobody) Message-Id: <200906241534.n5OFYjcP000108@www.freebsd.org> Date: Wed, 24 Jun 2009 15:34:45 GMT From: Robert Kruus To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/136002: py-odbc build now respects PREFIX 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: Wed, 24 Jun 2009 15:40:04 -0000 >Number: 136002 >Category: ports >Synopsis: py-odbc build now respects PREFIX >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Wed Jun 24 15:40:03 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Robert Kruus >Release: FREEBSD 7.2 amd64 >Organization: >Environment: FreeBSD 412039H.gos.ca 7.2-RELEASE FreeBSD 7.2-RELEASE #4: Wed May 20 11:39:05 CST 2009 root@412039H.gos.ca:/usr/obj/usr/src/sys/GENERIC amd64 >Description: The new patch file now respects PREFIX to build in non-standard locations. Replaces the current patch in the py-odbc/files directory. See: http://qat.tecnik93.com/index.php?action=list_buildports&build=7-STABLE-FPT-NPD&search_port_name=py-odbc >How-To-Repeat: >Fix: Patch attached with submission follows: --- setup.py.orig 2009-04-15 14:10:36.000000000 -0600 +++ setup.py 2009-06-24 09:15:04.203757061 -0600 @@ -54,8 +54,16 @@ else: # Other posix-like: Linux, Solaris, etc. + try: + include = '-I'+os.environ['PREFIX']+'/include' + lib = '-L'+os.environ['PREFIX']+'/lib' + except: + include = '-I/usr/local/include' + lib = '-L/usr/local/lib' + # Python functions take a lot of 'char *' that really should be const. gcc complains about this *a lot* - extra_compile_args = ['-Wno-write-strings'] + extra_compile_args = ['-Wno-write-strings', include, lib] + extra_link_args = [ lib ] # What is the proper way to detect iODBC, MyODBC, unixODBC, etc.? libraries.append('odbc') >Release-Note: >Audit-Trail: >Unformatted: