Bug 209772 - x11-toolkits/pango:DEINSTALL script failed
Summary: x11-toolkits/pango:DEINSTALL script failed
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2016-05-26 17:51 UTC by Thierry Thomas
Modified: 2018-10-12 16:58 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thierry Thomas freebsd_committer freebsd_triage 2016-05-26 17:51:10 UTC
Trying to run `pkg upgrade' failed with the following error:

[2/17] Extracting pango-1.38.0_1: 100%
rm: /usr/local/lib/pango/1.8.0/modules.cache: No such file or directory
pkg: DEINSTALL script failed

I solved the problem by running:
pkg delete -D -f x11-toolkits/pango
pkg install pango-1.38.0_1
Comment 1 John Hein 2016-05-26 21:20:47 UTC
Do you still get the problem when using pkg-1.8.3?

Because of the current number of packages that have edge case issues with errors in the plist that can cause pkg deinstall errors like this one (pango's plist was fixed, but too late for existing pango packages in the wild that had the error), pkg-1.8.3 tries to ignore such failures.  When most (all?) packages have cleaned up their act, pkg(8) can then re-introduce code to not ignore package deinstall errors (and some class of package install errors).

By the way, another workaround is to mkdir -p /usr/local/lib/1.8.0 && touch /usr/local/lib/pango/1.8.0/modules.cache before upgrading the pango package.  Then remove those after you did the upgrade.  That could have been added to UPDATING.  But it was probably easier to just update pkg(8) to ignore the deinstall error for now.
Comment 2 Thierry Thomas freebsd_committer freebsd_triage 2016-05-27 05:13:42 UTC
Yes, before this upgrade, pkg has been auto-upgraded to 1.8.3.
Comment 3 Walter Schwarzenfeld freebsd_triage 2018-01-13 06:32:42 UTC
Is this still relevant?