1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 12use 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>); #- try to workaround nforce stuff. 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 run_program::rooted($o->{prefix}, "cp -f /lib/modules/$version-$release$ext/kernel/drivers/sound/nvaudio.o.gz /lib/modules/$version-$release$ext/kernel/drivers/sound/i810_audio.o.gz"); } };