Opened 18 months ago

Last modified 18 months ago

#67525 new defect

libgcc12: odd state failures when trying to clean or install a port

Reported by: lukaso (Lukas Oberhuber) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: mascguy (Christopher Nielsen)
Port: libgcc12

Description

I get this error when trying to install libgcc12 (though I can't be 100% certain as it only happens on the CI system.

I've seen this happen with other ports as well.

Error: Unable to execute port: couldn't open "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc12/libgcc12/work/.macports.libgcc12.state": permission denied

Any ideas why macports is failing in this unintuitive and very hard to code around way?

Change History (3)

comment:1 Changed 18 months ago by mascguy (Christopher Nielsen)

Cc: mascguy added

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

Can't imagine why that would happen, aside from obvious reasons such as the file was created by one user and you are now trying to access it as another user (and you are not using a root MacPorts installation, which you mentioned in #67528 was the case). Or, the file was created as root and you are now trying to access it as non-root.

comment:3 Changed 18 months ago by lukaso (Lukas Oberhuber)

This error was unrelated to #67528 (happening on the CI server vs locally). When I logged onto the CI server, the file could not be deleted, even when doing sudo rm. Uninstalling and cleaning the port clears it away, but it means that I'm having to uninstall and clean the ports where this happens, in case it happens.

Note: See TracTickets for help on using tickets.