Am I the only one seeing occasional unreliable pkg upgrades?
I think changes in package name or ports origin should be better handled
by pkg tools.
For example, we have php-composer installed on many of our machines. The
ports was flavorized, ports origin is the same, but pkg reports
php-composer as orphaned.
pkg upgrade just ignores php-composer:
root@jahoda ~/# pkg upgrade
Updating codelab repository catalogue...
codelab repository is up to date.
All repositories are up to date.
Checking for upgrades (0 candidates): 100%
Processing candidates (0 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.
But if I tell the pkg that I want to upgrade devel/php-composer it will
do the right thing
root@jahoda ~/# pkg upgrade devel/php-composer
Updating codelab repository catalogue...
codelab repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
php71-composer: 1.6.3
Number of packages to be installed: 1
The process will require 2 MiB more space.
380 KiB to be downloaded.
Proceed with this action? [y/N]: y
[1/1] Fetching php71-composer-1.6.3.txz: 100% 380 KiB 389.3kB/s 00:01
Checking integrity... done (1 conflicting)
- php71-composer-1.6.3 conflicts with php-composer-1.6.2 on
/usr/local/bin/composer
Checking integrity... done (0 conflicting)
Conflicts with the existing packages have been found.
One more solver iteration is needed to resolve them.
The following 2 package(s) will be affected (of 0 checked):
Installed packages to be REMOVED:
php-composer-1.6.2
New packages to be INSTALLED:
php71-composer: 1.6.3
Number of packages to be removed: 1
Number of packages to be installed: 1
Proceed with this action? [y/N]: y
[1/2] Deinstalling php-composer-1.6.2...
[1/2] Deleting files for php-composer-1.6.2: 100%
[2/2] Installing php71-composer-1.6.3...
[2/2] Extracting php71-composer-1.6.3: 100%
Why it is not handled automatically like in other OSes?
That's the reason we are still not using Ansible for mass pkg upgrades,
because we must carefully watch each and every pkg upgrade run. What it
will do and what it refuse to do without manual intervention.
Miroslav Lachman
PS: we are using own repository built with poudriere
_______________________________________________
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"