[packages/recoverdm] Rel 3
arekm
arekm at pld-linux.org
Mon Mar 9 17:30:07 CET 2026
commit df8478a2cb91012d508c7d5360431138b01378e3
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Mar 9 17:29:46 2026 +0100
Rel 3
recoverdm-fix-compilation.patch | 21 +++++++++++++++++++++
recoverdm.spec | 4 +++-
2 files changed, 24 insertions(+), 1 deletion(-)
---
diff --git a/recoverdm.spec b/recoverdm.spec
index fe06b5e..d3fc6f9 100644
--- a/recoverdm.spec
+++ b/recoverdm.spec
@@ -2,12 +2,13 @@ Summary: recoverdm - recover files/disks with damaged sectors
Summary(pl.UTF-8): recoverdm - odzyskuje pliki/dyski z uszkodzonymi sektorami
Name: recoverdm
Version: 0.20
-Release: 2
+Release: 3
License: distributable
Group: Applications/System
Source0: http://www.vanheusden.com/recoverdm/%{name}-%{version}.tgz
# Source0-md5: 9da9ea7d44f8f94984715eb2ff1ecab4
Patch0: %{name}-VERSION.patch
+Patch1: %{name}-fix-compilation.patch
URL: http://www.vanheusden.com/recoverdm/
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -22,6 +23,7 @@ odzyskać zarówno pliki jak i całe urządzenia.
%prep
%setup -q
%patch -P0 -p1
+%patch -P1 -p1
%build
%{__make} \
diff --git a/recoverdm-fix-compilation.patch b/recoverdm-fix-compilation.patch
new file mode 100644
index 0000000..60c6325
--- /dev/null
+++ b/recoverdm-fix-compilation.patch
@@ -0,0 +1,21 @@
+--- recoverdm-0.20/dev.c.orig 2009-01-06 16:22:12.000000000 +0100
++++ recoverdm-0.20/dev.c 2009-01-06 16:22:12.000000000 +0100
+@@ -8,6 +8,7 @@
+ #include <errno.h>
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include <unistd.h>
+ #include <sys/ioctl.h>
+ #ifdef __linux__
+--- recoverdm-0.20/recoverdm.c.orig 2009-01-06 16:22:12.000000000 +0100
++++ recoverdm-0.20/recoverdm.c 2009-01-06 16:22:12.000000000 +0100
+@@ -166,7 +166,7 @@
+
+ if (n_raw_retries >= 3)
+ {
+- char **sector_list = (char **)mymalloc(sizeof(char *) * n_raw_retries, "sectorlist");
++ unsigned char **sector_list = (unsigned char **)mymalloc(sizeof(unsigned char *) * n_raw_retries, "sectorlist");
+ int loop;
+ char *dummy = NULL;
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/recoverdm.git/commitdiff/df8478a2cb91012d508c7d5360431138b01378e3
More information about the pld-cvs-commit
mailing list