[oe] [PATCH] librsync: new package

Bartosz Golaszewski brgl at bgdev.pl
Tue Dec 10 15:50:34 UTC 2019


pon., 9 gru 2019 o 20:24 Khem Raj <raj.khem at gmail.com> napisał(a):
>
> On Mon, Dec 9, 2019 at 6:45 AM Bartosz Golaszewski <brgl at bgdev.pl> wrote:
> >
> > From: Bartosz Golaszewski <bgolaszewski at baylibre.com>
> >
> > rdiff is a popular tool for calculating binary delta patches. It's
> > provided by the librsync package (unrelated to rsync already available
> > in poky).
> >
> > This recipe adds new packages for librsync and rdiff.
> >
> > Signed-off-by: Bartosz Golaszewski <bgolaszewski at baylibre.com>
> > ---
> >  .../recipes-support/librsync/librsync_2.2.1.bb | 18 ++++++++++++++++++
> >  1 file changed, 18 insertions(+)
> >  create mode 100644 meta-oe/recipes-support/librsync/librsync_2.2.1.bb
> >
> > diff --git a/meta-oe/recipes-support/librsync/librsync_2.2.1.bb b/meta-oe/recipes-support/librsync/librsync_2.2.1.bb
> > new file mode 100644
> > index 000000000..9d224767c
> > --- /dev/null
> > +++ b/meta-oe/recipes-support/librsync/librsync_2.2.1.bb
> > @@ -0,0 +1,18 @@
> > +SUMMARY = "Remote delta-compression library."
> > +AUTHOR = "Martin Pool, Andrew Tridgell, Donovan Baarda, Adam Schubert"
> > +
> > +LICENSE = "LGPLv2.1+"
> > +LIC_FILES_CHKSUM = "file://COPYING;md5=d8045f3b8f929c1cb29a1e3fd737b499"
> > +
> > +SRC_URI = "git://github.com/librsync/librsync.git"
> > +SRCREV = "5917692418657dc78c9cbde3a8db4c85f25b9c8d"
> > +S = "${WORKDIR}/git"
> > +
> > +DEPENDS = "popt"
> > +
> > +inherit cmake
> > +
> > +BBCLASSEXTEND = "native nativesdk"
> > +
> > +PACKAGES =+ "rdiff"
> > +FILES_rdiff = "/usr/bin/rdiff"
>
> Please use ${bindir} instead of /usr/bin
>

Will do.

While at it: I noticed another problem and I'm not sure how to
approach it: the recipe provides the librsync package as well as
librsync-native by using BBCLASSEXTEND = "native". We also use
PACKAGES = "rdiff" to provide the rdiff executable in a separate
package, but it doesn't seem to provide the native package for rdiff
automatically. What is the right way to provide librsync,
librsync-native, rdiff and rdiff-native here?

This is needed as native rdiff will be used to actually create the
delta update images in the system I'm working on.

Thanks in advance,
Bartosz Golaszewski

> > --
> > 2.23.0
> >


More information about the Openembedded-devel mailing list