diff options
| -rw-r--r-- | meta/recipes-devtools/rsync/files/0001-Add-missing-prototypes-to-function-declarations.patch | 69 | ||||
| -rw-r--r-- | meta/recipes-devtools/rsync/files/determism.patch | 20 | ||||
| -rw-r--r-- | meta/recipes-devtools/rsync/files/makefile-no-rebuild.patch | 10 | ||||
| -rw-r--r-- | meta/recipes-devtools/rsync/rsync_3.4.1.bb (renamed from meta/recipes-devtools/rsync/rsync_3.3.0.bb) | 2 |
4 files changed, 32 insertions, 69 deletions
diff --git a/meta/recipes-devtools/rsync/files/0001-Add-missing-prototypes-to-function-declarations.patch b/meta/recipes-devtools/rsync/files/0001-Add-missing-prototypes-to-function-declarations.patch index 2379de84f2..3011308c61 100644 --- a/meta/recipes-devtools/rsync/files/0001-Add-missing-prototypes-to-function-declarations.patch +++ b/meta/recipes-devtools/rsync/files/0001-Add-missing-prototypes-to-function-declarations.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 2beb35c34c45320144f37b12ef4d72fb8734280e Mon Sep 17 00:00:00 2001 | 1 | From 073caa67f2aa221de113a21f8105940421a2da90 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Mon, 29 Aug 2022 19:53:28 -0700 | 3 | Date: Mon, 29 Aug 2022 19:53:28 -0700 |
| 4 | Subject: [PATCH] Add missing prototypes to function declarations | 4 | Subject: [PATCH] Add missing prototypes to function declarations |
| @@ -15,21 +15,19 @@ Fixes errors like | |||
| 15 | 15 | ||
| 16 | Upstream-Status: Submitted [https://lists.samba.org/archive/rsync/2022-August/032858.html] | 16 | Upstream-Status: Submitted [https://lists.samba.org/archive/rsync/2022-August/032858.html] |
| 17 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 17 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 18 | Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> | ||
| 18 | --- | 19 | --- |
| 19 | checksum.c | 2 +- | 20 | checksum.c | 2 +- |
| 20 | exclude.c | 2 +- | 21 | exclude.c | 2 +- |
| 21 | hlink.c | 3 +-- | 22 | log.c | 2 +- |
| 22 | lib/pool_alloc.c | 2 +- | 23 | main.c | 2 +- |
| 23 | log.c | 2 +- | 24 | zlib/crc32.c | 2 +- |
| 24 | main.c | 2 +- | 25 | zlib/trees.c | 2 +- |
| 25 | syscall.c | 4 ++-- | 26 | zlib/zutil.c | 4 ++-- |
| 26 | zlib/crc32.c | 2 +- | 27 | 7 files changed, 8 insertions(+), 8 deletions(-) |
| 27 | zlib/trees.c | 2 +- | ||
| 28 | zlib/zutil.c | 4 ++-- | ||
| 29 | 10 files changed, 12 insertions(+), 13 deletions(-) | ||
| 30 | 28 | ||
| 31 | diff --git a/checksum.c b/checksum.c | 29 | diff --git a/checksum.c b/checksum.c |
| 32 | index cb21882..736818b 100644 | 30 | index 66e8089..b24b202 100644 |
| 33 | --- a/checksum.c | 31 | --- a/checksum.c |
| 34 | +++ b/checksum.c | 32 | +++ b/checksum.c |
| 35 | @@ -779,7 +779,7 @@ static void verify_digest(struct name_num_item *nni, BOOL check_auth_list) | 33 | @@ -779,7 +779,7 @@ static void verify_digest(struct name_num_item *nni, BOOL check_auth_list) |
| @@ -54,33 +52,6 @@ index 87edbcf..ae0de2f 100644 | |||
| 54 | { | 52 | { |
| 55 | if (partial_string_buf) { | 53 | if (partial_string_buf) { |
| 56 | if (partial_string_len) | 54 | if (partial_string_len) |
| 57 | diff --git a/hlink.c b/hlink.c | ||
| 58 | index 20291f2..5c26a6b 100644 | ||
| 59 | --- a/hlink.c | ||
| 60 | +++ b/hlink.c | ||
| 61 | @@ -117,8 +117,7 @@ static void match_gnums(int32 *ndx_list, int ndx_count) | ||
| 62 | struct ht_int32_node *node = NULL; | ||
| 63 | int32 gnum, gnum_next; | ||
| 64 | |||
| 65 | - qsort(ndx_list, ndx_count, sizeof ndx_list[0], (int (*)()) hlink_compare_gnum); | ||
| 66 | - | ||
| 67 | + qsort(ndx_list, ndx_count, sizeof ndx_list[0], (int (*)(const void *, const void *)) hlink_compare_gnum); | ||
| 68 | for (from = 0; from < ndx_count; from++) { | ||
| 69 | file = hlink_flist->sorted[ndx_list[from]]; | ||
| 70 | gnum = F_HL_GNUM(file); | ||
| 71 | diff --git a/lib/pool_alloc.c b/lib/pool_alloc.c | ||
| 72 | index a1a7245..4eae062 100644 | ||
| 73 | --- a/lib/pool_alloc.c | ||
| 74 | +++ b/lib/pool_alloc.c | ||
| 75 | @@ -9,7 +9,7 @@ struct alloc_pool | ||
| 76 | size_t size; /* extent size */ | ||
| 77 | size_t quantum; /* allocation quantum */ | ||
| 78 | struct pool_extent *extents; /* top extent is "live" */ | ||
| 79 | - void (*bomb)(); /* called if malloc fails */ | ||
| 80 | + void (*bomb)(const char *, const char *, int); /* called if malloc fails */ | ||
| 81 | int flags; | ||
| 82 | |||
| 83 | /* statistical data */ | ||
| 84 | diff --git a/log.c b/log.c | 55 | diff --git a/log.c b/log.c |
| 85 | index e4ba1cc..8482b71 100644 | 56 | index e4ba1cc..8482b71 100644 |
| 86 | --- a/log.c | 57 | --- a/log.c |
| @@ -95,7 +66,7 @@ index e4ba1cc..8482b71 100644 | |||
| 95 | int options = LOG_PID; | 66 | int options = LOG_PID; |
| 96 | 67 | ||
| 97 | diff --git a/main.c b/main.c | 68 | diff --git a/main.c b/main.c |
| 98 | index 0c60b86..4bc664a 100644 | 69 | index 4f070ac..f59eaec 100644 |
| 99 | --- a/main.c | 70 | --- a/main.c |
| 100 | +++ b/main.c | 71 | +++ b/main.c |
| 101 | @@ -246,7 +246,7 @@ void read_del_stats(int f) | 72 | @@ -246,7 +246,7 @@ void read_del_stats(int f) |
| @@ -107,22 +78,6 @@ index 0c60b86..4bc664a 100644 | |||
| 107 | { | 78 | { |
| 108 | char *gname; | 79 | char *gname; |
| 109 | uid_t uid; | 80 | uid_t uid; |
| 110 | diff --git a/syscall.c b/syscall.c | ||
| 111 | index d92074a..92ca86d 100644 | ||
| 112 | --- a/syscall.c | ||
| 113 | +++ b/syscall.c | ||
| 114 | @@ -389,9 +389,9 @@ OFF_T do_lseek(int fd, OFF_T offset, int whence) | ||
| 115 | { | ||
| 116 | #ifdef HAVE_LSEEK64 | ||
| 117 | #if !SIZEOF_OFF64_T | ||
| 118 | - OFF_T lseek64(); | ||
| 119 | + OFF_T lseek64(int fd, OFF_T offset, int whence); | ||
| 120 | #else | ||
| 121 | - off64_t lseek64(); | ||
| 122 | + off64_t lseek64(int fd, off64_t offset, int whence); | ||
| 123 | #endif | ||
| 124 | return lseek64(fd, offset, whence); | ||
| 125 | #else | ||
| 126 | diff --git a/zlib/crc32.c b/zlib/crc32.c | 81 | diff --git a/zlib/crc32.c b/zlib/crc32.c |
| 127 | index 05733f4..50c6c02 100644 | 82 | index 05733f4..50c6c02 100644 |
| 128 | --- a/zlib/crc32.c | 83 | --- a/zlib/crc32.c |
diff --git a/meta/recipes-devtools/rsync/files/determism.patch b/meta/recipes-devtools/rsync/files/determism.patch index e3494fdded..f915d658c8 100644 --- a/meta/recipes-devtools/rsync/files/determism.patch +++ b/meta/recipes-devtools/rsync/files/determism.patch | |||
| @@ -1,7 +1,12 @@ | |||
| 1 | From 41b859a9df9611b7b3f6cbe28af47118d947080f Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
| 3 | Date: Sun, 21 Feb 2021 09:45:48 +0000 | ||
| 4 | Subject: [PATCH] rsync: Fix a file sorting determinism issue | ||
| 5 | |||
| 1 | The Makefile calls awk on a "*.c" glob. The results of this glob are sorted | 6 | The Makefile calls awk on a "*.c" glob. The results of this glob are sorted |
| 2 | but the order depends on the locale settings, particularly whether | 7 | but the order depends on the locale settings, particularly whether |
| 3 | "util.c" and "util2.c" sort before or after each other. In en_US.UTF-8 | 8 | "util.c" and "util2.c" sort before or after each other. In en_US.UTF-8 |
| 4 | they sort one way, in C, they sort the other. The sorting order changes | 9 | they sort one way, in C, they sort the other. The sorting order changes |
| 5 | the output binaries. The behaviour also changes dependning on whether | 10 | the output binaries. The behaviour also changes dependning on whether |
| 6 | SHELL (/bin/sh) is dash or bash. | 11 | SHELL (/bin/sh) is dash or bash. |
| 7 | 12 | ||
| @@ -15,12 +20,15 @@ Upstream-Status: Backport [ish, see below] | |||
| 15 | After discussion upstream renamed util.c to util1.c which avoids the problem | 20 | After discussion upstream renamed util.c to util1.c which avoids the problem |
| 16 | in a different way. This patch can be dropped when we upgrade to include: | 21 | in a different way. This patch can be dropped when we upgrade to include: |
| 17 | https://github.com/WayneD/rsync/commit/d3085f7add38a5cf833a0b31cb0637ff46c80f8d | 22 | https://github.com/WayneD/rsync/commit/d3085f7add38a5cf833a0b31cb0637ff46c80f8d |
| 23 | --- | ||
| 24 | Makefile.in | 5 +++++ | ||
| 25 | 1 file changed, 5 insertions(+) | ||
| 18 | 26 | ||
| 19 | Index: rsync-3.2.3/Makefile.in | 27 | diff --git a/Makefile.in b/Makefile.in |
| 20 | =================================================================== | 28 | index 1d13e8c..2c5cf99 100644 |
| 21 | --- rsync-3.2.3.orig/Makefile.in | 29 | --- a/Makefile.in |
| 22 | +++ rsync-3.2.3/Makefile.in | 30 | +++ b/Makefile.in |
| 23 | @@ -26,6 +26,11 @@ MKDIR_P=@MKDIR_P@ | 31 | @@ -27,6 +27,11 @@ MKDIR_P=@MKDIR_P@ |
| 24 | VPATH=$(srcdir) | 32 | VPATH=$(srcdir) |
| 25 | SHELL=/bin/sh | 33 | SHELL=/bin/sh |
| 26 | 34 | ||
diff --git a/meta/recipes-devtools/rsync/files/makefile-no-rebuild.patch b/meta/recipes-devtools/rsync/files/makefile-no-rebuild.patch index 0c9ce8b8e3..42af4c55d0 100644 --- a/meta/recipes-devtools/rsync/files/makefile-no-rebuild.patch +++ b/meta/recipes-devtools/rsync/files/makefile-no-rebuild.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From f446686c26c499e15ef17d495a93cfbc20e16090 Mon Sep 17 00:00:00 2001 | 1 | From 603e5862cca832ae925d0c92a8654a57caff5910 Mon Sep 17 00:00:00 2001 |
| 2 | From: Ross Burton <ross.burton@intel.com> | 2 | From: Ross Burton <ross.burton@intel.com> |
| 3 | Date: Tue, 12 Apr 2016 15:51:54 +0100 | 3 | Date: Tue, 12 Apr 2016 15:51:54 +0100 |
| 4 | Subject: [PATCH] rsync: remove upstream's rebuild logic | 4 | Subject: [PATCH] rsync: remove upstream's rebuild logic |
| @@ -13,12 +13,12 @@ Signed-off-by: Ross Burton <ross.burton@intel.com> | |||
| 13 | 1 file changed, 54 deletions(-) | 13 | 1 file changed, 54 deletions(-) |
| 14 | 14 | ||
| 15 | diff --git a/Makefile.in b/Makefile.in | 15 | diff --git a/Makefile.in b/Makefile.in |
| 16 | index a1253e5..a084935 100644 | 16 | index 7c75c26..1d13e8c 100644 |
| 17 | --- a/Makefile.in | 17 | --- a/Makefile.in |
| 18 | +++ b/Makefile.in | 18 | +++ b/Makefile.in |
| 19 | @@ -192,60 +192,6 @@ gensend: gen | 19 | @@ -184,60 +184,6 @@ conf: configure.sh config.h.in |
| 20 | fi | 20 | .PHONY: gen |
| 21 | rsync -aic $(GENFILES) git-version.h $${SAMBA_HOST-samba.org}:/home/ftp/pub/rsync/generated-files/ || true | 21 | gen: conf proto.h man git-version.h |
| 22 | 22 | ||
| 23 | -aclocal.m4: $(srcdir)/m4/*.m4 | 23 | -aclocal.m4: $(srcdir)/m4/*.m4 |
| 24 | - aclocal -I $(srcdir)/m4 | 24 | - aclocal -I $(srcdir)/m4 |
diff --git a/meta/recipes-devtools/rsync/rsync_3.3.0.bb b/meta/recipes-devtools/rsync/rsync_3.4.1.bb index c03bb270d4..2cf87d379a 100644 --- a/meta/recipes-devtools/rsync/rsync_3.3.0.bb +++ b/meta/recipes-devtools/rsync/rsync_3.4.1.bb | |||
| @@ -16,7 +16,7 @@ SRC_URI = "https://download.samba.org/pub/${BPN}/src/${BP}.tar.gz \ | |||
| 16 | file://determism.patch \ | 16 | file://determism.patch \ |
| 17 | file://0001-Add-missing-prototypes-to-function-declarations.patch \ | 17 | file://0001-Add-missing-prototypes-to-function-declarations.patch \ |
| 18 | " | 18 | " |
| 19 | SRC_URI[sha256sum] = "7399e9a6708c32d678a72a63219e96f23be0be2336e50fd1348498d07041df90" | 19 | SRC_URI[sha256sum] = "2924bcb3a1ed8b551fc101f740b9f0fe0a202b115027647cf69850d65fd88c52" |
| 20 | 20 | ||
| 21 | # Doesn't use automake | 21 | # Doesn't use automake |
| 22 | inherit autotools-brokensep | 22 | inherit autotools-brokensep |
