[packages/vdo] - updated to 6.2.6.14 - updated types patch

qboosh qboosh at pld-linux.org
Mon May 9 22:04:15 CEST 2022


commit 9920f304ae69b61edd88d2006a36a7899d2f8ddf
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon May 9 22:04:50 2022 +0200

    - updated to 6.2.6.14
    - updated types patch

 vdo-types.patch | 30 ++++++++++++++++++++++++++++++
 vdo.spec        | 12 ++++++++++--
 2 files changed, 40 insertions(+), 2 deletions(-)
---
diff --git a/vdo.spec b/vdo.spec
index 5178810..a996dda 100644
--- a/vdo.spec
+++ b/vdo.spec
@@ -1,13 +1,13 @@
 Summary:	Management tools for Virtual Data Optimizer
 Summary(pl.UTF-8):	Narzędzia do zarządzania podsystemem Virtual Data Optimizer
 Name:		vdo
-Version:	6.2.3.114
+Version:	6.2.6.14
 Release:	1
 License:	GPL v2
 Group:		Applications/System
 #Source0Download: https://github.com/dm-vdo/vdo/releases
 Source0:	https://github.com/dm-vdo/vdo/archive/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	9867ea5f6128d10acac1725f95b94d87
+# Source0-md5:	87b3e16edb83fc582f94c7a5fd208628
 Patch0:		%{name}-x86.patch
 Patch1:		%{name}-types.patch
 URL:		http://github.com/dm-vdo/vdo
@@ -16,6 +16,7 @@ BuildRequires:	libblkid-devel
 BuildRequires:	libuuid-devel >= 2.23
 BuildRequires:	python3 >= 1:3.6
 BuildRequires:	python3-devel >= 1:3.6
+BuildRequires:	sed >= 4.0
 BuildRequires:	valgrind
 BuildRequires:	zlib-devel
 Requires:	libuuid >= 2.23
@@ -76,6 +77,8 @@ VDO.
 %patch0 -p1
 %patch1 -p1
 
+%{__sed} -i -e "s,'/usr/libexec','%{_libexecdir}'," vdo-manager/vdomgmnt/Defaults.py
+
 %build
 %{__make} \
 	CC="%{__cc}" \
@@ -90,6 +93,7 @@ rm -rf $RPM_BUILD_ROOT
 	UDEVDIR=$RPM_BUILD_ROOT/lib/udev/rules.d \
 	bindir=%{_bindir} \
 	defaultdocdir=%{_docdir} \
+	libexecdir=%{_libexecdir} \
 	python3_sitelib=%{py3_sitescriptdir} \
 	mandir=%{_mandir} \
 	unitdir=%{systemdunitdir} \
@@ -124,6 +128,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/vdoforcerebuild
 %attr(755,root,root) %{_bindir}/vdoformat
 %attr(755,root,root) %{_bindir}/vdosetuuid
+%attr(755,root,root) %{_libexecdir}/vdoprepareforlvm
 %{py3_sitescriptdir}/%{name}
 %{systemdunitdir}/vdo.service
 %{systemdunitdir}/vdo-start-by-dev at .service
@@ -135,6 +140,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man8/vdodumpconfig.8*
 %{_mandir}/man8/vdoforcerebuild.8*
 %{_mandir}/man8/vdoformat.8*
+%{_mandir}/man8/vdoprepareforlvm.8*
 %{_mandir}/man8/vdosetuuid.8*
 
 %files -n bash-completion-vdo
@@ -144,6 +150,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files support
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/adaptLVMVDO.sh
 %attr(755,root,root) %{_bindir}/vdoaudit
 %attr(755,root,root) %{_bindir}/vdodebugmetadata
 %attr(755,root,root) %{_bindir}/vdodumpblockmap
@@ -151,6 +158,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/vdolistmetadata
 %attr(755,root,root) %{_bindir}/vdoreadonly
 %attr(755,root,root) %{_bindir}/vdoregenerategeometry
+%{_mandir}/man8/adaptlvm.8*
 %{_mandir}/man8/vdoaudit.8*
 %{_mandir}/man8/vdodebugmetadata.8*
 %{_mandir}/man8/vdodumpblockmap.8*
diff --git a/vdo-types.patch b/vdo-types.patch
index c818a6c..cb99562 100644
--- a/vdo-types.patch
+++ b/vdo-types.patch
@@ -136,3 +136,33 @@
  
  /**
   * Explain how this command-line tool is used.
+--- vdo-6.2.6.14/utils/vdo/user/vdoprepareforlvm.c.orig	2022-02-11 01:31:42.000000000 +0100
++++ vdo-6.2.6.14/utils/vdo/user/vdoprepareforlvm.c	2022-05-09 21:50:35.553180915 +0200
+@@ -22,6 +22,7 @@
+ #include <err.h>
+ #include <fcntl.h>
+ #include <getopt.h>
++#include <inttypes.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <unistd.h>
+@@ -200,7 +201,7 @@ static int convertUDS(IndexConfig    *in
+   udsConfigurationSetNonce(udsConfig, geometry.nonce);
+ 
+   off_t startByte = geometry.regions[INDEX_REGION].startBlock * VDO_BLOCK_SIZE;
+-  result = asprintf(&indexName, "%s offset=%ld", fileName, startByte);
++  result = asprintf(&indexName, "%s offset=%"PRId64, fileName, (uint64_t)startByte);
+   if (result == -1) {
+     udsFreeConfiguration(udsConfig);
+     return ENOMEM;
+@@ -510,8 +511,8 @@ static int performDeviceConversion(void)
+   cleanup(vdo, layer);
+   close(fd);
+ 
+-  printf("Conversion completed for '%s': VDO is now offset by %ld bytes\n",
+-         fileName, vdoByteOffset);
++  printf("Conversion completed for '%s': VDO is now offset by %"PRId64" bytes\n",
++         fileName, (uint64_t)vdoByteOffset);
+ 
+   return result;
+ }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vdo.git/commitdiff/9920f304ae69b61edd88d2006a36a7899d2f8ddf



More information about the pld-cvs-commit mailing list