Re-installing a port from source
If I have an installed port and want to force re-installation from source, I can do it with 'port upgrade -s -f {portname}'. But then all of its dependencies are also re-installed from source. Why is this? I thought usually this recursive upgrade has to be forced with --enforce-variants? Is there a better way to do it? Davor ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: Re-installing a port from source
On Mon, Jan 13, 2014 at 2:59 PM, Davor Cubranic cubra...@stat.ubc.cawrote: If I have an installed port and want to force re-installation from source, I can do it with 'port upgrade -s -f {portname}'. But then all of its dependencies are also re-installed from source. Why is this? I thought usually this recursive upgrade has to be forced with --enforce-variants? Is there a better way to do it? upgrade checks if dependencies need to be upgraded as well. these checks are as subject to -f as the original upgrade is. Perhaps you want the -n option. (`man port` is a good thing to read occasionally.) -- brandon s allbery kf8nh sine nomine associates allber...@gmail.com ballb...@sinenomine.net unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: Re-installing a port from source
I do read it more than occasionally, but it's easy to miss things in the mass of detail. Besides, it doesn't work: ~$ sudo port -s -f -n upgrade emacs-app --- Scanning binaries for linking errors: 100.0% --- No broken files found. On 2014-01-13, at 12:03 PM, Brandon Allbery wrote: On Mon, Jan 13, 2014 at 2:59 PM, Davor Cubranic cubra...@stat.ubc.ca wrote: If I have an installed port and want to force re-installation from source, I can do it with 'port upgrade -s -f {portname}'. But then all of its dependencies are also re-installed from source. Why is this? I thought usually this recursive upgrade has to be forced with --enforce-variants? Is there a better way to do it? upgrade checks if dependencies need to be upgraded as well. these checks are as subject to -f as the original upgrade is. Perhaps you want the -n option. (`man port` is a good thing to read occasionally.) -- brandon s allbery kf8nh sine nomine associates allber...@gmail.com ballb...@sinenomine.net unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: Re-installing a port from source
Your flags swapped location: Originally you had port upgrade -f but now you have port -f upgrade. Switching back to upgrade -f is likely all that’s wrong here. sudo port -s -n upgrade -f emacs-app On Jan 13, 2014, at 16:24, Davor Cubranic cubra...@stat.ubc.ca wrote: I do read it more than occasionally, but it's easy to miss things in the mass of detail. Besides, it doesn't work: ~$ sudo port -s -f -n upgrade emacs-app --- Scanning binaries for linking errors: 100.0% --- No broken files found. On 2014-01-13, at 12:03 PM, Brandon Allbery wrote: On Mon, Jan 13, 2014 at 2:59 PM, Davor Cubranic cubra...@stat.ubc.ca wrote: If I have an installed port and want to force re-installation from source, I can do it with 'port upgrade -s -f {portname}'. But then all of its dependencies are also re-installed from source. Why is this? I thought usually this recursive upgrade has to be forced with --enforce-variants? Is there a better way to do it? upgrade checks if dependencies need to be upgraded as well. these checks are as subject to -f as the original upgrade is. Perhaps you want the -n option. (`man port` is a good thing to read occasionally.) -- brandon s allbery kf8nh sine nomine associates allber...@gmail.com ballb...@sinenomine.net unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: Re-installing a port from source
No, sorry: $ sudo port -s -n upgrade -f emacs-app --- Scanning binaries for linking errors: 100.0% --- No broken files found. But, using upgrade --force did: $ sudo port -s -n upgrade --force emacs-app --- Computing dependencies for emacs-app --- Fetching distfiles for emacs-app --- Verifying checksums for emacs-app --- Extracting emacs-app In retrospect, I can sort of see this in the man page, but you really have to know what you're looking for... (Global switches vs. action switches can be a real pain.) Thanks for setting me on the right path. Davor On 2014-01-13, at 1:27 PM, Jeremy Lavergne wrote: Your flags swapped location: Originally you had port upgrade -f but now you have port -f upgrade. Switching back to upgrade -f is likely all that’s wrong here. sudo port -s -n upgrade -f emacs-app On Jan 13, 2014, at 16:24, Davor Cubranic cubra...@stat.ubc.ca wrote: I do read it more than occasionally, but it's easy to miss things in the mass of detail. Besides, it doesn't work: ~$ sudo port -s -f -n upgrade emacs-app --- Scanning binaries for linking errors: 100.0% --- No broken files found. On 2014-01-13, at 12:03 PM, Brandon Allbery wrote: On Mon, Jan 13, 2014 at 2:59 PM, Davor Cubranic cubra...@stat.ubc.ca wrote: If I have an installed port and want to force re-installation from source, I can do it with 'port upgrade -s -f {portname}'. But then all of its dependencies are also re-installed from source. Why is this? I thought usually this recursive upgrade has to be forced with --enforce-variants? Is there a better way to do it? upgrade checks if dependencies need to be upgraded as well. these checks are as subject to -f as the original upgrade is. Perhaps you want the -n option. (`man port` is a good thing to read occasionally.) -- brandon s allbery kf8nh sine nomine associates allber...@gmail.com ballb...@sinenomine.net unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: Re-installing a port from source
Likewise, I assumed your initial use of -f was a hidden action shorthand so I reused it in the example :-) On Jan 13, 2014, at 17:00, Davor Cubranic cubra...@stat.ubc.ca wrote: In retrospect, I can sort of see this in the man page, but you really have to know what you're looking for... (Global switches vs. action switches can be a real pain.) Thanks for setting me on the right path. ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users