summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-10-09 15:35:12 +0000
committerOlivier Blin <oblin@mandriva.com>2009-10-09 15:35:12 +0000
commit788f568db7d4133fc0d744b4f007bb5674b02e47 (patch)
treee12f8894a0df9b63674531807ee5b6218f27399e
parent546cfd5975bc1ecf7a6991e7a05d2e3359e00d48 (diff)
downloaddrakx-kbd-mouse-x11-788f568db7d4133fc0d744b4f007bb5674b02e47.tar
drakx-kbd-mouse-x11-788f568db7d4133fc0d744b4f007bb5674b02e47.tar.gz
drakx-kbd-mouse-x11-788f568db7d4133fc0d744b4f007bb5674b02e47.tar.bz2
drakx-kbd-mouse-x11-788f568db7d4133fc0d744b4f007bb5674b02e47.tar.xz
drakx-kbd-mouse-x11-788f568db7d4133fc0d744b4f007bb5674b02e47.zip
- 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)
-rw-r--r--NEWS5
-rw-r--r--lib/Xconfig/card.pm5
2 files changed, 8 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 06b3dec..3d6552a 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,8 @@
+- 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)
+
Version 0.83 - 8 October 2009
- use 28.8kHz as lower HorizSync (for 800x480)
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')) {