Opened 2 years ago

Last modified 11 months ago

#64122 new defect

sphinx @2.2.11: error copying org.macports.sphinx.plist: file already exists

Reported by: ndebarnot (Nero) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: ssandrews (Steve Andrews)
Port: sphinx

Description

Installation of sphinx port fails with the following error:

--->  Creating launchd control script 'sphinx'
Error: Failed to destroot sphinx: error copying "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_sphinx/sphinx/work/sphinx-2.2.11-release/org.macports.sphinx.plist" to "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_sphinx/sphinx/work/destroot/opt/local/etc/LaunchDaemons/org.macports.sphinx/org.macports.sphinx.plist": file already exists
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_sphinx/sphinx/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port sphinx failed

Change History (7)

comment:1 Changed 2 years ago by ndebarnot (Nero)

Summary: Sphinx build fails on Montery with Apple SilliconSphinx build fails on Monterey with Apple Sillicon

comment:2 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: sphinx removed

This port both uses startupitem.create (which creates a launchd plist) and also tries to create and install a launchd plist manually. Seems like the port should choose just one method of installing the plist.

MacPorts base recently changed when launchd plists created by startupitem.create are placed into the destroot. They used to be created after the destroot phase; now they are created before the destroot phase, on order to give ports and opportunity to modify them if needed.

comment:3 Changed 2 years ago by ndebarnot (Nero)

Hello,

It looks like we're still unable to install Sphinx on Apple Silicon / Mac OS Monterey. Does anybody know if this will be fixed in the near future?

Thanks!

comment:4 Changed 22 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: ssandrews added
Summary: Sphinx build fails on Monterey with Apple Silliconsphinx @2.2.11: error copying org.macports.sphinx.plist: file already exists

Has duplicate #65430.

comment:5 Changed 22 months ago by ssandrews (Steve Andrews)

I'm echoing a prior comment, and am wondering if this is going to be fixed in the near future? It appears to be a fairly straightforward fix and would be valuable to a growing user community as Apple Silicon becomes more widespread. I certainly hope so! Thanks!

comment:6 Changed 22 months ago by ssandrews (Steve Andrews)

Problem solved. Rather than "sudo port install sphinx", run "sudo port install py310-sphinx" or whatever Python you're using. Then "sudo port select --set sphinx py310-sphinx". After doing this, sphinx will run as expected.

comment:7 Changed 11 months ago by petermao (Peter Mao)

Indeed @ssandrews' solution works, but the root problem remains. I was renaming the "already existing" files to get further into the build (this file was the second that I saw) until I hit the third one and figured it was bug-report time.

Note: See TracTickets for help on using tickets.