summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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')) {