Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=a9b4eb1ebc8bb4651ff7392de3bdb016b9de5ff1

commit a9b4eb1ebc8bb4651ff7392de3bdb016b9de5ff1
Author: James Buren <[email protected]>
Date:   Mon Feb 18 01:06:56 2013 -0600

libpacman: call _pacman_ldconfig() for each package
this is needed to fix scriptlet issues due to shared
ABIs not being fully propagated otherwise.

diff --git a/lib/libpacman/add.c b/lib/libpacman/add.c
index 1a0cd8c..2b30e4c 100644
--- a/lib/libpacman/add.c
+++ b/lib/libpacman/add.c
@@ -816,6 +816,8 @@ int _pacman_add_commit(pmtrans_t *trans, pmlist_t **data)
EVENT(trans, PM_TRANS_EVT_EXTRACT_DONE, NULL, NULL);
FREE(what);

+               _pacman_ldconfig(handle->root);
+
/* run the post-install script if it exists  */
if(info->scriptlet && !(trans->flags & PM_TRANS_FLAG_NOSCRIPTLET)) {
snprintf(pm_install, PATH_MAX, "%s%s/%s/%s-%s/install", handle->root, 
handle->dbpath, db->treename, info->name, info->version);
@@ -831,10 +833,12 @@ int _pacman_add_commit(pmtrans_t *trans, pmlist_t **data)
FREEPKG(oldpkg);
}

+#if 0
/* run ldconfig if it exists */
if(handle->trans->state != STATE_INTERRUPTED) {
_pacman_ldconfig(handle->root);
}
+#endif

return(ret);
}
diff --git a/lib/libpacman/remove.c b/lib/libpacman/remove.c
index ae08020..c5ccb28 100644
--- a/lib/libpacman/remove.c
+++ b/lib/libpacman/remove.c
@@ -343,14 +343,17 @@ int _pacman_remove_commit(pmtrans_t *trans, pmlist_t 
**data)
}

if(trans->type != PM_TRANS_TYPE_UPGRADE) {
+                       _pacman_ldconfig(handle->root);
EVENT(trans, PM_TRANS_EVT_REMOVE_DONE, info, NULL);
}
}

+#if 0
/* run ldconfig if it exists */
if((trans->type != PM_TRANS_TYPE_UPGRADE) && (handle->trans->state != 
STATE_INTERRUPTED)) {
_pacman_ldconfig(handle->root);
}
+#endif

return(0);
}
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to