- drop obsolete and outdated manual inclusion of rpm macros
[packages/VMware-server.git] / VMware-server-config-kernel.patch
CommitLineData
201c0904
ER
1--- vmware-server-distrib/bin/vmware-config.pl~ 2008-04-07 21:04:12.095539024 +0300
2+++ vmware-server-distrib/bin/vmware-config.pl 2008-04-07 21:08:37.755436186 +0300
3@@ -3932,6 +3932,26 @@
4 && can_build_module($name) eq 'yes') {
5 db_add_answer('BUILDR_' . $name, 'yes');
6 } else {
75f643ed
ER
7+
8+ my $kmod_dir = $cKernelModuleDir . '/'. $gSystem{'uts_release'};
9+ if (-d $kmod_dir) {
10+ if (not open(MODULESDEP, $kmod_dir .'/modules.dep')) {
11+ error("Unable to open kernel module dependency file\n.");
12+ }
13+
14+ my $found;
15+ my $match = qr/\Q$name\E\.ko(?:\.gz)?:$/;
16+ while (<MODULESDEP>) {
17+ if ($match) {
18+ $found = 'yes';
19+ last;
20+ }
21+ }
22+ close(MODULESDEP);
23+
24+ return $found if $found;
25+ }
26+
201c0904
ER
27 my @mod_list;
28
75f643ed 29 @mod_list = get_suitable_modules($mod_dir . '/binary');
This page took 0.044618 seconds and 4 git commands to generate.