Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Aug 2008 00:25:30 GMT
From:      Christoph <christop@physik.tu-berlin.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/126254: Mercurial with false file modes
Message-ID:  <200808050025.m750PUId007502@www.freebsd.org>
Resent-Message-ID: <200808050030.m750U29f060659@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808050025.m750PUId007502>