From 788f568db7d4133fc0d744b4f007bb5674b02e47 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 9 Oct 2009 15:35:12 +0000 Subject: - run ldconfig after update-alternatives during installer too (psb alternative does not have a higher priority than standard alternative, and ldconfig was run by the installer only before manually setting the alternative, which was not enough) --- lib/Xconfig/card.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/Xconfig/card.pm') diff --git a/lib/Xconfig/card.pm b/lib/Xconfig/card.pm index 924110f..2fe2397 100644 --- a/lib/Xconfig/card.pm +++ b/lib/Xconfig/card.pm @@ -10,6 +10,7 @@ use modules; use common; use interactive; use log; +use run_program; my $lib = arch() =~ /x86_64/ ? "lib64" : "lib"; @@ -373,9 +374,9 @@ sub libgl_config_and_more { my $need_run_ldconfig = readlink($link) ne $wanted; -e "$::prefix$wanted" or log::l("ERROR: $wanted does not exist, linking $link to it anyway"); common::symlinkf_update_alternatives('gl_conf', $wanted); - if ($need_run_ldconfig && $::isStandalone) { + if ($need_run_ldconfig) { log::explanations("ldconfig will be run because the GL library was $wanted"); - system("/sbin/ldconfig"); + run_program::rooted($::prefix, 'ldconfig'); } if (member($card->{Driver}, 'fglrx', 'nvidia')) { -- cgit v1.2.1