volume_key: fix compilation and -devel package with musl.

This commit is contained in:
maxice8 2018-04-15 17:59:41 -03:00 committed by Enno Boland
parent bb5adffd90
commit 1a3c048c44
2 changed files with 19 additions and 5 deletions

View File

@ -0,0 +1,15 @@
Source: Vratislav Podzimek <vpodzime@redhat.com>
Upstream: unknown
Reason: Fixes compilation under musl libc.
--- lib/libvolume_key.h
+++ lib/libvolume_key.h
@@ -18,8 +18,6 @@ Author: Miloslav Trmač <mitr@redhat.com> */
#ifndef LIBVOLUME_KEY_H__
#define LIBVOLUME_KEY_H__
-#include <config.h>
-
#include <cert.h>
#include <glib.h>

View File

@ -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 <abenson@gmail.com>"
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