python/hypothesis: update to 6.121.0
[oi-userland.git] / components / network / rsync / patches / 01-15730984.patch
blob2baa3e1bd1be16f09abf836e6c83b1e20c583e4f
1 Reduce references to source pathnames down to the respective basenames so
2 that builds are reproducible between workspaces.
3 The patch is needed to avoid embedding path information from the build area
4 in the compiled binares (in particular in error messages).
6 --- rsync-3.2.7/t_stub.c.orig
7 +++ rsync-3.2.7/t_stub.c
8 @@ -20,6 +20,7 @@
9 */
11 #include "rsync.h"
12 +#include <libgen.h>
14 int do_fsync = 0;
15 int inplace = 0;
16 @@ -60,7 +61,7 @@
17 void _exit_cleanup(int code, const char *file, int line)
19 fprintf(stderr, "exit(%d): %s(%d)\n",
20 - code, file, line);
21 + code, basename((char *)file), line);
22 exit(code);
25 --- rsync-3.2.7/log.c.orig
26 +++ rsync-3.2.7/log.c
27 @@ -22,6 +22,7 @@
28 #include "rsync.h"
29 #include "itypes.h"
30 #include "inums.h"
31 +#include <libgen.h>
33 extern int dry_run;
34 extern int am_daemon;
35 --- rsync-3.2.7/cleanup.c.orig
36 +++ rsync-3.2.7/cleanup.c
37 @@ -21,6 +21,7 @@
40 #include "rsync.h"
41 +#include <libgen.h>
43 extern int dry_run;
44 extern int am_server;