Solved packages and ports cohabitation

Hi,

I'm very embarassed because I've built libreoffice with changed options and now, pkg upgrade tells
Installed packages to be REINSTALLED:
hdf5-1.12.2_2,1 (options changed)
libreoffice-7.5.4.2_1 (options changed)


Certainly something easy to solve for you.
 
pkg lock libreoffice - but then you've got to look after that port by yourself (future updates, solvable dependencies when other packages are upgraded - you've got to rebuild such ports from time to time).
 
ports-mgmt/pkg
Code:
--- libpkg/pkg_jobs.c.orig      2023-06-26 04:35:40.081879000 +0900
+++ libpkg/pkg_jobs.c   2023-06-26 04:48:11.751319000 +0900
@@ -1162,8 +1162,7 @@
                        return (true);
                }
                if (ret1 == EPKG_OK) {
-                       if (strcmp(lo->key, ro->key) != 0 ||
-                           strcmp(lo->value, ro->value) != 0) {
+                       if (strcmp(lo->key, ro->key) != 0) {
                                free(rp->reason);
                                xasprintf(&rp->reason, "options changed");
                                return (true);
At your own risk.
 
Back
Top