Bug 176803 - [PATCH] devel/py-dateutil: Incorrect permissions for installed egg-info files
Summary: [PATCH] devel/py-dateutil: Incorrect permissions for installed egg-info files
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Nicola Vitale
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-10 06:40 UTC by koobs
Modified: 2013-03-11 22:00 UTC (History)
1 user (show)

See Also:


Attachments
py27-dateutil-2.1.patch (802 bytes, patch)
2013-03-10 06:40 UTC, koobs
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description koobs 2013-03-10 06:40:00 UTC
The egg-info files installed by this port have 600 permissions, not
allowing them to be read by a non privileged user. This causes the
following tracebacks to occur:

Traceback (most recent call last):
  File "/usr/local/bin/easy_install-2.7", line 5, in <module>
    from pkg_resources import load_entry_point
  File "build/bdist.freebsd-9.1-STABLE-amd64/egg/pkg_resources.py", line 2825, in <module>
  File "build/bdist.freebsd-9.1-STABLE-amd64/egg/pkg_resources.py", line 710, in subscribe
  File "build/bdist.freebsd-9.1-STABLE-amd64/egg/pkg_resources.py", line 2825, in <lambda>
  File "build/bdist.freebsd-9.1-STABLE-amd64/egg/pkg_resources.py", line 2257, in activate
  File "build/bdist.freebsd-9.1-STABLE-amd64/egg/pkg_resources.py", line 2364, in insert_on
  File "build/bdist.freebsd-9.1-STABLE-amd64/egg/pkg_resources.py", line 2403, in check_version_conflict
  File "build/bdist.freebsd-9.1-STABLE-amd64/egg/pkg_resources.py", line 2251, in _get_metadata
  File "build/bdist.freebsd-9.1-STABLE-amd64/egg/pkg_resources.py", line 1219, in get_metadata_lines
  File "build/bdist.freebsd-9.1-STABLE-amd64/egg/pkg_resources.py", line 1211, in get_metadata
  File "build/bdist.freebsd-9.1-STABLE-amd64/egg/pkg_resources.py", line 1326, in _get
IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/site-packages/python_dateutil-2.1-py2.7.egg/EGG-INFO/top_level.txt'

This issue has been reported in at least Debian and ArchLinux bug trackers:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=462297
https://bugs.archlinux.org/task/30020

Attached patch chmods directories 755 and files 644 post-patch:

Port maintainer (nivit@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_7 (mode: change, diff: ports)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-03-10 06:40:09 UTC
Responsible Changed
From-To: freebsd-ports-bugs->nivit

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-03-11 21:59:18 UTC
Author: nivit
Date: Mon Mar 11 21:59:10 2013
New Revision: 313942
URL: http://svnweb.freebsd.org/changeset/ports/313942

Log:
  - Fix incorrect permissions of egg-info files
  - Bump PORTREVISION
  
  PR:	ports/176803
  Submitted by:	koobs

Modified:
  head/devel/py-dateutil/Makefile

Modified: head/devel/py-dateutil/Makefile
==============================================================================
--- head/devel/py-dateutil/Makefile	Mon Mar 11 21:34:13 2013	(r313941)
+++ head/devel/py-dateutil/Makefile	Mon Mar 11 21:59:10 2013	(r313942)
@@ -3,6 +3,7 @@
 
 PORTNAME=	dateutil
 PORTVERSION=	2.1
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -20,6 +21,10 @@ USE_PYTHON=	yes
 USE_PYDISTUTILS=	easy_install
 PYDISTUTILS_PKGNAME=	python-dateutil
 
+# Fix incorrect permissions
+post-patch:
+	@${FIND} ${WRKSRC}/python_dateutil.egg-info -type f -exec ${CHMOD} ${SHAREMODE} {} ";"
+
 regression-test: build
 	@cd ${WRKSRC} && ${PYTHON_CMD} test.py
 
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Nicola Vitale freebsd_committer freebsd_triage 2013-03-11 21:59:31 UTC
State Changed
From-To: open->closed

Committed, thanks!