From owner-freebsd-apache@FreeBSD.ORG Tue Sep 17 10:54:28 2013 Return-Path: Delivered-To: apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 476C78A6; Tue, 17 Sep 2013 10:54:28 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mail-pd0-x236.google.com (mail-pd0-x236.google.com [IPv6:2607:f8b0:400e:c02::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1C20E2D2B; Tue, 17 Sep 2013 10:54:28 +0000 (UTC) Received: by mail-pd0-f182.google.com with SMTP id r10so5404970pdi.41 for ; Tue, 17 Sep 2013 03:54:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=to:subject:from:cc:message-id:date; bh=XBsPyDRuC8rUeluoVCAuWOGip7kViZl2dmX0j8ISTGc=; b=zQi8G6EDHXvArPz/DmUsC2RiIzXjIYIfSmsHfoM3OX/n/DG4dCY6bWVniznKD9hn6n 8/o67Y2QzDhISpAc7je3lDwp3mMRTDuDYThCE+KkfOY+jWe6kXZ1bY5mW4anFklNz57X 6Dbs9kTPrLCBQji/BlPGUVHXa82hjxp7NNB8/Jr78lWhCc4ymFoJUQd9rLcUTKEr/5Uh A5FZw2wfDnRxL/VSMYhlKGjOxPSLYnMzTEHSmfo7yFUgsTdO2E4Slk/Q7IXLhMsx816Q atV7uqetuYtUNSPA/yH9wPTUOyGKDaI5xDtC6UDeUy6Nt9RkpdCz8pNSGZVtyJooKhc0 nl4Q== X-Received: by 10.66.231.42 with SMTP id td10mr7653805pac.144.1379415267817; Tue, 17 Sep 2013 03:54:27 -0700 (PDT) Received: from 9-STABLE-amd64.elysium (ppp59-167-128-11.static.internode.on.net. [59.167.128.11]) by mx.google.com with ESMTPSA id qa9sm37432816pbc.7.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Sep 2013 03:54:27 -0700 (PDT) Received: by 9-STABLE-amd64.elysium (Postfix, from userid 1001) id 3FB773C58E; Tue, 17 Sep 2013 20:54:23 +1000 (EST) To: FreeBSD-gnats-submit@freebsd.org Subject: [PATCH] www/mod_python3: Fix linking when Python is built with libs in LOCALBASE From: Kubilay Kocak X-send-pr-version: 3.113 X-GNATS-Notify: Message-Id: <20130917105423.3FB773C58E@9-STABLE-amd64.elysium> Date: Tue, 17 Sep 2013 20:54:23 +1000 (EST) Cc: apache@FreeBSD.org X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Sep 2013 10:54:28 -0000 >Submitter-Id: current-users >Originator: Kubilay Kocak >Organization: >Confidential: no >Synopsis: [PATCH] www/mod_python3: Fix linking when Python is built with libs in LOCALBASE >Severity: non-critical >Priority: low >Category: ports >Class: change-request >Release: FreeBSD 9.2-PRERELEASE amd64 >Environment: System: FreeBSD 9-STABLE-amd64.elysium 9.2-PRERELEASE FreeBSD 9.2-PRERELEASE #0 r254557: Tue Aug 20 21:44:31 EST >Description: www/mod_python3: Fix linking when Python is built with libs in LOCALBASE - Bump port revision - While I'm here, sort Makefile entries - Add regression-test target with comment Reported by: des, pkg-fallout Reviewed by: mva portlint: WARN - pkg-message: possible use of absolute pathname porttest: ??? whats up with pkg-plist, are apache mod ports not PREFIX safe ??? unittest: - Ran 68 tests in 12.590s - OK - Ran 6 tests in 41.549s - OK Port maintainer (apache@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.99_8 (mode: change, diff: ports) >How-To-Repeat: >Fix: --- ap22-mod_python-3.3.1_4.patch begins here --- diff -ruN /usr/ports/www/mod_python3/Makefile ./Makefile --- /usr/ports/www/mod_python3/Makefile 2013-08-15 08:35:50.000000000 +1000 +++ ./Makefile 2013-09-17 20:45:22.337915289 +1000 @@ -1,9 +1,9 @@ # Created by: Hye-Shik Chang -# $FreeBSD: www/mod_python3/Makefile 324744 2013-08-14 22:35:50Z ak $ +# $FreeBSD: head/www/mod_python3/Makefile 324744 2013-08-14 22:35:50Z ak $ PORTNAME= mod_python PORTVERSION= 3.3.1 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= www python MASTER_SITES= ${MASTER_SITE_APACHE_HTTPD} MASTER_SITE_SUBDIR= modpython @@ -13,20 +13,26 @@ MAINTAINER= apache@FreeBSD.org COMMENT= Apache module that embeds the Python interpreter within the server - USE_APACHE= 22 USE_PYTHON= yes -MAKE_ARGS+= APXS=${APXS} - INSTALLS_EGGINFO= yes -LATEST_LINK= mod_python3 -GNU_CONFIGURE= yes -CONFIGURE_ARGS+=--with-apxs="${APXS}" --with-python="${PYTHON_CMD}" \ - --without-flex +LATEST_LINK= mod_python3 + +GNU_CONFIGURE= yes +CONFIGURE_ARGS+= --with-apxs="${APXS}" \ + --with-python="${PYTHON_CMD}" \ + --without-flex + +LDFLAGS+= -L${LOCALBASE}/lib +MAKE_ARGS+= APXS=${APXS} MAKE_ENV= EXPR_COMPAT=yes post-install: @${CAT} ${PKGMESSAGE} +# You need to install apache & mod_python before you run this +regression-test: build + @cd ${WRKSRC} && ${MAKE} check + .include --- ap22-mod_python-3.3.1_4.patch ends here ---