Bug 283434 - textproc/xmlcharent: upgrade (quarterly): pkg: POST-INSTALL script failed: entry already exists for `/usr/local/share/xml/xmlcharent/catalog' of type `CATALOG'
Summary: textproc/xmlcharent: upgrade (quarterly): pkg: POST-INSTALL script failed: en...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Hiroki Sato
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-20 09:49 UTC by Graham Perrin
Modified: 2024-12-20 12:45 UTC (History)
0 users

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


Attachments
partial context (2.71 KB, text/plain)
2024-12-20 10:02 UTC, Graham Perrin
no flags Details
Screenshot: reproducing the issue (34.94 KB, image/png)
2024-12-20 12:45 UTC, Graham Perrin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Graham Perrin 2024-12-20 09:49:50 UTC
From a typescript of an upgrade: 


[173/951] Extracting xmlcharent-0.3_2: 100%
xmlcatmgr: entry already exists for `/usr/local/share/xml/xmlcharent/catalog' of type `CATALOG'
xmlcatmgr: entry already exists for `/usr/local/share/xml/xmlcharent/catalog.xml' of type `nextCatalog'
pkg: POST-INSTALL script failed
Comment 1 Graham Perrin 2024-12-20 10:02:47 UTC
Created attachment 255975 [details]
partial context

2024-12-20_04-20-typescript.txt abbreviated for 283434.txt
is taken from my local record of the session:

2024-12-20_04-20-typescript.txt

The full typescript file (more than 68,000 lines) is available on request. 

In a nutshell: 


root@pkg:~ # freebsd-version -kru ; uname -aKU

14.1-RELEASE-p5
14.1-RELEASE-p5
13.3-RELEASE-p8
FreeBSD pkg 14.1-RELEASE-p5 FreeBSD 14.1-RELEASE-p5 GENERIC amd64 1401000 1303001
root@pkg:~ # /usr/sbin/freebsd-update install
…


– for userland to be at 14.1-RELEASE-p6. 

Then package upgrades. 

I was tempted to restart the OS before upgrading packages, however from <https://www.freebsd.org/releases/14.1R/installation/#upgrade-binary> it seems (to me) that package upgrades may be attempted before a restart, so I experimented with this approach.
Comment 2 Graham Perrin 2024-12-20 10:36:13 UTC
I should add: 


a) xmlcharent was amongst the packages to be reinstalled for the 
   change in ABI, with no change no to the version (0.3_2 in this case)

	xmlcharent-0.3_2 (ABI changed: 'freebsd:13:*' -> 'freebsd:14:*')


b) post-install scripts also failed for the port packages below.

iso8879-1986_3
sdocbook-xml-1.1_2
docbook-sgml-4.5_1
docbook-xml-5.0_3
docbook-xsl-1.79.1_1,1

I have no immediate plan to make reports for any of those five. Let's see how this bug 283434 progresses.

Thank you
Comment 3 Graham Perrin 2024-12-20 12:45:46 UTC
Created attachment 255976 [details]
Screenshot: reproducing the issue

Re: comment #1

> … tempted to restart the OS before upgrading packages, …

It's a VirtualBox guest, so I tried that. 

The same symptom (pictured).