Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#30360 closed defect (wontfix)

py26-hgsubversion @1.2.1.e30ff6d5feff install failure

Reported by: mrctrevisan@… Owned by: akitada@…
Priority: Normal Milestone:
Component: ports Version: 2.0.0
Keywords: Cc: cheungpat@…, titus@…
Port: py26-hgsubversion

Description

Hi all,

The install script of py26-hgsubversion @1.2.1.e30ff6d5feff expects to be able to cd to /var/root/.subversion. For some reason this fails on Lion: in order for the build script to work I had to temporarily issue a chown o+x /var/root.

I run "port install" in a "sudo su" session so I didn't expect to see such an error.

Relevant log file section:

:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-hgsubversion/py26-hgsubversion/work/hgsubversion-1.2.1.e30ff6d5feff" && /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 setup.py --no-user-cfg build'
:debug:build Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-hgsubversion/py26-hgsubversion/work/hgsubversion-1.2.1.e30ff6d5feff" && /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 setup.py --no-user-cfg build 
:info:build Traceback (most recent call last):
:info:build   File "setup.py", line 105, in <module>
:info:build     from hgsubversion.svnwrap import svn_swig_wrapper
:info:build   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-hgsubversion/py26-hgsubversion/work/hgsubversion-1.2.1.e30ff6d5feff/hgsubversion/__init__.py", line 58, in <module>
:info:build     import svncommands
:info:build   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-hgsubversion/py26-hgsubversion/work/hgsubversion-1.2.1.e30ff6d5feff/hgsubversion/svncommands.py", line 14, in <module>
:info:build     import svnwrap
:info:build   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-hgsubversion/py26-hgsubversion/work/hgsubversion-1.2.1.e30ff6d5feff/hgsubversion/svnwrap/__init__.py", line 28, in <module>
:info:build     from svn_swig_wrapper import *
:info:build   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-hgsubversion/py26-hgsubversion/work/hgsubversion-1.2.1.e30ff6d5feff/hgsubversion/svnwrap/svn_swig_wrapper.py", line 60, in <module>
:info:build     svn_config = core.svn_config_get_config(None)
:info:build   File "/opt/local/lib/svn-python2.6/libsvn/core.py", line 4094, in svn_config_get_config
:info:build     return apply(_core.svn_config_get_config, args)
:info:build svn.core.SubversionException: ("Can't open file '/var/root/.subversion/servers': Permission denied", 13)
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-hgsubversion/py26-hgsubversion/work/hgsubversion-1.2.1.e30ff6d5feff" && /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 setup.py --no-user-cfg build " returned error 1
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for py26-hgsubversion): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for py26-hgsubversion is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-hgsubversion/py26-hgsubversion/main.log

Cheers,

Marco

Change History (6)

comment:1 Changed 9 years ago by mrctrevisan@…

Cc: mrctrevisan@… added

Cc Me!

comment:2 Changed 9 years ago by jmroot (Joshua Root)

Cc: mrctrevisan@… removed
Owner: changed from macports-tickets@… to akitada@…
Port: py26-hgsubversion added

Please remember to fill in the Port field and cc the maintainer. You do not need to be in cc when you are the reporter.

comment:3 Changed 9 years ago by mrctrevisan@…

Sorry, next time i'll do it right from the beginning :-D

Thanks!

comment:4 Changed 9 years ago by cheungpat@…

Cc: cheungpat@… added

Cc Me!

comment:5 Changed 9 years ago by titus@…

Resolution: wontfix
Status: newclosed

See also Tickets #32312 and #31943

py26-hgsubversion has been replaced by py27-hgsubversion. py27-hgsubversion now depends on py27-subvertpy which does not exhibit this behaviour.

The issue itself is not resolved, this still can happen when subversion-python27bindings is installed in parallel with py27-subvertpy.

As said in #32312: I think that this is a unlucky combination of bad code in py27-hgsubversion (svn_swig_wrapper) and subversion-python27bindings.

comment:6 Changed 9 years ago by titus@…

Cc: titus@… added

Cc Me!

Note: See TracTickets for help on using tickets.