From nobody@FreeBSD.org  Tue Jul 31 02:47:19 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 011F0106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 31 Jul 2012 02:47:19 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id DF7888FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 31 Jul 2012 02:47:18 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q6V2lI5L013067
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 31 Jul 2012 02:47:18 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q6V2lIac013066;
	Tue, 31 Jul 2012 02:47:18 GMT
	(envelope-from nobody)
Message-Id: <201207310247.q6V2lIac013066@red.freebsd.org>
Date: Tue, 31 Jul 2012 02:47:18 GMT
From: Garrett Cooper <yaneurabeya@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: pylint broken after latest update due to permissions issue
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         170290
>Category:       ports
>Synopsis:       devel/pylint broken after latest update due to permissions issue
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mva
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 31 02:50:10 UTC 2012
>Closed-Date:    Thu Aug 02 07:39:43 UTC 2012
>Last-Modified:  Sun Feb 03 22:30:45 UTC 2013
>Originator:     Garrett Cooper
>Release:        9.1-PRERELEASE
>Organization:
EMC Isilon
>Environment:
FreeBSD forza.west.isilon.com 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #2 r238921M: Mon Jul 30 14:47:10 PDT 2012     gcooper@forza.west.isilon.com:/usr/obj/usr/src/sys/FORZA  amd64
>Description:
pylint won't run after a recent astng2 update, because the file permissions for the py2stdlib module are too exclusive:

$ pylint
Traceback (most recent call last):
  File "/usr/local/bin/pylint", line 3, in <module>
    from pylint import lint
  File "/usr/local/lib/python2.7/site-packages/pylint/lint.py", line 31, in <module>
    from pylint.checkers import utils
  File "/usr/local/lib/python2.7/site-packages/pylint/checkers/__init__.py", line 44, in <module>
    from logilab.astng.utils import ASTWalker
  File "/usr/local/lib/python2.7/site-packages/logilab/astng/__init__.py", line 85, in <module>
    __import__(module[:-3])
ImportError: No module named py2stdlib
$ ls -l /usr/local/lib/python2.7/site-packages
-rw-------  1 root  wheel  2828 Jul 18 02:38 /usr/local/lib/python2.7/site-packages/logilab/astng/brain/py2stdlib.py

After I chmod a+r the file, then pylint functions again:

$ pylint
Usage:  pylint [options] module_or_package

  Check that a module satisfy a coding standard (and more !).

    pylint --help

  Display this help message and exit.

    pylint --help-msg <msg-id>[,<msg-id>]

  Display help messages about given message identifiers and exit.


Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  --long-help           more verbose help.

  Master:
    --rcfile=<file>     Specify a configuration file.
    -E, --errors-only   In error mode, checkers without error messages are
                        disabled and for others, only the ERROR messages are
                        displayed, and no reports are done by default
    --ignore=<file>[,<file>...]
                        Add files or directories to the blacklist. They should
                        be base names, not paths. [current: CVS]

  Commands:
    --help-msg=<msg-id>
                        Display a help message for the given message id and
                        exit. The value may be a comma separated list of
                        message ids.
    --generate-rcfile   Generate a sample configuration file according to the
                        current configuration. You can put other options
                        before this one to get them in the generated
                        configuration.

  Messages control:
    -e <msg ids>, --enable=<msg ids>
                        Enable the message, report, category or checker with
                        the given id(s). You can either give multiple
                        identifier separated by comma (,) or put this option
                        multiple time.
    -d <msg ids>, --disable=<msg ids>
                        Disable the message, report, category or checker with
                        the given id(s). You can either give multiple
                        identifier separated by comma (,) or put this option
                        multiple time (only on the command line, not in the
                        configuration file where it should appear only once).

  Reports:
    -f <format>, --output-format=<format>
                        Set the output format. Available formats are text,
                        parseable, colorized, msvs (visual studio) and html
                        [current: text]
    -i <y_or_n>, --include-ids=<y_or_n>
                        Include message's id in output [current: no]
    -r <y_or_n>, --reports=<y_or_n>
                        Tells whether to display a full report or only the
                        messages [current: yes]
>How-To-Repeat:
cd /usr/ports/devel/pylint; make install
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-ports-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Jul 31 14:56:31 UTC 2012 
Responsible-Changed-Why:  
ports PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=170290 
Responsible-Changed-From-To: freebsd-ports-bugs->mva 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Jul 31 14:57:07 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=170290 
State-Changed-From-To: open->closed 
State-Changed-By: mva 
State-Changed-When: Thu Aug 2 07:39:42 UTC 2012 
State-Changed-Why:  
This has been fixed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=170290 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/170290: commit references a PR
Date: Thu,  2 Aug 2012 07:39:15 +0000 (UTC)

 Author: mva
 Date: Thu Aug  2 07:39:04 2012
 New Revision: 301857
 URL: http://svn.freebsd.org/changeset/ports/301857
 
 Log:
   - Fix file permissions for py2stdlib module
   
   PR:		ports/170290
   Reported by:	Garrett Cooper <yaneurabeya@gmail.com>
 
 Modified:
   head/devel/py-astng/Makefile
 
 Modified: head/devel/py-astng/Makefile
 ==============================================================================
 --- head/devel/py-astng/Makefile	Thu Aug  2 07:24:39 2012	(r301856)
 +++ head/devel/py-astng/Makefile	Thu Aug  2 07:39:04 2012	(r301857)
 @@ -7,6 +7,7 @@
  
  PORTNAME=	astng
  PORTVERSION=	0.24.0
 +PORTREVISION=	1
  CATEGORIES=	devel python
  MASTER_SITES=	LOGILAB
  PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 @@ -22,4 +23,9 @@ USE_PYTHON=		yes
  USE_PYDISTUTILS=	yes
  PYDISTUTILS_PKGNAME=	logilab-astng
  
 -.include <bsd.port.mk>
 +.include <bsd.port.pre.mk>
 +
 +post-patch:
 +	@${CHMOD} a+r ${WRKSRC}/brain/py2stdlib.py
 +
 +.include <bsd.port.post.mk>
 _______________________________________________
 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"
 
>Unformatted:
