From e24db203a69399146af798ac554584459bf393a7 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Thu, 13 Apr 2017 17:36:46 +0200 Subject: [PATCH] New package: libostree-2017.3 fixes #6184 --- common/shlibs | 1 + srcpkgs/libostree-devel | 1 + srcpkgs/libostree/patches/musl-macros.patch | 15 +++++++++++++ srcpkgs/libostree/template | 25 +++++++++++++++++++++ 4 files changed, 42 insertions(+) create mode 120000 srcpkgs/libostree-devel create mode 100644 srcpkgs/libostree/patches/musl-macros.patch create mode 100644 srcpkgs/libostree/template diff --git a/common/shlibs b/common/shlibs index 811f7bd664..fb91088335 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2815,3 +2815,4 @@ libmutter-cogl-path-0.so mutter-3.24.0_1 libmutter-cogl-0.so mutter-3.24.0_1 libmutter-cogl-pango-0.so mutter-3.24.0_1 libmozjs-.so mozjs38-38.8.0_1 +libostree-1.so.1 libostree-2017.4_1 diff --git a/srcpkgs/libostree-devel b/srcpkgs/libostree-devel new file mode 120000 index 0000000000..99e305f43c --- /dev/null +++ b/srcpkgs/libostree-devel @@ -0,0 +1 @@ +libostree \ No newline at end of file diff --git a/srcpkgs/libostree/patches/musl-macros.patch b/srcpkgs/libostree/patches/musl-macros.patch new file mode 100644 index 0000000000..77055619f3 --- /dev/null +++ b/srcpkgs/libostree/patches/musl-macros.patch @@ -0,0 +1,15 @@ +--- config.h.in.orig ++++ config.h.in +@@ -154,3 +154,12 @@ + + /* Define to 1 if you need to in order for `stat' and other things to work. */ + #undef _POSIX_SOURCE ++ ++#ifndef TEMP_FAILURE_RETRY ++#define TEMP_FAILURE_RETRY(expression) \ ++ (__extension__ \ ++ ({ long int __result; \ ++ do __result = (long int) (expression); \ ++ while (__result == -1L && errno == EINTR); \ ++ __result; })) ++#endif diff --git a/srcpkgs/libostree/template b/srcpkgs/libostree/template new file mode 100644 index 0000000000..b13413bb67 --- /dev/null +++ b/srcpkgs/libostree/template @@ -0,0 +1,25 @@ +# Template file for 'libostree' +pkgname=libostree +version=2017.3 +revision=1 +build_style=gnu-configure +configure_args="--with-builtin-grub2-mkconfig --with-openssl" +hostmakedepends="bison libxslt pkg-config" +makedepends="e2fsprogs-devel fuse-devel glib-devel gpgme-devel libarchive-devel + liblzma-devel libressl-devel libsoup-devel" +short_desc="Operating system and container binary deployment and upgrades" +maintainer="Duncaen " +license="GPL-2" +homepage="https://ostree.readthedocs.io/en/latest/" +distfiles="https://github.com/ostreedev/ostree/releases/download/v${version}/libostree-${version}.tar.xz" +checksum=15e8d2956449c860bd404a2defb1f43a18cf9c4a4e27827b28d467ecf3eaba44 + +libostree-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.so" + } +}