Keith,

Please consider the attached patch for inclusion in all future versions
of the modutils depmod program for compatiblity with RedHat and 
RedHat derived Linux distributions.  This patch only requires 
4 very short changes to depmod.c as opposed to thousands of
changes necessary in anaconda and other RedHat compatible 
programs and scripts to work with your standard depmod
programs without these changes.  

Thanks

Jeff

 
--- modutils-2.3.20/depmod/depmod.c.chmou       Thu Nov 16 01:40:09 2000
+++ modutils-2.3.20/depmod/depmod.c     Wed Nov 22 05:18:09 2000
@@ -188,6 +188,7 @@
 static SYMBOL *symavail;
 static SYMBOL *maxsyms;
 static LIST_SYMBOL *chunk;
+static int ignore_symbol_versions;

 static int quiet;      /* Don't print errors */
 static int showerror;  /* Shows undefined symbols */
@@ -1098,7 +1099,9 @@
                {"errsyms", 0, 0, 'e'},
                {"filesyms", 1, 0, 'F'},
                {"help", 0, 0, 'h'},
+               {"ignore-versions", 0, 0, 'i'},
                {"show", 0, 0, 'n'},
+               {"system-map", 1, 0, 'm'}, /* backward compatibility, same as 'F' */
                {"quiet", 0, 0, 'q'},
                {"syslog", 0, 0, 's'},
                {"verbose", 0, 0, 'v'},
@@ -1109,7 +1112,7 @@
 
        error_file = "depmod";
 
-       while ((o = getopt_long(argc, argv, "aAb:C:eF:hnqsvVr",
+       while ((o = getopt_long(argc, argv, "aAb:C:eF:him:nqsvVr",
                                &long_opts[0], NULL)) != EOF) {
                switch (o) {
                case 'A':
@@ -1132,11 +1135,16 @@
                        return 0;
                        break;
 
+               case 'i':
+                       ignore_symbol_versions = 1;
+                       break;
+
                case 'C':
                        conf_file = optarg;
                        break;
 
                case 'F':
+               case 'm':
                        file_syms = optarg;
                        break;

Reply via email to