Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#48653 closed defect (fixed)

p7zip @9.38.1: can't activate or clean in non-root prefix environment

Reported by: posita (Matt Bogosian (formerly @mbogosian)) Owned by: stuartwesterman (Stuart Westerman)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: su-v, MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: p7zip

Description

 % port install p7zip
--->  Fetching distfiles for p7zip
--->  Attempting to fetch p7zip_9.38.1_src_all.tar.bz2 from http://superb-dca2.dl.sourceforge.net/project/p7zip/p7zip/9.38.1
--->  Verifying checksums for p7zip
--->  Extracting p7zip
--->  Configuring p7zip
--->  Building p7zip
--->  Staging p7zip into destroot
--->  Installing p7zip @9.38.1_0
--->  Activating p7zip @9.38.1_0
Error: org.macports.activate for port p7zip returned: error deleting "/{{PREFIX}}/var/macports/software/p7zip/mpextractrK2T8jcM/{{PREFIX}}/share/doc/p7zip-9.38.1/DOC/7zC.txt": permission denied
Please see the log file for port p7zip for details:
    /{{PREFIX}}/var/macports/logs/_{{PREFIX}}_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_p7zip/p7zip/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port p7zip failed
port install p7zip  188.31s user 27.77s system 274% cpu 1:18.70 total

It won't clean either:

% port clean --all p7zip
--->  Cleaning p7zip
Error: error deleting "/{{PREFIX}}/var/macports/build/_{{PREFIX}}_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_p7zip/p7zip/work/destroot/{{PREFIX}}/share/doc/p7zip-9.38.1/DOC/7zC.txt": permission denied

Both of these problems look like they come down to 7zC.txt having permissions of 100444. This might be hidden in root installs (instead of user installs) because root might be able to remove such files without issue.

Attachments (1)

main.log.gz (20.8 KB) - added by posita (Matt Bogosian (formerly @mbogosian)) 4 years ago.

Download all attachments as: .zip

Change History (7)

Changed 4 years ago by posita (Matt Bogosian (formerly @mbogosian))

Attachment: main.log.gz added

comment:1 Changed 4 years ago by posita (Matt Bogosian (formerly @mbogosian))

Or rather the parent directory (DOC) not having write permissions. Either way it's an issue of either overly restrictive permissions or not an aggressive enough removal process.

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

Cc: stuartwesterman@… removed
Owner: changed from macports-tickets@… to stuartwesterman@…
Port: p7zip added; p7zip@9.38.1 removed
Summary: p7zip can't activate in userland prefix environmentp7zip @9.38.1: can't activate or clean in non-root prefix environment

comment:3 Changed 4 years ago by ryandesign (Ryan Schmidt)

We should fix this in MacPorts by changing the permissions in a post-extract block, but the developers of p7zip should also be informed of the problem so that they can fix their packaging process and release future versions with the right permissions.

comment:4 Changed 4 years ago by su-v

Cc: suv-sf@… added

Cc Me!

comment:5 Changed 4 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: newclosed

This should be fixed in r140698.

comment:6 Changed 4 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Cc: mcalhoun@… added

Cc Me!

Note: See TracTickets for help on using tickets.