Bug 267629 - ports-mgmt/pkg, ports-mgmt/pkg-devel: already locked, or already unlocked, after using pkg-lock(8) to lock or unlock
Summary: ports-mgmt/pkg, ports-mgmt/pkg-devel: already locked, or already unlocked, af...
Status: In Progress
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Baptiste Daroussin
URL: https://github.com/freebsd/pkg/commit...
Keywords: regression
Depends on:
Blocks:
 
Reported: 2022-11-07 23:55 UTC by Vladyslav V. Prodan
Modified: 2022-11-08 07:27 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladyslav V. Prodan 2022-11-07 23:55:13 UTC
# pkg lock -l
Currently locked packages:
php73-pear-1.10.6
php73-pecl-imagick-3.4.4
php73-pecl-memcache-4.0.5.2
php73-pecl-pdflib-4.1.4_1

# pkg lock node12-12.20.2 npm-node12-6.14.8 php73-7.3.13
node12-12.20.2: lock this package? [y/N]: y
Locking node12-12.20.2
npm-node12-6.14.8: lock this package? [y/N]: y
Locking npm-node12-6.14.8
php73-7.3.13: lock this package? [y/N]: y
Locking php73-7.3.13
php73-7.3.13: already locked

# pkg unlock php73-7.3.13
php73-7.3.13: unlock this package? [y/N]: y
Unlocking php73-7.3.13
php73-7.3.13: already unlocked

# pkg lock -l
Currently locked packages:
node12-12.20.2
npm-node12-6.14.8
php73-pear-1.10.6
php73-pecl-imagick-3.4.4
php73-pecl-memcache-4.0.5.2
php73-pecl-pdflib-4.1.4_1

# pkg lock php73-7.3.13
php73-7.3.13: lock this package? [y/N]: y
Locking php73-7.3.13
php73-7.3.13: already locked


# uname -a
FreeBSD cdn4.XXXX.com 12.4-STABLE FreeBSD 12.4-STABLE a841c0c24 SUPPORT-12-3-0  amd64
Comment 1 Vladyslav V. Prodan 2022-11-08 01:30:16 UTC
(In reply to Vladislav V. Prodan from comment #0)

# pkg -v
1.18.4
Comment 2 Graham Perrin freebsd_committer freebsd_triage 2022-11-08 05:58:37 UTC
% pkg provides -r FreeBSD pkg-lock.8
Name    : pkg-devel-1.18.99.6
Comment : Package manager
Repo    : FreeBSD
Filename: usr/local/man/man8/pkg-lock.8.gz

Name    : pkg-1.18.4
Comment : Package manager
Repo    : FreeBSD
Filename: usr/local/man/man8/pkg-lock.8.gz
% 

<https://www.freshports.org/ports-mgmt/pkg-devel/>
<https://www.freshports.org/ports-mgmt/pkg/>


(In reply to Vladislav V. Prodan from comment #0)

Thank you. 

It seems that the fix, in the master branch in GitHub, is not yet ported. Expect a port in due course. 


root@mowa219-gjp4-8570p-freebsd:~ # pkg unlock drm-510-kmod
drm-510-kmod-5.10.113_7: unlock this package? [y/N]: y
Unlocking drm-510-kmod-5.10.113_7
drm-510-kmod-5.10.113_7: already unlocked
root@mowa219-gjp4-8570p-freebsd:~ # pkg info -x pkg-devel
pkg-devel-1.18.99.6
root@mowa219-gjp4-8570p-freebsd:~ #