Since I've had problems upgrading packages using pkgng, I went upgrading things through the ports system.
This is what I did:
I found apache22, pkg amongst other available updates.
I started with apache22
So far so good.
I went further to pkgng.
I commented out WITH_PKGNG in make.conf and tried again.
Yes, I did interrupt the pkg2ng conversion thinking this was a bad idea.
I know this wasn't very thoughtful, so please be polite. I want to solve this.
I've got two backups:
/var/db/pkg.bak which I think is created by pkg2ng when I first started using pkgng (the modification date of the directory leads me to that conclusion)
Contents:
130 package directories, no auditfile or SQLite database files. I guess this is non-pkgng related stuff.
/var/db/pkg.bak2 created by me, just before the pkgng upgrade attempt.
/var/db/pkg is empty.
Contents:
I hope this helps
So, suggestions?
This is what I did:
Code:
# portsnap fetch update
I found apache22, pkg amongst other available updates.
I started with apache22
Code:
# cd /usr/ports/www/apache22
# make deinstall
# make reinstall
# /usr/local/etc/rc.d/apache22 restart
So far so good.
I went further to pkgng.
Code:
# cd /usr/ports/ports-mgmt/pkg
# make
/usr/ports/ports-mgmt/pkg/work/pkg-1.0.2/pkg-static/pkg-static: not found
*** Error code 127
Stop in /usr/ports/ports-mgmt/pkg.
#
I commented out WITH_PKGNG in make.conf and tried again.
Code:
# cd /usr/ports/ports-mgmt/pkg
# make reinstall
# pkg2ng
pkg_info: the package info for package 'apache22-2.2.23' is corrupt
usage: pkg info <pkg-name>
pkg info -a
pkg info [-eDgxXdrlBsqOf] <pkg-name>
pkg info [-drlBsqfR] -F <pkg-file>
For more information see 'pkg help info'.
pkg_info: the package info for package 'apache22-2.2.23' is corrupt
make: don't know how to make showconfig. Stop
cat: /var/db/pkg/apache22-2.2.23/+COMMENT: No such file or directory
pkg_info: the package info for package 'apache22-2.2.23' is corrupt
egrep: /var/db/pkg/apache22-2.2.23/+CONTENTS: No such file or directory
pkg: open(/tmp/pkg2nguKSWh/+DESC): No such file or directory
Segmentation fault (core dumped)
Registration of apache22-2.2.23 failed.
name: apache22
version: 2.2.23
origin:
comment: |
maintainer:
prefix:
licenselogic: single
deps:
pkg_info: the package info for package 'bash-completion-2.0,1' is corrupt
usage: pkg info <pkg-name>
pkg info -a
pkg info [-eDgxXdrlBsqOf] <pkg-name>
pkg info [-drlBsqfR] -F <pkg-file>
For more information see 'pkg help info'.
pkg_info: the package info for package 'bash-completion-2.0,1' is corrupt
make: don't know how to make showconfig. Stop
cat: /var/db/pkg/bash-completion-2.0,1/+COMMENT: No such file or directory
pkg_info: the package info for package 'bash-completion-2.0,1' is corrupt
egrep: /var/db/pkg/bash-completion-2.0,1/+CONTENTS: No such file or directory
pkg: open(/tmp/pkg2ngzZChK/+DESC): No such file or directory
Segmentation fault (core dumped)
Registration of bash-completion-2.0,1 failed.
name: bash-completion
version: 2.0,1
origin:
comment: |
maintainer:
prefix:
licenselogic: single
deps:
pkg_info: the package info for package 'p5-HTTP-Message-6.06' is corrupt
usage: pkg info <pkg-name>
pkg info -a
pkg info [-eDgxXdrlBsqOf] <pkg-name>
pkg info [-drlBsqfR] -F <pkg-file>
For more information see 'pkg help info'.
pkg_info: the package info for package 'p5-HTTP-Message-6.06' is corrupt
make: don't know how to make showconfig. Stop
cat: /var/db/pkg/p5-HTTP-Message-6.06/+COMMENT: No such file or directory
pkg_info: the package info for package 'p5-HTTP-Message-6.06' is corrupt
egrep: /var/db/pkg/p5-HTTP-Message-6.06/+CONTENTS: No such file or directory
pkg: open(/tmp/pkg2ngcjVWS/+DESC): No such file or directory
Segmentation fault (core dumped)
Registration of p5-HTTP-Message-6.06 failed.
name: p5-HTTP-Message
version: 6.06
origin:
comment: |
maintainer:
prefix:
licenselogic: single
deps:
pkg_info: the package info for package 'p5-Net-SSLeay-1.49' is corrupt
usage: pkg info <pkg-name>
pkg info -a
pkg info [-eDgxXdrlBsqOf] <pkg-name>
pkg info [-drlBsqfR] -F <pkg-file>
For more information see 'pkg help info'.
pkg_info: the package info for package 'p5-Net-SSLeay-1.49' is corrupt
^C
#
# pkg2ng
Conversion has been successfully finished
Your old packages database has been moved to: /var/db/pkg.bak.
Yes, I did interrupt the pkg2ng conversion thinking this was a bad idea.
I know this wasn't very thoughtful, so please be polite. I want to solve this.
I've got two backups:
/var/db/pkg.bak which I think is created by pkg2ng when I first started using pkgng (the modification date of the directory leads me to that conclusion)
Contents:
130 package directories, no auditfile or SQLite database files. I guess this is non-pkgng related stuff.
/var/db/pkg.bak2 created by me, just before the pkgng upgrade attempt.
/var/db/pkg is empty.
Contents:
Code:
# ls -l
total 91893
drwxr-xr-x 2 root wheel 3 Nov 20 11:59 apache22-2.2.23/
-r--r--r-- 1 root wheel 693224 Nov 20 11:59 auditfile
drwxr-xr-x 2 root wheel 3 Nov 20 11:59 bash-completion-2.0,1/
-rw-r--r-- 1 root wheel 5506048 Nov 20 11:59 local.sqlite
drwxr-xr-x 2 root wheel 3 Nov 20 11:59 p5-HTTP-Message-6.06/
drwxr-xr-x 2 root wheel 3 Nov 20 11:59 p5-Net-SSLeay-1.49/
drwxr-xr-x 2 root wheel 7 Nov 20 11:59 pkg-1.0.2/
-rw-r--r-- 1 root wheel 87436288 Nov 20 11:59 repo.sqlite
I hope this helps
So, suggestions?