ports/126254: Mercurial with false file modes

Christoph christop at physik.tu-berlin.de
Tue Aug 5 00:30:02 UTC 2008


>Number:         126254
>Category:       ports
>Synopsis:       Mercurial with false file modes
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 05 00:30:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Christoph
>Release:        7.0
>Organization:
>Environment:
>Description:
When you install mercurial from ports it works only for root because it is installed like this:

drwx------   3 root  wheel   2,0K  5 Aug 02:17 hgext
drwx------   4 root  wheel   4,0K  5 Aug 02:17 mercurial
-rw-------   1 root  wheel   234B  5 Aug 02:17 mercurial-1.0.1-py2.5.egg-info


For a user it looks like this:

Traceback (most recent call last):
  File "/usr/local/bin/hg", line 11, in <module>
    from mercurial import demandimport; demandimport.enable()
ImportError: No module named mercurial
>How-To-Repeat:
Install devel/mercurial and try to start it as non-root.
>Fix:
chmod -R a+r /usr/local/lib/python2.5/site-packages/hgext
chmod -R a+r /usr/local/lib/python2.5/site-packages/mercurial
chmod -R a+r /usr/local/lib/python2.5/site-packages/mercurial-1.0.1-py2.5.egg-info
chmod a+x /usr/local/lib/python2.5/site-packages/mercurial
chmod a+x /usr/local/lib/python2.5/site-packages/hgext

Maybe this does not solve everything.

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list