Date: Mon, 15 Oct 2001 02:54:03 +0200 (CEST) From: Anders Nordby <anders@fix.no> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/31273: Update port: www/mod_python Message-ID: <20011015005403.142C23D3A@totem.fix.no>
next in thread | raw e-mail | index | archive | help
>Number: 31273 >Category: ports >Synopsis: Update port: www/mod_python >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Oct 14 18:00:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Anders Nordby >Release: FreeBSD 4.4-STABLE i386 >Organization: Fluxpod Information eXchange >Environment: <Relevant environment information (multiple lines)> >Description: Remove self from pkg-descr. Fix pkg-req script. Set NO_PACKAGE, as this port requires Python without threads support. >How-To-Repeat: <Code/input/activities to reproduce the problem (multiple lines)> >Fix: diff -Nur mod_python.orig/Makefile mod_python/Makefile --- mod_python.orig/Makefile Sat Oct 13 14:15:57 2001 +++ mod_python/Makefile Sun Oct 14 22:31:32 2001 @@ -18,6 +18,7 @@ BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13 RUN_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13 +NO_PACKAGE= "Requires Python without threads support" USE_PYTHON= yes .include <bsd.port.pre.mk> @@ -44,7 +45,7 @@ .endif post-configure: - @${SH} ${PKGREQ}.threads ${PYTHON_CMD} ${PYTHON_BASE} + @${SH} ${PKGREQ}.threads ${PYTHON_CMD} .if defined(OPTIONAL_LIBS) ${SED} 's/^\(LIBS=.*\)/\1 ${OPTIONAL_LIBS}/' ${WRKSRC}/src/Makefile \ > ${WRKSRC}/src/Makefile.tmp && \ diff -Nur mod_python.orig/pkg-descr mod_python/pkg-descr --- mod_python.orig/pkg-descr Thu Aug 16 11:31:29 2001 +++ mod_python/pkg-descr Sun Oct 14 21:14:32 2001 @@ -7,5 +7,3 @@ This port requires a Python installation without threads support. Build & (re)install Python with WITHOUT_THREADS set. - -- Anders Nordby <anders@fix.no> diff -Nur mod_python.orig/pkg-req.threads mod_python/pkg-req.threads --- mod_python.orig/pkg-req.threads Thu Aug 16 11:31:29 2001 +++ mod_python/pkg-req.threads Sun Oct 14 21:15:13 2001 @@ -1,18 +1,18 @@ #! /bin/sh # anders@fix.no, 2001-08-07 -mydir=`dirname $0` +pydir=`dirname $1 | sed "s/\/bin//"` mylibc=`ldd $1 | tail +2 | awk '{print $1}' | cut -d'.' -f1 | grep ^libc` case $mylibc in libc_r) - echo "Error: Python installation in $2 uses threads. mod_python requires" + echo "Error: Python installation in $pydir uses threads. mod_python requires" echo "it to be built without threads. Please deinstall & rebuild/reinstall Python with" echo "WITHOUT_THREADS set." exit 1 ;; libc) - echo "Using a no-threads Python installation (PREFIX $2). Good." + echo "Using a no-threads Python installation (in $pydir). Good." exit 0 ;; *) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011015005403.142C23D3A>