summary refs log tree commit diff
path: root/pkgs/tools/misc/man/share.patch
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2008-02-07 13:32:48 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2008-02-07 13:32:48 +0000
commit3918ffc86d4d6d67aac0265d66a0349783b012de (patch)
tree63bc5673671dcd4c07cf3c40b092f877fd83f760 /pkgs/tools/misc/man/share.patch
parent7842f1cbf215076d6f549c9e4652f5f64aa9461d (diff)
downloadnixlib-3918ffc86d4d6d67aac0265d66a0349783b012de.tar
nixlib-3918ffc86d4d6d67aac0265d66a0349783b012de.tar.gz
nixlib-3918ffc86d4d6d67aac0265d66a0349783b012de.tar.bz2
nixlib-3918ffc86d4d6d67aac0265d66a0349783b012de.tar.lz
nixlib-3918ffc86d4d6d67aac0265d66a0349783b012de.tar.xz
nixlib-3918ffc86d4d6d67aac0265d66a0349783b012de.tar.zst
nixlib-3918ffc86d4d6d67aac0265d66a0349783b012de.zip
* man-db 2.5.1.
svn path=/nixpkgs/trunk/; revision=10541
Diffstat (limited to 'pkgs/tools/misc/man/share.patch')
-rw-r--r--pkgs/tools/misc/man/share.patch91
1 files changed, 44 insertions, 47 deletions
diff --git a/pkgs/tools/misc/man/share.patch b/pkgs/tools/misc/man/share.patch
index 3367f4ceb61d..95582a50269d 100644
--- a/pkgs/tools/misc/man/share.patch
+++ b/pkgs/tools/misc/man/share.patch
@@ -1,79 +1,77 @@
-diff -rc man-db-2.4.3/src/manp.c man-db-2.4.3-new/src/manp.c
-*** man-db-2.4.3/src/manp.c	Mon Nov  8 10:06:03 2004
---- man-db-2.4.3-new/src/manp.c	Tue Jan  9 17:08:31 2007
+diff -rc man-db-2.5.1-orig/src/manp.c man-db-2.5.1/src/manp.c
+*** man-db-2.5.1-orig/src/manp.c	2008-01-07 03:23:11.000000000 +0100
+--- man-db-2.5.1/src/manp.c	2008-02-07 14:20:20.000000000 +0100
 ***************
-*** 101,107 ****
+*** 96,102 ****
   
   static void mkcatdirs (const char *mandir, const char *catdir);
-  static __inline__ char *get_manpath (char *path);
-! static __inline__ char *has_mandir (const char *p);
-  static __inline__ char *fsstnd (const char *path);
+  static inline char *get_manpath_from_path (const char *path);
+! static inline char *has_mandir (const char *p);
+  static inline char *fsstnd (const char *path);
   static char *def_path (int flag);
   static void add_dir_to_list (char **lp, const char *dir);
---- 101,107 ----
+--- 96,102 ----
   
   static void mkcatdirs (const char *mandir, const char *catdir);
-  static __inline__ char *get_manpath (char *path);
-! static __inline__ char *has_mandir (const char *p, const char *mandir);
-  static __inline__ char *fsstnd (const char *path);
+  static inline char *get_manpath_from_path (const char *path);
+! static inline char *has_mandir (const char *p, const char *mandir);
+  static inline char *fsstnd (const char *path);
   static char *def_path (int flag);
   static void add_dir_to_list (char **lp, const char *dir);
 ***************
-*** 885,891 ****
-  			if (debug)
-  				fputs ("is not in the config file\n", stderr);
+*** 928,934 ****
+  		} else {
+  			debug ("is not in the config file\n");
   
 ! 		 	t = has_mandir (p);
   		 	if (t) {
-  				if (debug)
-  					fprintf (stderr, "but does have a ../man or man subdirectory\n");
---- 885,891 ----
-  			if (debug)
-  				fputs ("is not in the config file\n", stderr);
+  				debug ("but does have a ../man or man "
+  				       "subdirectory\n");
+--- 928,934 ----
+  		} else {
+  			debug ("is not in the config file\n");
   
 ! 		 	t = has_mandir (p, "man");
   		 	if (t) {
-  				if (debug)
-  					fprintf (stderr, "but does have a ../man or man subdirectory\n");
+  				debug ("but does have a ../man or man "
+  				       "subdirectory\n");
 ***************
-*** 895,900 ****
---- 895,911 ----
+*** 938,943 ****
+--- 938,952 ----
   		 	} else
-  				if (debug)
-  					fprintf (stderr, "and doesn't have ../man or man subdirectories\n");
-+ 
-+ 		 	t = has_mandir (p, "share/man");
-+ 		 	if (t) {
-+ 				if (debug)
-+ 					fprintf (stderr, "but does have a ../share/man or share/man subdirectory\n");
-+ 	
-+ 				add_dir_to_list (tmplist, t);
-+ 				free (t);
-+ 		 	}
-+ 				if (debug)
-+ 					fprintf (stderr, "and doesn't have ../share/man or share/man subdirectories\n");
+  				debug ("and doesn't have ../man or man "
+  				       "subdirectories\n");
++  
++  		 	t = has_mandir (p, "share/man");
++  		 	if (t) {
++                                 debug ("but does have a ../share/man or share/man subdirectory\n");
++  	
++  				add_dir_to_list (tmplist, t);
++  				free (t);
++  		 	} else
++  				debug ("and doesn't have ../share/man or share/man subdirectories\n");
   		}
   	}
   
 ***************
-*** 973,979 ****
+*** 1013,1019 ****
   
   /* path does not exist in config file: check to see if path/../man or 
      path/man exist.  If so return it, if not return NULL. */
-! static __inline__ char *has_mandir (const char *path)
+! static inline char *has_mandir (const char *path)
   {
   	char *newpath = NULL;
   
---- 984,990 ----
+--- 1022,1028 ----
   
   /* path does not exist in config file: check to see if path/../man or 
      path/man exist.  If so return it, if not return NULL. */
-! static __inline__ char *has_mandir (const char *path, const char *mandir)
+! static inline char *has_mandir (const char *path, const char *mandir)
   {
   	char *newpath = NULL;
   
 ***************
-*** 983,991 ****
+*** 1023,1031 ****
   	char *subdir = strrchr (path, '/');
   	if (subdir) {
   		const int prefix_len = subdir + 1 - path;
@@ -83,7 +81,7 @@ diff -rc man-db-2.4.3/src/manp.c man-db-2.4.3-new/src/manp.c
   
   		if (is_directory (newpath) == 1)
   			return newpath;
---- 994,1002 ----
+--- 1032,1040 ----
   	char *subdir = strrchr (path, '/');
   	if (subdir) {
   		const int prefix_len = subdir + 1 - path;
@@ -94,20 +92,19 @@ diff -rc man-db-2.4.3/src/manp.c man-db-2.4.3-new/src/manp.c
   		if (is_directory (newpath) == 1)
   			return newpath;
 ***************
-*** 993,999 ****
+*** 1033,1039 ****
   			*newpath = '\0';
   	}
   
-! 	newpath = strappend (newpath, path, "/man", NULL);
+! 	newpath = appendstr (newpath, path, "/man", NULL);
   
   	if (is_directory (newpath) == 1)
   		return newpath;
---- 1004,1010 ----
+--- 1042,1048 ----
   			*newpath = '\0';
   	}
   
-! 	newpath = strappend (newpath, path, "/", mandir, NULL);
+! 	newpath = appendstr (newpath, path, "/", mandir, NULL);
   
   	if (is_directory (newpath) == 1)
   		return newpath;
-Only in man-db-2.4.3-new/src: manp.c~