]> git.pld-linux.org Git - packages/vdo.git/commitdiff
- updated to 6.2.6.14 auto/th/vdo-6.2.6.14-1
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 9 May 2022 20:04:50 +0000 (22:04 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Mon, 9 May 2022 20:04:50 +0000 (22:04 +0200)
- updated types patch

vdo-types.patch
vdo.spec

index c818a6c5913bd3f73de2cfeeb7f7d4ea32fe13db..cb9956243d67a78a93608ba4da9e34d0fa313fe3 100644 (file)
  
  /**
   * 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;
+ }
index 51788101be29166c5310f076346c019acfb0ae09..a996ddaeff424fe4a3b9983208b327f699cf730c 100644 (file)
--- 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@.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*
This page took 0.127018 seconds and 4 git commands to generate.