Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Oct 2014 16:57:36 +0100
From:      =?windows-1252?Q?Ren=E9_Ladan?= <rene@freebsd.org>
To:        freebsd-ports@freebsd.org
Subject:   Re: pkg 1.4 freeze please test test test!
Message-ID:  <5453B170.1030208@freebsd.org>
In-Reply-To: <20141028231933.GG26796@ivaldir.etoilebsd.net>
References:  <20141028231933.GG26796@ivaldir.etoilebsd.net>

next in thread | previous in thread | raw e-mail | index | archive | help

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

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@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@acer:~ #

Regards, René

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQJ8BAEBCgBmBQJUU7FvXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxMDFBNzE2QjE2MkIwMEU1NUJFREVBMDVB
REJCRjg2MTBBMzc4OUI3AAoJEK27+GEKN4m34ZUP/jVhgF4ErHrSSonSY+ykLq+g
5/tvoRt1viibJfL4LTOvqnZl7BdTXi7+zJmyDysOnXh4mLOzfoCDEJ4ZO8utkWNN
69YnA4iz6yHI79cxKe+RxwCOqK5vc+2ATPfTdAvYFpcsxe+25LVQ66sPqy6ZEiVL
lSDk2LDv7eAKb846wE4QESg6qVxC7/RIEsYJ9yCkSWmyQolfvuT5cqf9cXc8VjB1
gXSYhESouQ6G7nyyDh+zo8VjbD8xLISg83P8mbaKmoBtH6lxZ99DzBWQwl64IOUe
29gr/a6w54VsPyyH/ETxLleAzgEJ3NpGHK/OsbDPgj9zIIu9sEc5Sp5IIxZfxA1V
KZ07qzeklyvcjCvVmZDEpEsDJwTCppRsJm3S5FRlwLg9q1UFd0v3toflY4rx3YvJ
VX/ByeEifzMAiOvj7wYrcw+L23LRRA3bVONeAeZswKS8PoRn7Uw5Oez/KAC3+95l
DIAsCC5OXBO0peaKisL03vgauvaLpM1xpHUfQc67W0bCN0xGZIGeTWfB1Qv0kQ0b
x+IIQcIyBYJsdLRXHNe1XAwBSWhOdze3CmCvwDcaUonXxKfcpSpkqT7nnR1uecaw
/+lvnzLOHsAE0e/vmbMjbO4xGzZ6mdRH1skMJ3HheRgBj8sUe7idIy06/gEWTOAS
es/LuwR3QuDD/L1wa091
=bi8P
-----END PGP SIGNATURE-----




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5453B170.1030208>