pkg 1.4 freeze please test test test!

René Ladan rene at freebsd.org
Fri Oct 31 17:18:51 UTC 2014


On 31-10-2014 16:57, René Ladan wrote:
> 
> On 29-10-2014 00:19, Baptiste Daroussin wrote:
>> Hi all,
> 
>> We are starting the release process of pkg 1.4, we want to have a
> better release
>> process than with every single previous version of pkg. For that we
> will need
>> you help!
> 
>> pkg-devel has been updated to the latest version of pkg as of alpha2.
> 
>> Changes you can expect in pkg 1.4 are the following:
>> - Loads of bug fixes
>> - Stricter checking of the path passed via the plist
>> - Removal of the bundled libyaml
>> - new --raw-format to chose the output format for info -R and search -R
>> - ABI is now follwing MACHINE_ARCH (freebsd:10:x86:64 become
> FreeBSD:10:amd64)
>>   the old ABI is available as a fallback in ALTABI
>> - pkg check now support a quiet mode
>> - new 3 way merge code ("stolen" from the fossil-scm) to allow automerging
>>   configuration files
>> - new @config keyword to mark a file as a config file (during
>>   upgrade/reinstallation it will try to merge the configuration with
> the one the
>>   user may have modified) an option AUTOMERGE is available to prevent
>>   automerging if automerge fails a .pkgnew file will be created along
> with the
>>   untouched user version of the configuration
>> - The update procedure has been improved and speed up a lot (in
> particular for
>>   machine with low resources)
>> - The unique identifier has been modified to be pkgname meaning now
> ports can be
>>   moved in new categories without having to be considered a different
> package
>> - Only libraries starting by lib* are added to the provided libraries
>> - General speed up of all operations
> 
>> We need help in testing, but we also need help in writing regression
> tests !
>> The more we have tests the more stable the releases will be.
> Here is an upgrade failure from pkg 1.3.8_3 to pkg 1.4.0.a4 (I probably
> didn't follow the book), while chrooting into a 10.0-RELEASE ezjail:
> 
> # pkg install -f pkg-1.4.0.a4.txz
> Updating FreeBSD repository catalogue...
> FreeBSD repository is up-to-date.
> All repositories are up-to-date.
> Updating database digests format: 100%
> Checking integrity... done (1 conflicting)
> New version of pkg detected; it needs to be installed first.
> Checking integrity... done (0 conflicting)
> The following 2 packages will be affected (of 0 checked):
> 
> New packages to be INSTALLED:
>     pkg: 1.4.0.a4
> 
> Installed packages to be REINSTALLED:
>     pkg-1.3.8_3 (direct conflict changed)
> 
> The process will require 17 MB more space.
> 2 MB to be downloaded.
> 
> Proceed with this action? [y/N]: y
> Fetching pkg-1.3.8_3.txz: 100%    2 MB   2.3M/s    00:01 
> [1/2] Deleting pkg-1.3.8_3: 100%
> pkg: unlinkat(usr/local/etc/bash_completion.d/_pkg.bash): No such file
> or directory
> pkg: unlinkat(usr/local/etc/periodic/daily/411.pkg-backup): No such file
> or directory
> pkg: unlinkat(usr/local/etc/periodic/daily/490.status-pkg-changes): No
> such file or directory
> pkg: unlinkat(usr/local/etc/periodic/security/410.pkg-audit): No such
> file or directory
> pkg: unlinkat(usr/local/etc/periodic/security/460.pkg-checksum): No such
> file or directory
> pkg: unlinkat(usr/local/etc/periodic/weekly/400.status-pkg): No such
> file or directory
> pkg: unlinkat(usr/local/etc/pkg.conf.sample): No such file or directory
> pkg: unlinkat(usr/local/include/pkg.h): No such file or directory
> pkg: unlinkat(usr/local/lib/libpkg.a): No such file or directory
> pkg: unlinkat(usr/local/lib/libpkg.so): No such file or directory
> pkg: unlinkat(usr/local/lib/libpkg.so.3): No such file or directory
> pkg: unlinkat(usr/local/lib/libpkg.so.3.0.0): No such file or directory
> pkg: unlinkat(usr/local/libdata/pkgconfig/pkg.pc): No such file or directory
> pkg: unlinkat(usr/local/man/man3/pkg_printf.3.gz): No such file or directory
> pkg: unlinkat(usr/local/man/man3/pkg_repos.3.gz): No such file or directory
> pkg: unlinkat(usr/local/man/man5/pkg-repository.5.gz): No such file or
> directory
> pkg: unlinkat(usr/local/man/man5/pkg.conf.5.gz): No such file or directory
> pkg: unlinkat(usr/local/man/man8/pkg-add.8.gz): No such file or directory
> pkg: unlinkat(usr/local/man/man8/pkg-annotate.8.gz): No such file or
> directory
> pkg: unlinkat(usr/local/man/man8/pkg-audit.8.gz): No such file or directory
> pkg: unlinkat(usr/local/man/man8/pkg-autoremove.8.gz): No such file or
> directory
> pkg: unlinkat(usr/local/man/man8/pkg-backup.8.gz): No such file or directory
> pkg: unlinkat(usr/local/man/man8/pkg-check.8.gz): No such file or directory
> pkg: unlinkat(usr/local/man/man8/pkg-clean.8.gz): No such file or directory
> pkg: unlinkat(usr/local/man/man8/pkg-config.8.gz): No such file or directory
> pkg: unlinkat(usr/local/man/man8/pkg-convert.8.gz): No such file or
> directory
> pkg: unlinkat(usr/local/man/man8/pkg-create.8.gz): No such file or directory
> pkg: unlinkat(usr/local/man/man8/pkg-delete.8.gz): No such file or directory
> pkg: unlinkat(usr/local/man/man8/pkg-fetch.8.gz): No such file or directory
> pkg: unlinkat(usr/local/man/man8/pkg-info.8.gz): No such file or directory
> pkg: unlinkat(usr/local/man/man8/pkg-install.8.gz): No such file or
> directory
> pkg: unlinkat(usr/local/man/man8/pkg-lock.8.gz): No such file or directory
> pkg: unlinkat(usr/local/man/man8/pkg-query.8.gz): No such file or directory
> pkg: unlinkat(usr/local/man/man8/pkg-register.8.gz): No such file or
> directory
> pkg: unlinkat(usr/local/man/man8/pkg-remove.8.gz): No such file or directory
> pkg: unlinkat(usr/local/man/man8/pkg-repo.8.gz): No such file or directory
> pkg: unlinkat(usr/local/man/man8/pkg-rquery.8.gz): No such file or directory
> pkg: unlinkat(usr/local/man/man8/pkg-search.8.gz): No such file or directory
> pkg: unlinkat(usr/local/man/man8/pkg-set.8.gz): No such file or directory
> pkg: unlinkat(usr/local/man/man8/pkg-shell.8.gz): No such file or directory
> pkg: unlinkat(usr/local/man/man8/pkg-shlib.8.gz): No such file or directory
> pkg: unlinkat(usr/local/man/man8/pkg-ssh.8.gz): No such file or directory
> pkg: unlinkat(usr/local/man/man8/pkg-static.8.gz): No such file or directory
> pkg: unlinkat(usr/local/man/man8/pkg-stats.8.gz): No such file or directory
> pkg: unlinkat(usr/local/man/man8/pkg-unlock.8.gz): No such file or directory
> pkg: unlinkat(usr/local/man/man8/pkg-update.8.gz): No such file or directory
> pkg: unlinkat(usr/local/man/man8/pkg-updating.8.gz): No such file or
> directory
> pkg: unlinkat(usr/local/man/man8/pkg-upgrade.8.gz): No such file or
> directory
> pkg: unlinkat(usr/local/man/man8/pkg-version.8.gz): No such file or
> directory
> pkg: unlinkat(usr/local/man/man8/pkg-which.8.gz): No such file or directory
> pkg: unlinkat(usr/local/man/man8/pkg.8.gz): No such file or directory
> pkg: unlinkat(usr/local/sbin/pkg): No such file or directory
> pkg: unlinkat(usr/local/sbin/pkg-static): No such file or directory
> pkg: unlinkat(usr/local/sbin/pkg2ng): No such file or directory
> pkg: unlinkat(usr/local/share/licenses/pkg-1.3.8_3/BSD2CLAUSE): No such
> file or directory
> pkg: unlinkat(usr/local/share/licenses/pkg-1.3.8_3/LICENSE): No such
> file or directory
> pkg: unlinkat(usr/local/share/licenses/pkg-1.3.8_3/catalog.mk): No such
> file or directory
> pkg: unlinkat(usr/local/share/zsh/site-functions/_pkg): No such file or
> directory
> [2/2] Reinstalling pkg-1.3.8_3: 100%
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file:
> /usr/local/etc/bash_completion.d/_pkg.bash ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file:
> /usr/local/etc/periodic/daily/411.pkg-backup ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file:
> /usr/local/etc/periodic/daily/490.status-pkg-changes ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file:
> /usr/local/etc/periodic/security/410.pkg-audit ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file:
> /usr/local/etc/periodic/security/460.pkg-checksum ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file:
> /usr/local/etc/periodic/weekly/400.status-pkg ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/etc/pkg.conf.sample ignored
> by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/include/pkg.h ignored by
> forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/lib/libpkg.a ignored by
> forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/lib/libpkg.so ignored by
> forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/lib/libpkg.so.3 ignored by
> forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/lib/libpkg.so.3.0.0 ignored
> by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/libdata/pkgconfig/pkg.pc
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man3/pkg_printf.3.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man3/pkg_repos.3.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man5/pkg-repository.5.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man5/pkg.conf.5.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-add.8.gz ignored
> by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-annotate.8.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-audit.8.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-autoremove.8.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-backup.8.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-check.8.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-clean.8.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-config.8.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-convert.8.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-create.8.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-delete.8.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-fetch.8.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-info.8.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-install.8.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-lock.8.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-query.8.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-register.8.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-remove.8.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-repo.8.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-rquery.8.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-search.8.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-set.8.gz ignored
> by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-shell.8.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-shlib.8.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-ssh.8.gz ignored
> by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-static.8.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-stats.8.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-unlock.8.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-update.8.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-updating.8.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-upgrade.8.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-version.8.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg-which.8.gz
> ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/man/man8/pkg.8.gz ignored by
> forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/sbin/pkg ignored by forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/sbin/pkg-static ignored by
> forced mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/sbin/pkg2ng ignored by forced
> mode
> pkg: pkg-1.4.0.a4 conflicts with pkg-1.3.8_3 (installs files into the
> same place).  Problematic file: /usr/local/share/zsh/site-functions/_pkg
> ignored by forced mode
> [3/2] Installing pkg-1.4.0.a4: 100%
> Message for pkg-1.4.0.a4:
>  If you are upgrading from the old package format, first run:
> 
>   # pkg2ng
> Updating FreeBSD repository catalogue...
> pkg: Repository FreeBSD has a wrong packagesite, need to re-create database
> Fetching meta.txz: 100%   944 B   0.9k/s    00:01 
> Fetching packagesite.txz: 100%    5 MB   5.3M/s    00:01 
> Processing entries: 100%
> FreeBSD repository update completed. 23683 packages processed
> pkg: sqlite error while executing DROP INDEX packages_unique;CREATE
> UNIQUE INDEX packages_unique ON packages(name); in file pkgdb.c:2246:
> UNIQUE constraint failed: packages.name
> 
> And here it is pretty unusable, only giving this response:
> 
> root at acer:~ # pkg stat
> pkg: sqlite error while executing DROP INDEX packages_unique;CREATE
> UNIQUE INDEX packages_unique ON packages(name); in file pkgdb.c:2246:
> UNIQUE constraint failed: packages.name
> root at acer:~ #
> 
pkg shell shows:
sqlite> select * from packages;
1|ports-mgmt/pkg|pkg|1.3.8_3|Package manager|Package management tool

WWW: http://wiki.freebsd.org/pkgng||If you are upgrading from the old
package format, first run:

  #
pkg2ng|freebsd:10:x86:64|portmgr at FreeBSD.org|http://wiki.freebsd.org/pkgng|/usr/local|9758867|0|0|1|1414770253|2$0$rksarawpa9fa7rf5utargygp56i1azg8xrhdb8uyrywokkqah1jy|
2|ports-mgmt/pkg-devel|pkg|1.4.0.a4|Package manager|Package management tool

WWW: http://wiki.freebsd.org/pkgng||If you are upgrading from the old
package format, first run:

  #
pkg2ng|freebsd:10:x86:64|pkg at FreeBSD.org|http://wiki.freebsd.org/pkgng|/usr/local|18275508|0|0|1|1414770253|2$0$ynb6555wpppuyqfptx3csrs5ppkr8x5iruhj8strfgr8493d1kbb|
sqlite>

So both pkgs are now registered ...

> Regards, René


More information about the freebsd-ports mailing list