pkg icon indicating copy to clipboard operation
pkg copied to clipboard

pkg upgrade overwriting locked packages

Open Neffistopheles opened this issue 11 years ago • 8 comments

pkg upgrade seems to ignore package locks. This doesn't seem to be intentional, since it even states that it's not going to do so.

In this scenario I just rebuilt ffmpeg and I'm reinstalling its dependents. See this gist: https://gist.github.com/Neffistopheles/718302fb256fcf067eab

As you can see, it downloaded and unpacked binary ffmpeg from the pkgng repos despite the lock. My pkg version as well as FreeBSD version are included at the bottom of the gist.

pkg install doesn't behave this way, just pkg upgrade.

Neffistopheles avatar Nov 07 '15 01:11 Neffistopheles

I just saw this as well. I went to update dovecot-pigeonhole via pkg upgrade, and I saw a notice that dovecot2 was locked and would not be upgraded. pkg upgraded proceeded to reinstall dovecot2 from an upstream package (blowing away my port config) before installing dovecot-piegonhole, despite the lock. After the upgrade, dovecot2 was no longer locked.

mhoran avatar Jan 25 '16 00:01 mhoran

I've got the same issue than @mhoran and consider the lock mechanism broken. Got dovecot2 and postfix locked, and whenever there are updates available for them they get updated and unlocked, despite the fact that pkg-upgrade states they are "locked and may not be modified". This is really annoying given the fact that it breaks our mail servers all the time. This issue also came up on the freebsd bugtracker.

pepe82s avatar Mar 25 '16 06:03 pepe82s

This should be fixed in the next release. Let me see if I can get a -devel out so we can have you test it.

brd avatar Mar 25 '16 14:03 brd

See 84361ab6df454d68470f10d99e674525d3ce5dcf

brd avatar Mar 25 '16 14:03 brd

unfortunately I only have 2 productive machines I could test on. I would do test it as soon as there is an update for a package I Iocked, but I just did update both machines (which made me comment here).

pepe82s avatar Mar 25 '16 15:03 pepe82s

There will be an updated package soon, 1.6.5 should be released in the next days

bapt avatar Mar 25 '16 15:03 bapt

Looking forward to it. Thanks heaps!

pepe82s avatar Mar 25 '16 15:03 pepe82s

in the has been part of 1.7

bapt avatar May 25 '16 20:05 bapt