Skip to contentSkip to conversation

zsync: add recipe

PATCH In review Ross Burton 2 participants 2 messages Jun 7, 2021 – Jun 8, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 zsync: add recipe

zsync is a tool that is similar to rsync but optimised for transfering single large files, where you have a previous version of the file locally.

These qualities make it an excellent choice for transfering built images between hosts.

---
 .../zsync/zsync/out-of-tree.patch             | 37 +++++++++++++++++++
 meta-oe/recipes-extended/zsync/zsync_0.6.2.bb | 13 +++++++
 2 files changed, 50 insertions(+)
 create mode 100644 meta-oe/recipes-extended/zsync/zsync/out-of-tree.patch
 create mode 100644 meta-oe/recipes-extended/zsync/zsync_0.6.2.bb
meta-oe/recipes-extended/zsync/zsync/out-of-tree.patch new file +37 -0
new file mode 100644
index 0000000000..b96777f0c3
@@ -0,0 +1,37 @@
+Fix out-of-tree builds and rebuilds by passing the right -I to find the common
+header, and disabling maintainer-mode.
+
+Upstream-Status: Pending [upstream is dead]
+Signed-off-by: Ross Burton <[email protected]>
+
+diff --git a/configure.ac b/configure.ac
+index 87b0be1..4b7c9a2 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -9,7 +9,6 @@ AC_CONFIG_MACRO_DIR([autotools])
+ AC_CANONICAL_HOST
+ 
+ AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip foreign check-news -Woverride -Wobsolete -Wportability -Wsyntax -Wunsupported])
+-AM_MAINTAINER_MODE
+ 
+ dnl --- Check for programs
+ AC_PROG_CC
+diff --git a/librcksum/Makefile.am b/librcksum/Makefile.am
+index f4fce72..47754eb 100644
+--- a/librcksum/Makefile.am
++++ b/librcksum/Makefile.am
+@@ -1,4 +1,4 @@
+-
++AM_CPPFLAGS = "-I$(top_srcdir)"
+ 
+ noinst_LIBRARIES = librcksum.a
+ 
+diff --git a/libzsync/Makefile.am b/libzsync/Makefile.am
+index 0a6ae85..33a5951 100644
+--- a/libzsync/Makefile.am
++++ b/libzsync/Makefile.am
+@@ -1,3 +1,4 @@
++AM_CPPFLAGS = "-I$(top_srcdir)"
+ 
+ noinst_LIBRARIES = libzsync.a
+ 
meta-oe/recipes-extended/zsync/zsync_0.6.2.bb new file +13 -0
new file mode 100644
index 0000000000..c61e26309d
@@ -0,0 +1,13 @@
+SUMMARY = "File transfer tool optimised for large files"
+HOMEPAGE = "http://zsync.moria.org.uk/"
+
+LICENSE = "Artistic-2.0"
+LIC_FILES_CHKSUM = "file://COPYING;md5=71c0ac4d86266533509aa0825b8d323c"
+
+SRC_URI = "http://zsync.moria.org.uk/download/${BP}.tar.bz2 \
+           file://out-of-tree.patch"
+SRC_URI[sha256sum] = "0b9d53433387aa4f04634a6c63a5efa8203070f2298af72a705f9be3dda65af2"
+
+inherit autotools
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.1
#1 lore raw
Quoted 7 lines · Ross Burton

zsync is a tool that is similar to rsync but optimised for transfering single large files, where you have a previous version of the file locally.

These qualities make it an excellent choice for transfering built images between hosts.

musl unearths a problem

https://errors.yoctoproject.org/Errors/Details/586153/

you have to include <sys/types.h> to get off_t

Quoted 76 lines
---
 .../zsync/zsync/out-of-tree.patch             | 37 +++++++++++++++++++
 meta-oe/recipes-extended/zsync/zsync_0.6.2.bb | 13 +++++++
 2 files changed, 50 insertions(+)
 create mode 100644 meta-oe/recipes-extended/zsync/zsync/out-of-tree.patch
 create mode 100644 meta-oe/recipes-extended/zsync/zsync_0.6.2.bb
meta-oe/recipes-extended/zsync/zsync/out-of-tree.patch new file +37 -0
new file mode 100644
index 0000000000..b96777f0c3
@@ -0,0 +1,37 @@
+Fix out-of-tree builds and rebuilds by passing the right -I to find the common
+header, and disabling maintainer-mode.
+
+Upstream-Status: Pending [upstream is dead]
+Signed-off-by: Ross Burton <[email protected]>
+
+diff --git a/configure.ac b/configure.ac
+index 87b0be1..4b7c9a2 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -9,7 +9,6 @@ AC_CONFIG_MACRO_DIR([autotools])
+ AC_CANONICAL_HOST
+
+ AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip foreign check-news -Woverride -Wobsolete -Wportability -Wsyntax -Wunsupported])
+-AM_MAINTAINER_MODE
+
+ dnl --- Check for programs
+ AC_PROG_CC
+diff --git a/librcksum/Makefile.am b/librcksum/Makefile.am
+index f4fce72..47754eb 100644
+--- a/librcksum/Makefile.am
++++ b/librcksum/Makefile.am
+@@ -1,4 +1,4 @@
+-
++AM_CPPFLAGS = "-I$(top_srcdir)"
+
+ noinst_LIBRARIES = librcksum.a
+
+diff --git a/libzsync/Makefile.am b/libzsync/Makefile.am
+index 0a6ae85..33a5951 100644
+--- a/libzsync/Makefile.am
++++ b/libzsync/Makefile.am
+@@ -1,3 +1,4 @@
++AM_CPPFLAGS = "-I$(top_srcdir)"
+
+ noinst_LIBRARIES = libzsync.a
+
meta-oe/recipes-extended/zsync/zsync_0.6.2.bb new file +13 -1
new file mode 100644
index 0000000000..c61e26309d
@@ -0,0 +1,13 @@
+SUMMARY = "File transfer tool optimised for large files"
+HOMEPAGE = "http://zsync.moria.org.uk/"
+
+LICENSE = "Artistic-2.0"
+LIC_FILES_CHKSUM = "file://COPYING;md5=71c0ac4d86266533509aa0825b8d323c"
+
+SRC_URI = "http://zsync.moria.org.uk/download/${BP}.tar.bz2 \
+           file://out-of-tree.patch"
+SRC_URI[sha256sum] = "0b9d53433387aa4f04634a6c63a5efa8203070f2298af72a705f9be3dda65af2"
+
+inherit autotools
+
+BBCLASSEXTEND = "native nativesdk"
--

2.25.1