1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-21 23:18:00 -08:00

Have pkg_add run ldconfig after each updateset if the list of shared

libraries was changed. Before @tag we used to execute programs directly
as part of many updates (rebuilding desktop databases, icon cache, etc)
but those are now usually deferred until the end of the run, leaving
some executables not able to be run until pkg_add finishes.

From espie.
This commit is contained in:
sthen 2024-12-02 22:32:57 +00:00
parent ba04a0e746
commit d11b04b269

View File

@ -1,7 +1,7 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
# $OpenBSD: PkgAdd.pm,v 1.150 2024/01/02 10:25:48 espie Exp $
# $OpenBSD: PkgAdd.pm,v 1.151 2024/12/02 22:32:57 sthen Exp $
#
# Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
#
@ -847,6 +847,7 @@ sub really_add($set, $state)
$handle->location->{repository}->setup_cache($state->{setlist});
}
}
$state->ldconfig->ensure;
delete $state->{partial};
$set->{solver}->register_dependencies($state);
if ($replacing) {