New package: libblockdev-2.16.
This commit is contained in:
parent
1a3c048c44
commit
aad6108566
|
@ -1030,6 +1030,8 @@ libcryptsetup.so.12 libcryptsetup-2.0.0_1
|
|||
libgusb.so.2 libgusb-0.1.3_1
|
||||
libmash-0.2.so.0 mash-0.2.0_4
|
||||
libbytesize.so.1 libbytesize-1.2_1
|
||||
libblockdev.so.2 libblockdev-2.16_1
|
||||
libbd_utils.so.2 libblockdev-2.16_1
|
||||
libudisks2.so.0 udisks2-1.93.0_1
|
||||
libgcr-base-3.so.1 gcr-3.3.92_1
|
||||
libgck-1.so.0 gcr-3.8.0_1
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
libblockdev
|
|
@ -0,0 +1,34 @@
|
|||
Source: upstream
|
||||
Reason: Fixes compilation in musl libc
|
||||
|
||||
--- src/plugins/crypto.c
|
||||
+++ src/plugins/crypto.c
|
||||
@@ -22,7 +22,7 @@
|
||||
#include <libcryptsetup.h>
|
||||
#include <nss.h>
|
||||
#include <volume_key/libvolume_key.h>
|
||||
-#include <sys/fcntl.h>
|
||||
+#include <fcntl.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <linux/random.h>
|
||||
#include <locale.h>
|
||||
--- src/plugins/part.c
|
||||
+++ src/plugins/part.c
|
||||
@@ -25,6 +25,7 @@
|
||||
#include <inttypes.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/file.h>
|
||||
+#include <fcntl.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <linux/fs.h>
|
||||
#include <blockdev/utils.h>
|
||||
@@ -1354,7 +1355,7 @@ static gboolean set_gpt_flags (const gchar *device, int part_num, guint64 flags,
|
||||
real_flags |= 0x4000000000000000; /* 1 << 62 */
|
||||
if (flags & BD_PART_FLAG_GPT_NO_AUTOMOUNT)
|
||||
real_flags |= 0x8000000000000000; /* 1 << 63 */
|
||||
- mask_str = g_strdup_printf ("%.16"__PRI64_PREFIX"x", real_flags);
|
||||
+ mask_str = g_strdup_printf ("%.16"PRIx64, real_flags);
|
||||
|
||||
args[2] = g_strdup_printf ("%d:=:%s", part_num, mask_str);
|
||||
g_free (mask_str);
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
# Template file for 'libblockdev'
|
||||
pkgname=libblockdev
|
||||
version=2.16
|
||||
revision=1
|
||||
build_style=gnu-configure
|
||||
hostmakedepends="pkg-config python3"
|
||||
makedepends="cryptsetup-devel device-mapper-devel dmraid-devel libbytesize-devel
|
||||
libglib-devel libkmod-devel libparted-devel nss-devel volume_key-devel"
|
||||
short_desc="A library for manipulating block devices"
|
||||
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
||||
license="LGPL-2.1-or-later"
|
||||
homepage="https://github.com/storaged-project/libblockdev"
|
||||
distfiles="https://github.com/storaged-project/libblockdev/releases/download/${version}-1/libblockdev-${version}.tar.gz"
|
||||
checksum=d841ae446cf6dc545e4f7386e13dfd8c3e07c4b6a962536b7c0fcd20e3a4d9e4
|
||||
conf_files="/etc/libblockdev/conf.d/10-lvm-dbus.cfg
|
||||
/etc/libblockdev/conf.d/00-default.cfg"
|
||||
|
||||
libblockdev-devel_package() {
|
||||
depends="libblockdev-${version}_${revision}"
|
||||
short_desc+=" - development files"
|
||||
pkg_install() {
|
||||
vmove usr/include
|
||||
vmove usr/lib/pkgconfig
|
||||
vmove "usr/lib/*.so"
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
pattern="\K[\d\.]*(?=-1\.tar\.gz)"
|
Loading…
Reference in New Issue