From owner-freebsd-python@FreeBSD.ORG Sun Nov 14 02:42:23 2010 Return-Path: Delivered-To: python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E2C21106566B; Sun, 14 Nov 2010 02:42:23 +0000 (UTC) (envelope-from jhein@gossamer.timing.com) Received: from mout.perfora.net (mout.perfora.net [74.208.4.195]) by mx1.freebsd.org (Postfix) with ESMTP id B0C6A8FC13; Sun, 14 Nov 2010 02:42:23 +0000 (UTC) Received: from gossamer.timing.com ([206.168.13.144]) by mrelay.perfora.net (node=mrus4) with ESMTP (Nemesis) id 0LtZUK-1OYSdw3zCW-010mpQ; Sat, 13 Nov 2010 21:42:20 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19679.19592.137826.440864@gossamer.timing.com> Date: Sat, 13 Nov 2010 19:42:16 -0700 From: John Hein To: FreeBSD-gnats-submit@freebsd.org X-Provags-ID: V02:K0:lG8WQnXLslEKrjjMQeWbX5MnLyFfO9uEp1PpQn71D6L 8wE5cr1AJ0jr8w0BwS10mF6rx/tgDIhZxV5K45AvW/Q6INmjhF idw8UlMU2WsD291yvcUwEranZXS7i80uMG+/Rpkk65TXMyBegS Q+b58FGwmiEyjnOeyBKgL3hsk74c7lk35HlKvM2OzZa6dQtM7f RwstXLFQ3o9L+YHLA1JYg== Cc: python@freebsd.org Subject: [patch] fix installed permissions for lang/python27 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: Sun, 14 Nov 2010 02:42:24 -0000 >Submitter-Id: current-users >Originator: John Hein >Organization: >Confidential: no >Synopsis: [patch] fix installed permissions for lang/python27 >Severity: non-critical >Priority: low >Category: ports >Class: update >Release: >Environment: >Description: The distribution tarball for python 2.7 has permission bits for 'others' set to 0 for the entire tarball. During install, lang/python27 copies Tools and Demo (using tar) to the installed prefix. Because of the tarball permissions, this renders them readable only by the installer (usually uid 0) or members of the installer's group (usually gid 0). Furthermore, the tar during post-install does not use --no-same-owner, so the installed files are owned by the builder, which often is not root. If using INSTALL_AS_USER, this doesn't matter. But if not using INSTALL_AS_USER (which is more common), then the common 'make && sudo make install' sequence (or some similar equivalent) will cause the files to be writable by the building user. While this probably doesn't matter that much (that just means the build user will be able to write to files that were installed by root, and more than likely the build user is trusted), it's more correct to have them owned by the installer (usually uid 0). The --no-same-owner fix should also be applied to lang/python2X (where X < 7) as well. The distribution tarball fix is not necessary for python26 (I didn't look further back than that) which has more normal permissions in its distribution tarball. >How-To-Repeat: >Fix: Fix permissions of extracted tarball for pieces that are copied during post-inastll. Use tar --no-same-owner during post-install to ensure copied files are owned by install user. --- Makefile.orig 2010-09-05 18:25:04.000000000 -0600 +++ Makefile 2010-11-13 19:39:03.000000000 -0700 @@ -146,6 +146,13 @@ CONFIGURE_ARGS+= --with-fpectl .endif +post-extract: +# The distribution tarball for python 2.7 has permission bits for 'others' +# set to 0. Later during install, we copy Tools and Demo to the installed +# prefix, so set them right here. + ${FIND} ${WRKSRC}/Tools ${WRKSRC}/Demo -type d | ${XARGS} ${CHMOD} a+rx + ${FIND} ${WRKSRC}/Tools ${WRKSRC}/Demo -type f | ${XARGS} ${CHMOD} a+r + pre-patch: ${CP} -r ${PATCH_WRKSRC}/Lib/plat-freebsd8 \ ${PATCH_WRKSRC}/Lib/plat-freebsd9 @@ -260,12 +267,12 @@ .if !defined(NOPORTDATA) @${MKDIR} ${DATADIR} @cd ${PYTHON_WRKSRC}; ${TAR} -cf - Tools | \ - (cd ${DATADIR}; ${TAR} -xf -) + (cd ${DATADIR}; ${TAR} --no-same-owner -xf -) .endif .if !defined(NOPORTEXAMPLES) @${MKDIR} ${EXAMPLESDIR} @cd ${PYTHON_WRKSRC}/Demo; ${TAR} -cf - * | \ - (cd ${EXAMPLESDIR}; ${TAR} -xf -) + (cd ${EXAMPLESDIR}; ${TAR} --no-same-owner -xf -) .endif @${CAT} ${PKGMESSAGE} From owner-freebsd-python@FreeBSD.ORG Sun Nov 14 02:50:15 2010 Return-Path: Delivered-To: freebsd-python@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F17E9106566B; Sun, 14 Nov 2010 02:50:15 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C67DF8FC17; Sun, 14 Nov 2010 02:50:15 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oAE2oFhG086828; Sun, 14 Nov 2010 02:50:15 GMT (envelope-from edwin@freefall.freebsd.org) Received: (from edwin@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oAE2oF4u086824; Sun, 14 Nov 2010 02:50:15 GMT (envelope-from edwin) Date: Sun, 14 Nov 2010 02:50:15 GMT Message-Id: <201011140250.oAE2oF4u086824@freefall.freebsd.org> To: edwin@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, freebsd-python@FreeBSD.org From: edwin@FreeBSD.org Cc: Subject: Re: ports/152224: [patch] fix installed permissions for lang/python27 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: Sun, 14 Nov 2010 02:50:16 -0000 Synopsis: [patch] fix installed permissions for lang/python27 Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-python Responsible-Changed-By: edwin Responsible-Changed-When: Sun Nov 14 02:50:15 UTC 2010 Responsible-Changed-Why: Over to maintainer (via the GNATS Auto Assign Tool) http://www.freebsd.org/cgi/query-pr.cgi?pr=152224 From owner-freebsd-python@FreeBSD.ORG Sun Nov 14 03:04:55 2010 Return-Path: Delivered-To: python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 71FC8106566B for ; Sun, 14 Nov 2010 03:04:55 +0000 (UTC) (envelope-from jhein@gossamer.timing.com) Received: from mout.perfora.net (mout.perfora.net [74.208.4.195]) by mx1.freebsd.org (Postfix) with ESMTP id 3C20F8FC0A for ; Sun, 14 Nov 2010 03:04:54 +0000 (UTC) Received: from gossamer.timing.com ([206.168.13.144]) by mrelay.perfora.net (node=mrus2) with ESMTP (Nemesis) id 0MJjfo-1PGMxv20ns-001beS; Sat, 13 Nov 2010 22:04:53 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19679.20942.450382.314870@gossamer.timing.com> Date: Sat, 13 Nov 2010 20:04:46 -0700 From: John Hein In-Reply-To: <54144999@toto.iv> References: <432874FB-0011-4F4D-A40F-BE1DA7A489C1@gmail.com> X-Mailer: VM 8.0.12 under 22.3.1 (i386-redhat-linux-gnu) X-Provags-ID: V02:K0:/nh/gmM5/mbKC8R/a4setP2H73vGOSUfSGUl2pjS/Zv H4cY985+nLEsKcKtL/HGYBj//2hhpOtbWNaAvwOR8ZGeGdS9Vs CAzaaTf3XzlrSz4ha5jiKD/yvaqRq54FsBe+/coKN7tTr67osC TytMFC6lFcv8vq5NC4ygb4qd53lyiKgmXXFM40lh1+5W5hUE+W ZtoKCskzUiX/X07GAu6IQ== Cc: ports@freebsd.org, Maxim Khitrov , python@freebsd.org, Sylvain Garrigues Subject: Re: FreeBSD Port: python27-2.7.0_1 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: Sun, 14 Nov 2010 03:04:55 -0000 John Hein wrote at 15:55 MDT on Oct 30, 2010: > Maxim Khitrov wrote at 15:42 -0400 on Oct 30, 2010: > > On Sat, Oct 30, 2010 at 2:46 PM, Sylvain Garrigues wrote: > > > Hello, > > > > > > I am using FreeBSD 8.1 and I would like to know the reasons > > > why it has been decided that the default Python installation > > > is 2.6 and not 2.7. > > > > > > Thanks in advance. > > > > Add "PYTHON_DEFAULT_VERSION=python2.7" to /etc/make.conf. To answer Sylvain's original query, 2.7 is fairly new still. When a sufficent amount of testing has occurred that indicates 2.7 has no regressions, then someone will throw the switch. Of course, what constitutes a sufficient amount of testing is somewhat subjective. So the more use it gets by early adopters (such as yourself presumably), the higher the confidence in being able to update the default. I've been using python27 for a couple months now without any problems. To help get the default switched from 2.6 to 2.7, request it and report any successes (and problems) here and/or submit PRs. A search in the PR database for python27 doesn't turn up any significant problems. It will also probably require at least one full ports test build. I don't know if one has been requested. From owner-freebsd-python@FreeBSD.ORG Sun Nov 14 04:10:11 2010 Return-Path: Delivered-To: freebsd-python@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B81BE106564A for ; Sun, 14 Nov 2010 04:10:11 +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 A59B48FC08 for ; Sun, 14 Nov 2010 04:10:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oAE4ABvP070465 for ; Sun, 14 Nov 2010 04:10:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oAE4ABUJ070464; Sun, 14 Nov 2010 04:10:11 GMT (envelope-from gnats) Date: Sun, 14 Nov 2010 04:10:11 GMT Message-Id: <201011140410.oAE4ABUJ070464@freefall.freebsd.org> To: freebsd-python@FreeBSD.org From: Anonymous Cc: Subject: Re: ports/152224: [patch] fix installed permissions for lang/python27 X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Anonymous List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Nov 2010 04:10:11 -0000 The following reply was made to PR ports/152224; it has been noted by GNATS. From: Anonymous To: John Hein Cc: bug-followup@FreeBSD.org Subject: Re: ports/152224: [patch] fix installed permissions for lang/python27 Date: Sun, 14 Nov 2010 07:04:09 +0300 John Hein writes: [...] > Fix permissions of extracted tarball for pieces that are copied > during post-inastll. > > Use tar --no-same-owner during post-install to ensure copied files > are owned by install user. I'm not sure `--no-same-owner' is available on 6.x, better use `-o'. > +post-extract: > +# The distribution tarball for python 2.7 has permission bits for 'others' > +# set to 0. Later during install, we copy Tools and Demo to the installed > +# prefix, so set them right here. > + ${FIND} ${WRKSRC}/Tools ${WRKSRC}/Demo -type d | ${XARGS} ${CHMOD} a+rx > + ${FIND} ${WRKSRC}/Tools ${WRKSRC}/Demo -type f | ${XARGS} ${CHMOD} a+r > + This can be reduced to one command ${FIND} ${WRKSRC}/Tools ${WRKSRC}/Demo \ -type d -exec ${CHMOD} a+rx {} + \ -or -type f -exec ${CHMOD} a+r {} + From owner-freebsd-python@FreeBSD.ORG Sun Nov 14 08:07:22 2010 Return-Path: Delivered-To: python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF8FF1065673 for ; Sun, 14 Nov 2010 08:07:22 +0000 (UTC) (envelope-from wenheping@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 92DA98FC17 for ; Sun, 14 Nov 2010 08:07:22 +0000 (UTC) Received: by iwn39 with SMTP id 39so5401539iwn.13 for ; Sun, 14 Nov 2010 00:07:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=4q4QhQKNrWyYdSzdD6DBjQ+3eHbAzRpZhzdjhIemIUM=; b=nGV+Y4rcwYp9iaorIl9zl+VzNX1fpTtc9+QiXm4+loxYUETQGDl2mlw1roZppND1Sr y8/aBbg/ei/Gx+P6am+R7Rs+DX+G/3vIj3MaaopVPitSdPtaRWmp7nz8Y1prQMwfDQ3W 7ScgbgP3pW23Mx421zLi7JJE/OblvTl/2yxko= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=oKOIUK4SMQ4ImvDnDtC3GK7pQrbDcdLCq2G54EdpAJNFhF0fxfQIs07YseaBRJsRPx gOq6JNvbpGnHqhfH10LUX79Q+Bkkp+1vDBiXbUaIPkWySyl03AisSEhNf6GchU+1cXS2 LwL1/tlhOAJ9CE8g9u1+7oJB+PdxvtclTnGSQ= MIME-Version: 1.0 Received: by 10.231.36.139 with SMTP id t11mr3456904ibd.83.1289720217491; Sat, 13 Nov 2010 23:36:57 -0800 (PST) Received: by 10.231.8.65 with HTTP; Sat, 13 Nov 2010 23:36:57 -0800 (PST) In-Reply-To: <19679.20942.450382.314870@gossamer.timing.com> References: <432874FB-0011-4F4D-A40F-BE1DA7A489C1@gmail.com> <54144999@toto.iv> <19679.20942.450382.314870@gossamer.timing.com> Date: Sun, 14 Nov 2010 15:36:57 +0800 Message-ID: From: wen heping To: John Hein Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: ports@freebsd.org, Maxim Khitrov , python@freebsd.org, Sylvain Garrigues Subject: Re: FreeBSD Port: python27-2.7.0_1 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: Sun, 14 Nov 2010 08:07:23 -0000 I think we shall update python2.7 as PYTHON_DEFAULT_VERSION at least after python-2.7.1 and FreeBSD-8.2 release. wen 2010/11/14 John Hein : > John Hein wrote at 15:55 MDT on Oct 30, 2010: > =C2=A0> Maxim Khitrov wrote at 15:42 -0400 on Oct 30, 2010: > =C2=A0> =C2=A0> On Sat, Oct 30, 2010 at 2:46 PM, Sylvain Garrigues wrote: > =C2=A0> =C2=A0> > Hello, > =C2=A0> =C2=A0> > > =C2=A0> =C2=A0> > I am using FreeBSD 8.1 and I would like to know the rea= sons > =C2=A0> =C2=A0> > why it has been decided that the default Python install= ation > =C2=A0> =C2=A0> > is 2.6 and not 2.7. > =C2=A0> =C2=A0> > > =C2=A0> =C2=A0> > Thanks in advance. > =C2=A0> =C2=A0> > =C2=A0> =C2=A0> Add "PYTHON_DEFAULT_VERSION=3Dpython2.7" to /etc/make.con= f. > > To answer Sylvain's original query, 2.7 is fairly new still. =C2=A0When a > sufficent amount of testing has occurred that indicates 2.7 has no > regressions, then someone will throw the switch. =C2=A0Of course, what > constitutes a sufficient amount of testing is somewhat subjective. =C2=A0= So > the more use it gets by early adopters (such as yourself presumably), > the higher the confidence in being able to update the default. > > I've been using python27 for a couple months now without any problems. > To help get the default switched from 2.6 to 2.7, request it and > report any successes (and problems) here and/or submit PRs. > > A search in the PR database for python27 doesn't turn up any > significant problems. > > It will also probably require at least one full ports test build. =C2=A0I > don't know if one has been requested. > _______________________________________________ > freebsd-python@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-python > To unsubscribe, send any mail to "freebsd-python-unsubscribe@freebsd.org" > --=20 =E7=9C=9F=E7=90=86=E4=BB=8E=E6=9D=A5=E6=B2=A1=E6=9C=89=E6=88=98=E8=83=9C=E8= =BF=87=E8=B0=AC=E8=AF=AF=EF=BC=8C=E7=9C=9F=E7=90=86=E5=8F=AA=E6=9C=89=E5=9C= =A8=E5=9D=9A=E6=8C=81=E8=B0=AC=E8=AF=AF=E7=9A=84=E4=BA=BA=E6=AD=BB=E5=8E=BB= =E5=90=8E=E6=89=8D=E6=88=90=E4=B8=BA=E7=9C=9F=E7=90=86=E3=80=82 From owner-freebsd-python@FreeBSD.ORG Sun Nov 14 22:40:08 2010 Return-Path: Delivered-To: freebsd-python@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4139C1065673 for ; Sun, 14 Nov 2010 22:40:08 +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 14F9E8FC17 for ; Sun, 14 Nov 2010 22:40:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oAEMe716071588 for ; Sun, 14 Nov 2010 22:40:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oAEMe7I0071587; Sun, 14 Nov 2010 22:40:07 GMT (envelope-from gnats) Date: Sun, 14 Nov 2010 22:40:07 GMT Message-Id: <201011142240.oAEMe7I0071587@freefall.freebsd.org> To: freebsd-python@FreeBSD.org From: John Hein Cc: Subject: Re: ports/152224: [patch] fix installed permissions for lang/python27 X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John Hein List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Nov 2010 22:40:08 -0000 The following reply was made to PR ports/152224; it has been noted by GNATS. From: John Hein To: Anonymous , bug-followup@FreeBSD.org Cc: Subject: Re: ports/152224: [patch] fix installed permissions for lang/python27 Date: Sun, 14 Nov 2010 15:19:33 -0700 --CJa2am+ero Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit John Hein wrote at 10:49 MST on Nov 14, 2010: > Anonymous wrote at 07:04 +0300 on Nov 14, 2010: > > John Hein writes: > > > > [...] > > > Fix permissions of extracted tarball for pieces that are copied > > > during post-inastll. > > > > > > Use tar --no-same-owner during post-install to ensure copied files > > > are owned by install user. > > > > I'm not sure `--no-same-owner' is available on 6.x, better use `-o'. Yes, I checked tar compatibility. --no-same-owner is available... in gnu tar available in 6.x's base or a port and if someone has installed bsdtar from ports. bsd.port.mk uses it, too. > > > +post-extract: > > > +# The distribution tarball for python 2.7 has permission bits for 'others' > > > +# set to 0. Later during install, we copy Tools and Demo to the installed > > > +# prefix, so set them right here. > > > + ${FIND} ${WRKSRC}/Tools ${WRKSRC}/Demo -type d | ${XARGS} ${CHMOD} a+rx > > > + ${FIND} ${WRKSRC}/Tools ${WRKSRC}/Demo -type f | ${XARGS} ${CHMOD} a+r > > > + > > > > This can be reduced to one command > > > > ${FIND} ${WRKSRC}/Tools ${WRKSRC}/Demo \ > > -type d -exec ${CHMOD} a+rx {} + \ > > -or -type f -exec ${CHMOD} a+r {} + Indeed, good idea... updated patch: --CJa2am+ero Content-Type: text/plain; name="p" Content-Description: fix installed permissions for lang/python27 Content-Disposition: inline; filename="p" Content-Transfer-Encoding: 7bit Index: Makefile =================================================================== RCS file: /base/FreeBSD-CVS/ports/lang/python27/Makefile,v retrieving revision 1.169 diff -u -p -r1.169 Makefile --- Makefile 6 Sep 2010 00:25:04 -0000 1.169 +++ Makefile 14 Nov 2010 22:16:27 -0000 @@ -146,6 +146,14 @@ CONFIGURE_ARGS+= --disable-ipv6 CONFIGURE_ARGS+= --with-fpectl .endif +post-extract: +# The distribution tarball for python 2.7 has permission bits for 'others' +# set to 0. Later during install, we copy Tools and Demo to the installed +# prefix, so set them right here. + ${FIND} ${WRKSRC}/Tools ${WRKSRC}/Demo \ + -type d -exec ${CHMOD} a+rx {} + \ + -or -type f -exec ${CHMOD} a+r {} + + pre-patch: ${CP} -r ${PATCH_WRKSRC}/Lib/plat-freebsd8 \ ${PATCH_WRKSRC}/Lib/plat-freebsd9 @@ -260,12 +268,12 @@ post-install: .if !defined(NOPORTDATA) @${MKDIR} ${DATADIR} @cd ${PYTHON_WRKSRC}; ${TAR} -cf - Tools | \ - (cd ${DATADIR}; ${TAR} -xf -) + (cd ${DATADIR}; ${TAR} --no-same-owner -xf -) .endif .if !defined(NOPORTEXAMPLES) @${MKDIR} ${EXAMPLESDIR} @cd ${PYTHON_WRKSRC}/Demo; ${TAR} -cf - * | \ - (cd ${EXAMPLESDIR}; ${TAR} -xf -) + (cd ${EXAMPLESDIR}; ${TAR} --no-same-owner -xf -) .endif @${CAT} ${PKGMESSAGE} --CJa2am+ero-- From owner-freebsd-python@FreeBSD.ORG Mon Nov 15 11:07:02 2010 Return-Path: Delivered-To: freebsd-python@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA4501065700 for ; Mon, 15 Nov 2010 11:07:02 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B6F808FC26 for ; Mon, 15 Nov 2010 11:07:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oAFB72UK086381 for ; Mon, 15 Nov 2010 11:07:02 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oAFB72lW086377 for freebsd-python@FreeBSD.org; Mon, 15 Nov 2010 11:07:02 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 15 Nov 2010 11:07:02 GMT Message-Id: <201011151107.oAFB72lW086377@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-python@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-python@FreeBSD.org 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: Mon, 15 Nov 2010 11:07:02 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/152224 python [patch] fix installed permissions for lang/python27 o ports/151534 python lang/python26 + WITH_PTH doesn't install correctly o ports/151121 python [PATCH] lang/python27: fix 'make deinstall' while pyth f ports/150184 python cannot install ports/math/py-numpy o ports/149167 python lang/python26 fails to build _ctypes on Sheevaplug (AR o ports/148406 python [PATCH] lang/python26: fix build backage without threa o ports/147291 python lang/python* doesn't compile nis.so when WITHOUT_NIS s o ports/146957 python Mk/bsd.python.mk: PYTHONOPTIMIZE=1 in environ(7) break o ports/146823 python [patch] lang/python26: knob to build _ctypes module ag o ports/146644 python lang/python26: WITH_PTH option breaks most ports depen f ports/145460 python Unable to build /usr/ports/net-p2p/py-bittorrent-core a ports/144035 python ports/databases/py-sqlite3 does not start to build o ports/140968 python x11-toolkits/py-tkinter(devel/pth): py26-tkinter-2.6.4 o ports/136917 python [patch] lang/python26: gettext detection o ports/133081 python [bsd.python.mk] PYEASYINSTALL_ARCHDEP=yes makes broken o ports/118301 python devel/py-setuptools easy-install.pth contents lost on o ports/115940 python Missed one file in lang/python25 if NO_NIS defined 17 problems total. From owner-freebsd-python@FreeBSD.ORG Mon Nov 15 17:19:53 2010 Return-Path: Delivered-To: freebsd-python@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 500C9106566B for ; Mon, 15 Nov 2010 17:19:53 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id AC7228FC1E for ; Mon, 15 Nov 2010 17:19:52 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id oAFHJaUg014148; Mon, 15 Nov 2010 18:19:51 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id oAFHJZmf014147; Mon, 15 Nov 2010 18:19:35 +0100 (CET) (envelope-from olli) Date: Mon, 15 Nov 2010 18:19:35 +0100 (CET) Message-Id: <201011151719.oAFHJZmf014147@lurza.secnetix.de> From: Oliver Fromme To: freebsd-python@FreeBSD.ORG, jhein@symmetricom.com In-Reply-To: <19679.20942.450382.314870@gossamer.timing.com> X-Newsgroups: list.freebsd-python User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.5 (lurza.secnetix.de [127.0.0.1]); Mon, 15 Nov 2010 18:19:51 +0100 (CET) Cc: Subject: Re: FreeBSD Port: python27-2.7.0_1 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: Mon, 15 Nov 2010 17:19:53 -0000 John Hein wrote: > To answer Sylvain's original query, 2.7 is fairly new still. When a > sufficent amount of testing has occurred that indicates 2.7 has no > regressions, then someone will throw the switch. Of course, what > constitutes a sufficient amount of testing is somewhat subjective. So > the more use it gets by early adopters (such as yourself presumably), > the higher the confidence in being able to update the default. > > I've been using python27 for a couple months now without any problems. > To help get the default switched from 2.6 to 2.7, request it and > report any successes (and problems) here and/or submit PRs. > > A search in the PR database for python27 doesn't turn up any > significant problems. FWIW, I'm also using Python 2.7 for several months on quite a lot of machines. I upgraded from 2.6 because I wanted to use some of the new features, in particular "memoryview", which helps to considerably improve the performance of a program of mine that manipulates video data. There were only two or three minor problems. I've reported them, and they all got fixed quickly. So, as far as I'm concerned, the default can be switched over. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "Life is short (You need Python)" -- Bruce Eckel, ANSI C++ Comitee member, author of "Thinking in C++" and "Thinking in Java" From owner-freebsd-python@FreeBSD.ORG Mon Nov 15 17:40:09 2010 Return-Path: Delivered-To: freebsd-python@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 607CF1065672 for ; Mon, 15 Nov 2010 17:40:09 +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 349F88FC13 for ; Mon, 15 Nov 2010 17:40:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oAFHe9II096069 for ; Mon, 15 Nov 2010 17:40:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oAFHe9p3096068; Mon, 15 Nov 2010 17:40:09 GMT (envelope-from gnats) Date: Mon, 15 Nov 2010 17:40:09 GMT Message-Id: <201011151740.oAFHe9p3096068@freefall.freebsd.org> To: freebsd-python@FreeBSD.org From: Oliver Fromme Cc: Subject: Re: ports/152224: [patch] fix installed permissions for ?lang/python27 X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Oliver Fromme List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Nov 2010 17:40:09 -0000 The following reply was made to PR ports/152224; it has been noted by GNATS. From: Oliver Fromme To: Anonymous , jhein@symmetricom.com, bug-followup@FreeBSD.org Cc: Subject: Re: ports/152224: [patch] fix installed permissions for ?lang/python27 Date: Mon, 15 Nov 2010 18:35:40 +0100 (CET) Anonymous wrote: > John Hein writes: > > +post-extract: > > +# The distribution tarball for python 2.7 has permission bits for 'others' > > +# set to 0. Later during install, we copy Tools and Demo to the installed > > +# prefix, so set them right here. > > + ${FIND} ${WRKSRC}/Tools ${WRKSRC}/Demo -type d | ${XARGS} ${CHMOD} a+rx > > + ${FIND} ${WRKSRC}/Tools ${WRKSRC}/Demo -type f | ${XARGS} ${CHMOD} a+r > > + > > This can be reduced to one command > > ${FIND} ${WRKSRC}/Tools ${WRKSRC}/Demo \ > -type d -exec ${CHMOD} a+rx {} + \ > -or -type f -exec ${CHMOD} a+r {} + It's unclear to me why you have to use find(1) at all. The following simple command should work equally well: ${CHMOD} -R og=u-w ${WRKSRC}/Tools ${WRKSRC}/Demo Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "We, the unwilling, led by the unknowing, are doing the impossible for the ungrateful. We have done so much, for so long, with so little, we are now qualified to do anything with nothing."         -- Mother Teresa From owner-freebsd-python@FreeBSD.ORG Mon Nov 15 18:21:30 2010 Return-Path: Delivered-To: python@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6789B1065675; Mon, 15 Nov 2010 18:21:30 +0000 (UTC) (envelope-from jhein@gossamer.timing.com) Received: from mout.perfora.net (mout.perfora.net [74.208.4.194]) by mx1.freebsd.org (Postfix) with ESMTP id 2EB5B8FC23; Mon, 15 Nov 2010 18:21:29 +0000 (UTC) Received: from gossamer.timing.com ([206.168.13.144]) by mrelay.perfora.net (node=mrus0) with ESMTP (Nemesis) id 0LiRym-1OmIIR2F9o-00czl4; Mon, 15 Nov 2010 13:21:13 -0500 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="9oaHwTfnCu" Content-Transfer-Encoding: 7bit Message-ID: <19681.31250.541714.180410@gossamer.timing.com> Date: Mon, 15 Nov 2010 11:21:06 -0700 From: John Hein To: Oliver Fromme In-Reply-To: <201011151735.oAFHZeY6014846@lurza.secnetix.de> References: <201011140410.oAE4ABUJ070464@freefall.freebsd.org> <201011151735.oAFHZeY6014846@lurza.secnetix.de> X-Provags-ID: V02:K0:GSoKATzSLyTqTjqImj2hIdAyAMTXoLzgWSuP1Uivfaj ZTSfOldXa8inoIdYivnKVJREPixba1xyaG0A9UbrnSiPHO+DjG RFj0sOUWXi9rFYFiKNZ/Jvm58YAYRAZf5KvavBrq3+su0v6rHf kHBvk/O72KI9TcDJ/u1ysGO5x7KMqol4IhVtZ9Xw5SertH3S5X DlqvDPmMtXlfOoOIuhI3A== Cc: Anonymous , python@FreeBSD.org, bug-followup@FreeBSD.org Subject: Re: ports/152224: [patch] fix installed permissions for ?lang/python27 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: Mon, 15 Nov 2010 18:21:30 -0000 --9oaHwTfnCu Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit Oliver Fromme wrote at 18:35 +0100 on Nov 15, 2010: > Anonymous wrote: > > John Hein writes: > > > +post-extract: > > > +# The distribution tarball for python 2.7 has permission bits for 'others' > > > +# set to 0. Later during install, we copy Tools and Demo to the installed > > > +# prefix, so set them right here. > > > + ${FIND} ${WRKSRC}/Tools ${WRKSRC}/Demo -type d | ${XARGS} ${CHMOD} a+rx > > > + ${FIND} ${WRKSRC}/Tools ${WRKSRC}/Demo -type f | ${XARGS} ${CHMOD} a+r > > > + > > > > This can be reduced to one command > > > > ${FIND} ${WRKSRC}/Tools ${WRKSRC}/Demo \ > > -type d -exec ${CHMOD} a+rx {} + \ > > -or -type f -exec ${CHMOD} a+r {} + > > It's unclear to me why you have to use find(1) at all. > The following simple command should work equally well: > > ${CHMOD} -R og=u-w ${WRKSRC}/Tools ${WRKSRC}/Demo Yes, that's better still and will work fine since the user bits are good in the tarball. Updated patch (with a fix for the path, too)... --9oaHwTfnCu Content-Type: text/plain; name="p" Content-Description: just use chmod; fix path with PYTHON_WRKSRC Content-Disposition: inline; filename="p" Content-Transfer-Encoding: 7bit Index: Makefile =================================================================== RCS file: /base/FreeBSD-CVS/ports/lang/python27/Makefile,v retrieving revision 1.169 diff -u -p -r1.169 Makefile --- Makefile 6 Sep 2010 00:25:04 -0000 1.169 +++ Makefile 15 Nov 2010 18:16:55 -0000 @@ -146,6 +146,12 @@ CONFIGURE_ARGS+= --disable-ipv6 CONFIGURE_ARGS+= --with-fpectl .endif +post-extract: +# The distribution tarball for python 2.7 has permission bits for 'others' +# set to 0. Later during install, we copy Tools and Demo to the installed +# prefix, so set them right here. + ${CHMOD} og=u-w ${PYTHON_WRKSRC}/Tools ${PYTHON_WRKSRC}/Demo + pre-patch: ${CP} -r ${PATCH_WRKSRC}/Lib/plat-freebsd8 \ ${PATCH_WRKSRC}/Lib/plat-freebsd9 @@ -260,12 +266,12 @@ post-install: .if !defined(NOPORTDATA) @${MKDIR} ${DATADIR} @cd ${PYTHON_WRKSRC}; ${TAR} -cf - Tools | \ - (cd ${DATADIR}; ${TAR} -xf -) + (cd ${DATADIR}; ${TAR} --no-same-owner -xf -) .endif .if !defined(NOPORTEXAMPLES) @${MKDIR} ${EXAMPLESDIR} @cd ${PYTHON_WRKSRC}/Demo; ${TAR} -cf - * | \ - (cd ${EXAMPLESDIR}; ${TAR} -xf -) + (cd ${EXAMPLESDIR}; ${TAR} --no-same-owner -xf -) .endif @${CAT} ${PKGMESSAGE} --9oaHwTfnCu-- From owner-freebsd-python@FreeBSD.ORG Mon Nov 15 18:30:15 2010 Return-Path: Delivered-To: freebsd-python@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 911B91065670 for ; Mon, 15 Nov 2010 18:30:15 +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 64DF08FC15 for ; Mon, 15 Nov 2010 18:30:15 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oAFIUFqJ047949 for ; Mon, 15 Nov 2010 18:30:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oAFIUFPK047946; Mon, 15 Nov 2010 18:30:15 GMT (envelope-from gnats) Date: Mon, 15 Nov 2010 18:30:15 GMT Message-Id: <201011151830.oAFIUFPK047946@freefall.freebsd.org> To: freebsd-python@FreeBSD.org From: John Hein Cc: Subject: Re: ports/152224: [patch] fix installed permissions for ?lang/python27 X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John Hein List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Nov 2010 18:30:15 -0000 The following reply was made to PR ports/152224; it has been noted by GNATS. From: John Hein To: Oliver Fromme Cc: Anonymous , python@FreeBSD.org, bug-followup@FreeBSD.org Subject: Re: ports/152224: [patch] fix installed permissions for ?lang/python27 Date: Mon, 15 Nov 2010 11:21:06 -0700 --9oaHwTfnCu Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit Oliver Fromme wrote at 18:35 +0100 on Nov 15, 2010: > Anonymous wrote: > > John Hein writes: > > > +post-extract: > > > +# The distribution tarball for python 2.7 has permission bits for 'others' > > > +# set to 0. Later during install, we copy Tools and Demo to the installed > > > +# prefix, so set them right here. > > > + ${FIND} ${WRKSRC}/Tools ${WRKSRC}/Demo -type d | ${XARGS} ${CHMOD} a+rx > > > + ${FIND} ${WRKSRC}/Tools ${WRKSRC}/Demo -type f | ${XARGS} ${CHMOD} a+r > > > + > > > > This can be reduced to one command > > > > ${FIND} ${WRKSRC}/Tools ${WRKSRC}/Demo \ > > -type d -exec ${CHMOD} a+rx {} + \ > > -or -type f -exec ${CHMOD} a+r {} + > > It's unclear to me why you have to use find(1) at all. > The following simple command should work equally well: > > ${CHMOD} -R og=u-w ${WRKSRC}/Tools ${WRKSRC}/Demo Yes, that's better still and will work fine since the user bits are good in the tarball. Updated patch (with a fix for the path, too)... --9oaHwTfnCu Content-Type: text/plain; name="p" Content-Description: just use chmod; fix path with PYTHON_WRKSRC Content-Disposition: inline; filename="p" Content-Transfer-Encoding: 7bit Index: Makefile =================================================================== RCS file: /base/FreeBSD-CVS/ports/lang/python27/Makefile,v retrieving revision 1.169 diff -u -p -r1.169 Makefile --- Makefile 6 Sep 2010 00:25:04 -0000 1.169 +++ Makefile 15 Nov 2010 18:16:55 -0000 @@ -146,6 +146,12 @@ CONFIGURE_ARGS+= --disable-ipv6 CONFIGURE_ARGS+= --with-fpectl .endif +post-extract: +# The distribution tarball for python 2.7 has permission bits for 'others' +# set to 0. Later during install, we copy Tools and Demo to the installed +# prefix, so set them right here. + ${CHMOD} og=u-w ${PYTHON_WRKSRC}/Tools ${PYTHON_WRKSRC}/Demo + pre-patch: ${CP} -r ${PATCH_WRKSRC}/Lib/plat-freebsd8 \ ${PATCH_WRKSRC}/Lib/plat-freebsd9 @@ -260,12 +266,12 @@ post-install: .if !defined(NOPORTDATA) @${MKDIR} ${DATADIR} @cd ${PYTHON_WRKSRC}; ${TAR} -cf - Tools | \ - (cd ${DATADIR}; ${TAR} -xf -) + (cd ${DATADIR}; ${TAR} --no-same-owner -xf -) .endif .if !defined(NOPORTEXAMPLES) @${MKDIR} ${EXAMPLESDIR} @cd ${PYTHON_WRKSRC}/Demo; ${TAR} -cf - * | \ - (cd ${EXAMPLESDIR}; ${TAR} -xf -) + (cd ${EXAMPLESDIR}; ${TAR} --no-same-owner -xf -) .endif @${CAT} ${PKGMESSAGE} --9oaHwTfnCu--