From 1a3c048c44ccc1c8c44336b0f7f5fcbf1b248d23 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Sun, 15 Apr 2018 17:59:41 -0300 Subject: [PATCH] volume_key: fix compilation and -devel package with musl. --- srcpkgs/volume_key/patches/fix-devel.patch | 15 +++++++++++++++ srcpkgs/volume_key/template | 9 ++++----- 2 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 srcpkgs/volume_key/patches/fix-devel.patch diff --git a/srcpkgs/volume_key/patches/fix-devel.patch b/srcpkgs/volume_key/patches/fix-devel.patch new file mode 100644 index 00000000000..9149475c049 --- /dev/null +++ b/srcpkgs/volume_key/patches/fix-devel.patch @@ -0,0 +1,15 @@ +Source: Vratislav Podzimek +Upstream: unknown +Reason: Fixes compilation under musl libc. + +--- lib/libvolume_key.h ++++ lib/libvolume_key.h +@@ -18,8 +18,6 @@ Author: Miloslav Trmač */ + #ifndef LIBVOLUME_KEY_H__ + #define LIBVOLUME_KEY_H__ + +-#include +- + #include + #include + diff --git a/srcpkgs/volume_key/template b/srcpkgs/volume_key/template index 62f5f31880b..4ab16a4aa3c 100644 --- a/srcpkgs/volume_key/template +++ b/srcpkgs/volume_key/template @@ -1,19 +1,18 @@ # Template file for 'volume_key' pkgname=volume_key version=0.3.9 -revision=1 +revision=2 build_style=gnu-configure +hostmakedepends="pkg-config python-devel" +makedepends="cryptsetup-devel glib-devel gpgme-devel nss-devel python-devel" short_desc="Library for manipulating storage volume encryption keys" -hostmakedepends="pkg-config" -makedepends="libblkid-devel glib-devel cryptsetup-devel nss-devel gpgme-devel python-devel" maintainer="Andrew Benson " -license="GPL-3" +license="GPL-3.0-or-later" homepage="https://pagure.io/volume_key" distfiles="http://releases.pagure.org/volume_key/volume_key-${version}.tar.xz" checksum=450a54fe9bf56acec6850c1e71371d3e4913c9ca1ef0cdc3a517b4b6910412a6 if [ -n "$CROSS_BUILD" ]; then - hostmakedepends+=" python" make_build_args+=" PYTHON_CPPFLAGS=-I${XBPS_CROSS_BASE}/usr/include/python2.7" fi