From owner-freebsd-python@FreeBSD.ORG Tue Apr 3 09:04:30 2007 Return-Path: X-Original-To: python@FreeBSD.org Delivered-To: freebsd-python@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0BFF616A402 for ; Tue, 3 Apr 2007 09:04:30 +0000 (UTC) (envelope-from nivit@email.it) Received: from vsmtp2.tin.it (vsmtp2.tin.it [212.216.176.222]) by mx1.freebsd.org (Postfix) with ESMTP id C8A6913C4C3 for ; Tue, 3 Apr 2007 09:04:29 +0000 (UTC) (envelope-from nivit@email.it) Received: from localhost (87.15.164.5) by vsmtp2.tin.it (7.2.072.1) id 460BE0B7005D5740 for python@FreeBSD.org; Tue, 3 Apr 2007 10:53:25 +0200 Received: (qmail 3472 invoked by uid 0); 3 Apr 2007 08:43:16 -0000 Date: 3 Apr 2007 08:43:16 -0000 Message-ID: <20070403084316.3471.qmail@arancino> From: nivit@email.it (Nicola Vitale) To: FreeBSD-gnats-submit@freebsd.org X-send-pr-version: 3.113 X-GNATS-Notify: Cc: python@FreeBSD.org Subject: [PATCH] devel/py-simplejson: fix build on pointyhat X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2007 09:04:30 -0000 >Submitter-Id: current-users >Originator: Nicola Vitale >Organization: >Confidential: no >Synopsis: [PATCH] devel/py-simplejson: fix build on pointyhat >Severity: non-critical >Priority: low >Category: ports >Class: change-request >Release: FreeBSD 6.2-STABLE i386 >Environment: System: FreeBSD arancino.domo.sva 6.2-STABLE FreeBSD 6.2-STABLE #13: Fri Mar 30 10:55:00 CEST 2007 >Description: - Fix build on pointyhat (see http://pointyhat.freebsd.org/errorlogs/i386-errorlogs/e.5.2007032502/py24-simplejson-1.7.log ) Port maintainer (python@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- py24-simplejson-1.7.1.patch begins here --- diff -ruN --exclude=CVS /usr/ports/devel/py-simplejson/Makefile /usr/ports/devel/py-simplejson.fix_build/Makefile --- /usr/ports/devel/py-simplejson/Makefile Tue Apr 3 10:17:59 2007 +++ /usr/ports/devel/py-simplejson.fix_build/Makefile Tue Apr 3 10:14:00 2007 @@ -20,15 +20,21 @@ USE_PYTHON= yes USE_PYDISTUTILS= yes -PYSIMPLEJSON_EGG= ${PORTNAME}-${PORTVERSION}-py${PYTHON_VER}-freebsd-${OSRELEASE}-${ARCH}.egg +PYSIMPLEJSON_EGG= ${PORTNAME}-${PORTVERSION}-py${PYTHON_VER}-${OSINFOS}.egg +OSINFOS= ${OPSYS:L}-${OSRELEASE}-${ARCH} -PLIST_SUB+= PYSIMPLEJSON_EGG=${PYSIMPLEJSON_EGG} \ - EGG_VER="${PORTNAME}==${PORTVERSION}" +PLIST_SUB+= PYSIMPLEJSON_EGG=${PYSIMPLEJSON_EGG} .if !defined(NOPORTDOCS) DOCSDIR= ${TARGETDIR}/share/doc/py-${PORTNAME} PORTDOCS= * .endif + +pre-build: + @cd ${WRKSRC} && ${PYTHON_CMD} setup.py setopt -c build -o build-platlib -s lib.${OSINFOS} + @cd ${WRKSRC} && ${PYTHON_CMD} setup.py setopt -c build -o build-temp -s temp.${OSINFOS}-${PYTHON_VER} + @cd ${WRKSRC} && ${PYTHON_CMD} setup.py setopt -c bdist_egg -o plat-name -s ${OSINFOS} + @cd ${WRKSRC} && ${PYTHON_CMD} setup.py setopt -c bdist -o plat-name -s ${OSINFOS} post-install: .if !defined(NOPORTDOCS) diff -ruN --exclude=CVS /usr/ports/devel/py-simplejson/pkg-plist /usr/ports/devel/py-simplejson.fix_build/pkg-plist --- /usr/ports/devel/py-simplejson/pkg-plist Sat Jan 27 21:34:18 2007 +++ /usr/ports/devel/py-simplejson.fix_build/pkg-plist Mon Mar 19 19:59:00 2007 @@ -1,4 +1,4 @@ @comment $FreeBSD: ports/devel/py-simplejson/pkg-plist,v 1.3 2007/01/27 00:35:01 nivit Exp $ -@unexec easy_install -q -m -S %D/%%PYTHON_SITELIBDIR%% %%EGG_VER%% +@unexec easy_install -q -N -m %D/%%PYTHON_SITELIBDIR%%/%%PYSIMPLEJSON_EGG%% %%PYTHON_SITELIBDIR%%/%%PYSIMPLEJSON_EGG%% -@exec easy_install -q -N -S %D/%%PYTHON_SITELIBDIR%% %%EGG_VER%% +@exec easy_install -N %D/%%PYTHON_SITELIBDIR%%/%%PYSIMPLEJSON_EGG%% --- py24-simplejson-1.7.1.patch ends here ---