[Bug 235441] devel/py-gitosis: issues when upgraded to python3

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Feb 2 21:59:59 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235441

            Bug ID: 235441
           Summary: devel/py-gitosis: issues when upgraded to python3
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: danmcgrath.ca at gmail.com
                CC: douglas at douglasthrift.net
                CC: douglas at douglasthrift.net
             Flags: maintainer-feedback?(douglas at douglasthrift.net)

Hi,

I tried an upgrade of py27-gitosis from 2019Q1 (py27-gitosis-0.2.20090917_1) to
py36 today, but it appears that there were some unforeseen consequences and
breakages that prevented our git checkout from working.

This is a snippet from the failed checkout attempt:

=====
$ git pull
Traceback (most recent call last):
  File "/usr/local/bin/gitosis-serve", line 11, in <module>
    load_entry_point('gitosis==0.2', 'console_scripts', 'gitosis-serve')()
  File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line
                                      487, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line
                                      2728, in load_entry_point
    return ep.load()
  File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line
                                      2346, in load
    return self.resolve()
  File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line
                                      2352, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python3.6/site-packages/gitosis/serve.py", line 142
    util.mkdir(p, 0750)
                     ^
SyntaxError: invalid token
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
=====


Someone on our ML was suggesting that:

 "util.mkdir(p, 0750)"

should be:

 "AFAIK, this should be 0o750 for Python3"

but I am not entirely sure here as I am not a python2/3 person! Also, with the
state of gitosis being without a maintainer, I don't know if this bug report is
useful beyond getting it indexed by search engines for future explorers to
discover :D

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list