Bug 217286 - ports-mgmt/pkg: pkg-1.9.4_1 Assertion failed in pkg_conflicts_check_chain_conflict
Summary: ports-mgmt/pkg: pkg-1.9.4_1 Assertion failed in pkg_conflicts_check_chain_con...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-pkg (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-22 02:34 UTC by Lundin Cahill
Modified: 2018-11-16 06:36 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (pkg)


Attachments
`pkg --debug upgrade` output (1.90 KB, application/x-compressed)
2017-02-22 02:34 UTC, Lundin Cahill
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lundin Cahill 2017-02-22 02:34:30 UTC
Created attachment 180211 [details]
`pkg --debug upgrade` output

11.0-RELEASE-p2 FreeBSD 11.0-RELEASE-p2 #0: Mon Oct 24 06:55:27 UTC 2016     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

I have locked postgresql94-client to avoid binary pkg upgrades causing postgres being downgraded to 9.3.

I am now receiving this error when running `pkg upgrade` and it is generating a 17MB core:
Assertion failed: (cun != NULL), function pkg_conflicts_check_chain_conflict, file pkg_jobs_conflicts.c, line 499.
Comment 1 Walter Schwarzenfeld 2018-11-16 06:01:02 UTC
Is this still relevant?
Comment 2 Lundin Cahill 2018-11-16 06:36:25 UTC
Seems like it was fixed upon checking on that machine again. I see that I instead locked the package with the dependency, php56-pgsql, at some point; unlocking it and locking postgresql94-client fails gracefully/as expected:

...
Proceed with this action? [y/N]: y
[1/2] Fetching php56-pgsql-5.6.38.txz: 100%   43 KiB  44.5kB/s    00:01
[2/2] Fetching postgresql95-client-9.5.14.txz:  45%    1 MiB   1.1MB/s    00:01 [2/2] Fetching postgresql95-client-9.5.14.txz: 100%    2 MiB   2.4MB/s    00:01 
Checking integrity... done (0 conflicting)
[1/2] Installing postgresql95-client-9.5.14...
pkg: postgresql95-client-9.5.14 conflicts with postgresql94-client-9.4.19 (installs files into the same place).  Problematic file: /usr/local/bin/clusterdb
#

The last pkg.core file is dated Jun 8 2017.