Opened 21 months ago

Closed 13 months ago

Last modified 12 months ago

#67017 closed defect (fixed)

Unnecessary prompt to install build dependencies when using an archive

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: jmroot (Joshua Root)
Priority: Normal Milestone: MacPorts 2.9.0
Component: base Version: 2.8.1
Keywords: Cc:
Port:

Description

MacPorts asked me to install build dependencies of a port when reinstalling it, even though a binary was used:

% sudo port -n upgr --force librsvg                
--->  Fetching archive for librsvg
--->  Attempting to fetch librsvg-2.54.5_0.darwin_21.x86_64.tbz2 from https://packages.macports.org/librsvg
--->  Attempting to fetch librsvg-2.54.5_0.darwin_21.x86_64.tbz2.rmd160 from https://packages.macports.org/librsvg
--->  Computing dependencies for librsvg
The following dependencies will be installed: 
 cargo
 libgit2
 rust
Continue? [Y/n]: n
--->  Unable to uninstall librsvg @2.54.5_0, the following ports depend on it:
--->  	ffmpeg @4.4.2_4+gpl2
--->  	imlib2 @1.10.0_1+doc
Warning: Uninstall forced.  Proceeding despite dependencies.
--->  Deactivating librsvg @2.54.5_0
--->  Cleaning librsvg
--->  Uninstalling librsvg @2.54.5_0
--->  Cleaning librsvg
--->  Computing dependencies for librsvg
--->  Installing librsvg @2.54.5_0
--->  Activating librsvg @2.54.5_0
--->  Cleaning librsvg
--->  Scanning binaries for linking errors
--->  No broken files found.                             
--->  No broken ports found.

Change History (3)

comment:1 Changed 13 months ago by jmroot (Joshua Root)

Owner: set to jmroot
Resolution: fixed
Status: newclosed

In a9597dcb02df76d128e96995428ab385078ae12d/macports-base (master):

_upgrade: only run destroot if there's no archive

Closes: #67017

comment:2 Changed 13 months ago by jmroot (Joshua Root)

Milestone: MacPorts Future

comment:3 Changed 12 months ago by jmroot (Joshua Root)

Milestone: MacPorts FutureMacPorts 2.9.0
Note: See TracTickets for help on using tickets.