Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

portmaster creating corrupt legacy pkg db entries #37

Open
sysfu opened this issue Apr 3, 2014 · 3 comments
Open

portmaster creating corrupt legacy pkg db entries #37

sysfu opened this issue Apr 3, 2014 · 3 comments

Comments

@sysfu
Copy link

sysfu commented Apr 3, 2014

This happens with any application that is upgraded using portmaster. pkgng db entries are not corrupt.

Environment:
FreeNAS-9.2.1.3-RELEASE-x64 standard FreeBSD 9.2 x64 jail
portmaster-3.17.4

/etc/make.conf
WITH_PKGNG=yes
WITH_OPENSSL_PORT=yes
NO_WARNING_PKG_INSTALL_EOL=yes

Step to reproduce:

# pkg_info
pkg_info: no packages installed

# portmaster -r pkg-1.2.7
===>>> Working on:        pkg-1.2.7
===>>> Gathering distinfo list for installed ports
===>>> pkg-1.2.7 1/1
===>>> Currently installed version: pkg-1.2.7
<snip>
===>>> The following actions were performed:
        Upgrade of pkg-1.2.7 to pkg-1.2.7_2
===>>> Exiting

 # pkg_info
pkg_info: the package info for package 'pkg-1.2.7_2' is corrupt
@bdrewery
Copy link
Member

bdrewery commented Apr 4, 2014

It's not really corrupt. pkg_info is no longer valid to use after converting to pkgng. Use 'pkg info'.

It is known portmaster writes to the wrong place and causes these messages.

Sent from my iPhone

On Apr 3, 2014, at 17:59, Seth notifications@github.com wrote:

This happens with any application that is upgraded using portmaster. pkgng db entries are not corrupt.

Environment:
FreeNAS-9.2.1.3-RELEASE-x64 standard FreeBSD 9.2 x64 jail
portmaster-3.17.4

/etc/make.conf
WITH_PKGNG=yes
WITH_OPENSSL_PORT=yes
NO_WARNING_PKG_INSTALL_EOL=yes
Step to reproduce:

pkg_info

pkg_info: no packages installed

portmaster -r pkg-1.2.7

===>>> Working on: pkg-1.2.7
===>>> Gathering distinfo list for installed ports
===>>> pkg-1.2.7 1/1
===>>> Currently installed version: pkg-1.2.7

===>>> The following actions were performed:
Upgrade of pkg-1.2.7 to pkg-1.2.7_2
===>>> Exiting

pkg_info

pkg_info: the package info for package 'pkg-1.2.7_2' is corrupt

Reply to this email directly or view it on GitHub.

@sysfu
Copy link
Author

sysfu commented Apr 4, 2014

Is there an existing portmaster github issue that addresses this problem? I would like to subscribe to notifications for it.

@bdrewery
Copy link
Member

bdrewery commented Apr 4, 2014

On Apr 3, 2014, at 20:01, Seth notifications@github.com wrote:

Is there an existing portmaster github issue that addresses this problem? I would like to subscribe to notifications for it.

Looks like this is it :)

Thought for sure there was one already. It's at least been known since pkgng was integrated. Workarounds were added to pkg_info on 10, but it was removed by release time. There is also some logic in pkg2ng to avoid the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants