summaryrefslogtreecommitdiffstats
path: root/perl-install/patch
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2002-10-02 09:57:01 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2002-10-02 09:57:01 +0000
commitfc4795f6b6078e2085e1c32ff9c713eee215cace (patch)
treec59bbabe12b00a0d95d338b53d68763f105f165f /perl-install/patch
parentc8d08d97ce030ce9c92fcb6d41fad440b0c3e7c8 (diff)
downloaddrakx-fc4795f6b6078e2085e1c32ff9c713eee215cace.tar
drakx-fc4795f6b6078e2085e1c32ff9c713eee215cace.tar.gz
drakx-fc4795f6b6078e2085e1c32ff9c713eee215cace.tar.bz2
drakx-fc4795f6b6078e2085e1c32ff9c713eee215cace.tar.xz
drakx-fc4795f6b6078e2085e1c32ff9c713eee215cace.zip
fix nforce (from francois oem patch)
Diffstat (limited to 'perl-install/patch')
-rw-r--r--perl-install/patch/patch-nforce.pl35
1 files changed, 35 insertions, 0 deletions
diff --git a/perl-install/patch/patch-nforce.pl b/perl-install/patch/patch-nforce.pl
new file mode 100644
index 000000000..62bee8d42
--- /dev/null
+++ b/perl-install/patch/patch-nforce.pl
@@ -0,0 +1,35 @@
+use install_steps;
+use common;
+
+package install_steps;
+
+my $old_afterInstallPackages = \&afterInstallPackages;
+undef *afterInstallPackages;
+*afterInstallPackages = sub {
+ &$old_afterInstallPackages;
+
+ my ($o) = @_;
+
+ #- workaround nforce stuff.
+ #
+ # modules.pm uses /lib/modules/VERSION/modules*map to know which
+ # sound drivers to use : this'll cause i810_audio to override
+ # nvaudio since it exports the nvforce audio pci ids
+ #
+ # the right solution is to :
+ #
+ # - remove the nforce ids from i810_audio until the oss driver got
+ # fixes implemented in alsa driver for nforce (snd-intel8x0.o)
+ #
+ # - ask nvidia to declare which pci ids they use and export them
+ # for depmod :
+ # MODULE_DEVICE_TABLE (pci, <name_of_the struct pci_device_id variable>);
+
+ foreach (keys %{$o->{packages}{provides}{kernel}}) {
+ my $p = $o->{packages}{depslist}[$_];
+ my ($ext, $version, $release) = $p->name =~ /^kernel-([^\d\-]*)-?([^\-]*)\.([^\-\.]*)$/ or next;
+ -s "$o->{prefix}/lib/modules/$version-$release$ext/kernel/drivers/sound/nvaudio.o.gz" and
+ unlink "$o->{prefix}/lib/modules/$version-$release$ext/kernel/drivers/sound/i810_audio.o.gz";
+ }
+
+};