pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pbulk: A different version of cwrappers-20170611 is already installed



Hello!

A pbulk 0.65 build of a subset of -current packages is failing on
building cwrappers-20170611, the first package it tries to build.
Here's what appears in bulklog/cwrappers-20170611/package.log:

====================
=> Creating binary package /pkg_comp/work/pkg/pkgtools/cwrappers/work/.packages/cwrappers-20170611.tgz
pkg_add: A different version of cwrappers-20170611 is already installed: cwrappers-20170112
pkg_add: 1 package addition failed
====================

So it seems to fail because it tries to install cwrappers-20170611 when
cwrappers-20170112 from the bootstrap is already installed.  Is this
expected?

In other words, is it the case that whatever packages are provided
in the bootstrap must be of a version that is the same as, or newer
than, the version of the corresponding packages being built so that
pkgsrc does not think it needs to install an updated version of a
package provided in the bootstrap?  So in my case, the bootstrap
would need to provide the cwrappers-20170611 package, not the older
cwrappers-20170112?  If yes, then I just need to build a new bootstrap,
and the problem should go away, right?

More details follow.

I ran the pkg_comp 2.0 auto command on macOS Sierra 10.12.5, and the
pbulk build failed on the first package:

====================
# pkg_comp auto
[snip]
Resolving...
Building...
Initialisation complete.
[1/417] Starting build of  cwrappers-20170611
[1/417] Failed to build    cwrappers-20170611
Building pkg_summary...
Building SHA512...
Build reports...
Sending report mail...
Uploading report...
Uploading packages...
pkg_comp: I: Destroying sandbox
====================

Dropping into a sandbox shell, I can get the same pkg_add error noted
above about a different version of cwrappers already being installed by
doing "bmake install" in pkgtools/cwrappers, but if I instead do "bmake
update", it works:

====================
# bmake update
===> Skipping vulnerability checks.
WARNING: No /opt/pkg/libdata/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/opt/pkg/sbin/pkg_admin -K /opt/pkg/libdata/pkgdb fetch-pkg-vulnerabilities'.
===> Deinstalling for cwrappers-20170611
Running /opt/pkg/sbin/pkg_delete -K /opt/pkg/libdata/pkgdb -r cwrappers-20170112
===> Binary install for cwrappers-20170611
=> Installing cwrappers-20170611 from /pkg_comp/packages/pkg/All
cwrappers-20170611 successfully installed.
===> Cleaning for cwrappers-20170611
====================

Thank you!

Lewis


Home | Main Index | Thread Index | Old Index