Debian Codegraph @

debian/patches/debian.patch

raw
1 --- searchandrescue-1.5.0.orig/pconf/proc.c
2 +++ searchandrescue-1.5.0/pconf/proc.c
3 @@ -18,6 +18,7 @@ static int PConfScanFileString(
4 const char *filename, const char *s
5 );
6 static char *PConfDependMatchFile(
7 + pconf_core_struct *core_ptr,
8 platform_struct *platform_ptr, int type, const char *path,
9 struct stat *stat_buf
10 );
11 @@ -585,6 +586,7 @@ static int PConfScanFileString(
12 * error.
13 */
14 static char *PConfDependMatchFile(
15 + pconf_core_struct *core_ptr,
16 platform_struct *platform_ptr, int type, const char *path,
17 struct stat *stat_buf
18 )
19 @@ -635,7 +637,11 @@ static char *PConfDependMatchFile(
20 }
21 /* Empty path list? */
22 if((path_list == NULL) || (total_paths < 1))
23 + {
24 + // Empty path list
25 + if(core_ptr->verbose) printf("Empty path list\n");
26 return(NULL);
27 + }
28
29 /* Itterate through search paths. */
30 new_path = NULL;
31 @@ -667,8 +673,11 @@ static char *PConfDependMatchFile(
32 );
33
34 /* Exists? */
35 - if(!stat(new_path, stat_buf))
36 + if(!stat(new_path, stat_buf)) {
37 + if (core_ptr -> verbose) printf("Returning path %s\n.", new_path);
38 return(new_path);
39 + }
40 + if (core_ptr -> verbose) printf("Failed match path %s\n.", new_path);
41 }
42 }
43
44 @@ -794,7 +803,7 @@ static int PConfDependCheck(
45
46 /* Check if the path exists on this platform. */
47 new_path = PConfDependMatchFile(
48 - platform_ptr, depend_ptr->type, path_ptr,
49 + core_ptr, platform_ptr, depend_ptr->type, path_ptr,
50 &stat_buf
51 );
52 if(new_path != NULL)
53 --- searchandrescue-1.5.0.orig/sar/makefile_append.ini
54 +++ searchandrescue-1.5.0/sar/makefile_append.ini
55 @@ -30,9 +30,10 @@ RMFLAGS = -f
56 # Build rules:
57 $(BIN): prebuild modules postbuild
58
59 +# Modified this rule to include dpkg-buildflags.
60 modules: $(OBJ_C) $(OBJ_CPP)
61 @echo -n "Linking modules..."
62 - @$(CPP) $(OBJ_C) $(OBJ_CPP) -o $(BIN) $(LIBS) $(LIB_DIRS)
63 + @$(CPP) $(OBJ_C) $(OBJ_CPP) -o $(BIN) $(LIBS) $(LIB_DIRS) $(shell dpkg-buildflags --get LDFLAGS)
64 @echo -n " "
65 @-$(LS) $(LSFLAGS) $(BIN)
66