packages: module-init-tools/module-init-tools-modprobe_d.patch - fix it by ...

arekm arekm at pld-linux.org
Tue Aug 11 09:03:53 CEST 2009


Author: arekm                        Date: Tue Aug 11 07:03:52 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- fix it by really filling modprobe_d_ver

---- Files affected:
packages/module-init-tools:
   module-init-tools-modprobe_d.patch (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: packages/module-init-tools/module-init-tools-modprobe_d.patch
diff -u packages/module-init-tools/module-init-tools-modprobe_d.patch:1.5 packages/module-init-tools/module-init-tools-modprobe_d.patch:1.6
--- packages/module-init-tools/module-init-tools-modprobe_d.patch:1.5	Sun Apr 12 08:55:03 2009
+++ packages/module-init-tools/module-init-tools-modprobe_d.patch	Tue Aug 11 09:03:47 2009
@@ -1,27 +1,31 @@
 diff -Nur module-init-tools-3.2.2/modprobe.c module-init-tools-3.2.2.modprobe_d/modprobe.c
 --- module-init-tools-3.2.2/modprobe.c	2005-12-02 00:42:09.000000000 +0100
 +++ module-init-tools-3.2.2.modprobe_d/modprobe.c	2006-01-21 03:11:18.000000000 +0100
-@@ -59,6 +59,8 @@
- 	char filename[0];
- };
+@@ -73,6 +73,8 @@
+ 
+ } modprobe_flags_t;
  
 +char *modprobe_d_ver = NULL;
 +
  #ifndef MODULE_DIR
  #define MODULE_DIR "/lib/modules"
  #endif
-@@ -1245,9 +1247,7 @@
+@@ -876,10 +878,12 @@
+ 			len = strlen(i->d_name);
  			if (len < 6 ||
  			    (strcmp(&i->d_name[len-5], ".conf") != 0 &&
- 			     strcmp(&i->d_name[len-6], ".alias") != 0))
--				warn("All config files need .conf: %s/%s, "
+-			     strcmp(&i->d_name[len-6], ".alias") != 0))
++			     strcmp(&i->d_name[len-6], ".alias") != 0)) {
+ 				warn("All config files need .conf: %s/%s, "
 -				     "it will be ignored in a future release.\n",
--				     filename, i->d_name);
-+					continue;
++				     "Ignoring non conformant file.\n",
+ 				     filename, i->d_name);
++				continue;
++			}
  			fe = malloc(sizeof(struct file_entry) + len + 1);
  			if (fe == NULL)
  				continue;
-@@ -1308,6 +1308,11 @@
+@@ -940,6 +944,11 @@
  		warn("Deprecated config file /etc/modprobe.conf, "
  		      "all config files belong into /etc/modprobe.d/.\n");
  
@@ -33,3 +37,11 @@
  	/* default config */
  	parse_config_scan("/etc/modprobe.d", name, dump_only, removing,
  			  options, commands, aliases, blacklist);
+@@ -1509,6 +1518,7 @@
+ 		print_usage(argv[0]);
+ 
+ 	nofail_asprintf(&dirname, "%s%s/%s", basedir, MODULE_DIR, buf.release);
++	nofail_asprintf(&modprobe_d_ver, "/etc/modprobe.d/%s", buf.release);
+ 	nofail_asprintf(&aliasfilename, "%s/modules.alias", dirname);
+ 	nofail_asprintf(&symfilename, "%s/modules.symbols", dirname);
+ 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/module-init-tools/module-init-tools-modprobe_d.patch?r1=1.5&r2=1.6&f=u



More information about the pld-cvs-commit mailing list