pkgsrc-Users archive

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

Re: how are things?



On 9/23/23 07:26, Jason Bacon wrote:
On 9/22/23 07:06, Jason Bacon wrote:
On 9/21/23 10:39, Jonathan Perkin wrote:
* On 2023-09-21 at 16:30 BST, Jason Bacon wrote:

On 9/20/23 08:38, Greg Troxel wrote:
Other than longstanding intractable issues, is anyone aware of
significant breakage now?   I mean, more or less, things that were ok in
2023Q2 and are not ok now.

Anyone else seeing this error?

=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Installing binary package of rust-1.70.0nb1
pkg_add: Conflicting PLIST with rust-1.70.0nb1:
lib/rustlib/src/rust/library/alloc/src/ffi/c_str.rs
pkg_add: 1 package addition failed

I've had people report this type of failure before, but have never been able to reproduce.  If you're able to reproduce it, please get some useful debug information from it, as in theory this shouldn't happen.

I assume that the pkg name is being corrupted somewhere so that it fails the check for the upgrade being the same package?


=> Creating binary package /home/bacon/Pkgsrc/pkgsrc/devel/cmake/work/.packages/cmake-3.27.6.tgz
===> Building binary package for cmake-3.27.6
=> Creating binary package /home/bacon/Pkgsrc/pkgsrc/packages/All/cmake-3.27.6.tgz
===> Installing binary package of cmake-3.27.6
pkg_add: Conflicting PLIST with cmake-3.27.5: share/cmake-3.27/Help/envvar/CMAKE_FRAMEWORK_PATH.rst
pkg_add: 1 package addition failed
*** Error code 1

Stop.
bmake[2]: stopped in /home/bacon/Pkgsrc/pkgsrc/devel/cmake
*** Error code 1

Note in the case of cmake, the conflict is with a different version (3.27.5), whereas rust-1.70.0nb1 was conflicting with itself.  Odd thing is, no version of cmake is installed.

NetBSD netbsd9.acadix  bacon ~ 1038: (pkgsrc): find ~/Pkgsrc/pkg/pkgdb* -name '*cmake*'
NetBSD netbsd9.acadix  bacon ~ 1040: (pkgsrc): pkg_info|grep -i cmake
NetBSD netbsd9.acadix  bacon ~ 1041: (pkgsrc):

So how is pkg_add concluding that there's a conflict?

The relevant code from pkg_install-20211115/add/perform.c, with caveman debug code added:

                 fullpath = xasprintf("%s/%s", pkg->prefix, p->name);
                 existing = pkgdb_retrieve(fullpath);
                 fprintf(stderr, "Debug: fullpath = %s\n", fullpath);
                 free(fullpath);
                 if (existing == NULL)
                         continue;
                 fprintf(stderr, "Debug: existing = %s\n", existing);
                 if (pkg->other_version != NULL &&
                     strcmp(pkg->other_version, existing) == 0)
                         continue;
                 warnx("Conflicting PLIST with %s: %s", existing, p->name);

Output:

Debug: fullpath = /home/bacon/Pkgsrc/pkg/share/cmake-3.27/Help/envvar/CMAKE_FRAMEWORK_PATH.rst
Debug: existing = cmake-3.27.5
pkg_add: Conflicting PLIST with cmake-3.27.5: share/cmake-3.27/Help/envvar/CMAKE_FRAMEWORK_PATH.rst
pkg_add: 1 package addition failed
*** Error code 1

The directory /home/bacon/Pkgsrc/pkg/share/cmake-3.27 does not exist.

FYI, I bootstrapped a separate pkgsrc installation on the same NetBSD 9.3 VM, and it's not displaying this problem. Apparently the other tree got corrupted recently and subsequent cvs/pkg_chk updates have not been able to correct it.

I'll preserve the affected tree for a while in case anyone wants to pursue this, but otherwise I'm going to move on and use the new one.

Home | Main Index | Thread Index | Old Index