Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#16309 closed defect (invalid)

openjpeg needs root to upgrade

Reported by: yaseppochi (Stephen J. Turnbull) Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc:
Port:

Description

One shouldn't need to be root to stage and install a graphics library.

chibi:MacPorts steve$ port clean openjpeg; port upgrade openjpeg
--->  Cleaning openjpeg
--->  Fetching openjpeg
--->  Verifying checksum(s) for openjpeg
--->  Extracting openjpeg
--->  Applying patches to openjpeg
--->  Configuring openjpeg
--->  Building openjpeg
--->  Staging openjpeg into destroot
Error: Target org.macports.destroot returned: shell command " cd "/opt/local/var/macports/build/_Users_steve_Software_MacPorts_dports_graphics_openjpeg/work/OpenJPEG_v1_3" && make install -f Makefile.osx PREFIX=/opt/local DESTDIR=/opt/local/var/macports/build/_Users_steve_Software_MacPorts_dports_graphics_openjpeg/work/destroot " returned error 2
Command output: install -d '/opt/local/var/macports/build/_Users_steve_Software_MacPorts_dports_graphics_openjpeg/work/destroot/opt/local/lib' '/opt/local/var/macports/build/_Users_steve_Software_MacPorts_dports_graphics_openjpeg/work/destroot/opt/local/include'
install -m 644 -o root -g admin libopenjpeg.a '/opt/local/var/macports/build/_Users_steve_Software_MacPorts_dports_graphics_openjpeg/work/destroot/opt/local/lib'
install: /opt/local/var/macports/build/_Users_steve_Software_MacPorts_dports_graphics_openjpeg/work/destroot/opt/local/lib/libopenjpeg.a: chown/chgrp: Operation not permitted
make: *** [install] Error 71

Error: Unable to upgrade port: 1
chibi:MacPorts steve$ sudo port destroot openjpeg
Password:
--->  Staging openjpeg into destroot
chibi:MacPorts steve$ port upgrade openjpeg
--->  Packaging tgz archive for openjpeg 1.3_0
Error: Target org.macports.archive returned: error copying "/opt/local/var/macports/build/_Users_steve_Software_MacPorts_dports_graphics_openjpeg/work/.macports.openjpeg.state" to "/opt/local/var/macports/build/_Users_steve_Software_MacPorts_dports_graphics_openjpeg/work/destroot/+STATE": permission denied
Error: Unable to upgrade port: 1
chibi:MacPorts steve$ sudo port archive openjpeg
--->  Packaging tgz archive for openjpeg 1.3_0
chibi:MacPorts steve$ port upgrade openjpeg
--->  Deactivating openjpeg @1.2_3
--->  Installing openjpeg @1.3_0
Error: Target org.macports.install returned: could not set owner for file "/opt/local/var/macports/software/openjpeg/1.3_0/opt/local": not owner
chibi:MacPorts steve$ sudo port install openjpeg @1.3_0
--->  Installing openjpeg @1.3_0
--->  Activating openjpeg @1.3_0
--->  Cleaning openjpeg

Change History (3)

comment:1 Changed 16 years ago by blb@…

Milestone: Port Bugs
Owner: changed from macports-tickets@… to mcalhoun@…

Assigning to maintainer.

comment:2 Changed 16 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: invalid
Status: newclosed

I am sorry that I never commented on this ticket.
I don't know how I missed it.

openjpeg tries to install as the same user and group who installed MacPorts (not the person running the port command).
Unless MacPorts was installed with the arguments --with-install-user=... and --with-install-group=...,
This would be the root user and admin group.

If my assessment is wrong, and you did in fact install MacPorts as a non-root user, please reopen the ticket.
I will reply faster this time.

comment:3 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.