commit c7b411f80330dbeff7d17a4c19132ec528e59cf302a929b29ab5e6c90d67ac2b Author: Dirk Mueller Date: Mon Sep 30 07:08:01 2024 +0000 - Update to dd_rescue-1.99.16: * Refactoring: Move CPU feature detection to archdep.c. * libddr_cypt: Support passing in password via pipe and passfd= * Add testcase for this * Support sha256 acceleration on x86-64 and armv8. * Improve detection of armv8 crypto (aes) acceleration (32bit). OBS-URL: https://build.opensuse.org/package/show/Base:System/dd_rescue?expand=0&rev=83 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/dd_rescue-1.99.13.tar.bz2 b/dd_rescue-1.99.13.tar.bz2 new file mode 100644 index 0000000..6d9c2d6 --- /dev/null +++ b/dd_rescue-1.99.13.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f40fe9c770ff5d27d323297ee73d0bbed332d3eafac4e4732e542eadb1c5c1e8 +size 182574 diff --git a/dd_rescue-1.99.13.tar.bz2.asc b/dd_rescue-1.99.13.tar.bz2.asc new file mode 100644 index 0000000..38d38b3 --- /dev/null +++ b/dd_rescue-1.99.13.tar.bz2.asc @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNATURE----- + +iQIzBAABCgAdFiEEZmn3NA0x6V7FVlSQ3k8bOiv/xb8FAmQUG7oACgkQ3k8bOiv/ +xb84QA//QaYmz3mugFQJbyktEQ8KVbR5sKIqxLcMsjw3OOo33rq37J3dXYKo1uf5 +pCnbk97L+X8D5NXKWjxLvSXA8Nbx9J5N/OduEfAMGWA1mTQKJs9bwX8RLyZ56yt1 +V5lvDGRNoL0j/bIeHxx9u/nBcPqpQSt2sq7g/BvMSoYVcg/qBhJGRV+mzDuB4NX+ +q0EvyQVofdfE9qLJ532j6SssBVu0xJ/eHniUcmwr/H8Od5TQLDTMPKOQwgG2R1iR +aJLzoxBYBbzhrbhEe6Qw4k33I/rs3Uu1g3J+RZSh0cVn5ojiFGGn6ZXNicHYzVo2 +LBAOahlR/p12OxWiFlYQcKwGBURFmlwwty0X1ZtRiE+GyUPRkZmxZ8w+Je+VMtIk +nbZVD26IinWK/Jx8XyX2jZkc+0+GIPvnwelzP+OBH1Sn4btuEJ9oAnuSx3kuLDBw +DdUW/GkuRTSwPIoKz22kCsaPq+9Tx1qxw41wBXn1MDjn0C3qL1mN4Kmy1GvjoPiB +0k2WeVmxiia5397SI8n90EJ/iyJCQuBysaGvvo2FOBCOcHbkqLbz+tscowkoy3kJ +gQYkOtpnRB21w4+zt41iOKojfkm/7u3BKriQU7zw+FUYGbTeungIeRiXHRVhVrRx +f+L1NaITRJduIK8EMIK5ah5OeFYyMcELjHKlbEdxrxFaaMo3hrM= +=T6nE +-----END PGP SIGNATURE----- diff --git a/dd_rescue-1.99.15.tar.bz2 b/dd_rescue-1.99.15.tar.bz2 new file mode 100644 index 0000000..b88c59d --- /dev/null +++ b/dd_rescue-1.99.15.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:83936f24fbb9ff70722b55f69cd0dff71bc4a4aabfcf9b56b5128f98bfe16f89 +size 184905 diff --git a/dd_rescue-1.99.15.tar.bz2.asc b/dd_rescue-1.99.15.tar.bz2.asc new file mode 100644 index 0000000..7e8279b --- /dev/null +++ b/dd_rescue-1.99.15.tar.bz2.asc @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNATURE----- + +iQIzBAABCgAdFiEEZmn3NA0x6V7FVlSQ3k8bOiv/xb8FAmbpg30ACgkQ3k8bOiv/ +xb/PJg/+IKNN7vkJSsYRCoC0Lj2NDWvCvmFrjqG+oLD8CUMQUrc00gMx+4qoALvx +LDGFX21+W86vOmtwcM4k7DhBKuhc50rXbo/UFaxeQLd45gHkmXbxav1qX3D3oduB +WMggBuUnazIAhuVxqyw0cPS/OH6UNUY5xsB7FpNtWTQ1dkBlVKXybgnVRmaol1hs +yT/kKetCBjKvY1fgJLKszzJhMdnSRo6HpHG1TFQXdl7hxIC3aEjTnbfz8kGYM2M4 +FoGddif3okgkZPKUA51JYsgyDhTW86IQ4w1zdmiAgDu0qIcCao7CAdJEz6v9BFw1 +7GC8eyRpHI1Vk2A5MVXk3ikswjBNRDZb39eK4chmhXFd/LY4iMXB5+hHzDfJ6V0T +QdlRWGTCAeGop3ZKw363WDMwyYmzuIu3al/PaiPkh07KjWmsNCdiSUMT9bkSAxge +/RY/u+k/Szfem+/0J+fjLKP6QvDxjqmexy2hJa8XRFY2hpFkaxfJrUCZ7U0tYFJ/ +cmc+3616hZsfojrS8VV/IDSMATg5IBuSA+a94JL8+Sd2RVt8Yq0wTJOUJM94MUgO +xeBichIrpHU32cQxakjqUJKx7vXBHzcqum8E/lkhKj01G92MEIOxd4t83nLoOnLl +oEoNAHe0oUKjVD3REGxO8Dmtv+9v/3IVP0HBwUVxUIRo5xE+Vgs= +=YcCw +-----END PGP SIGNATURE----- diff --git a/dd_rescue-1.99.16.tar.bz2 b/dd_rescue-1.99.16.tar.bz2 new file mode 100644 index 0000000..24fdf72 --- /dev/null +++ b/dd_rescue-1.99.16.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5b501eaa933a1cbcfaa60e862d1430901610b77a6bb47736b9a37262d5ad8f7d +size 190351 diff --git a/dd_rescue-1.99.16.tar.bz2.asc b/dd_rescue-1.99.16.tar.bz2.asc new file mode 100644 index 0000000..0c00d5b --- /dev/null +++ b/dd_rescue-1.99.16.tar.bz2.asc @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNATURE----- + +iQIzBAABCgAdFiEEZmn3NA0x6V7FVlSQ3k8bOiv/xb8FAmb5xNcACgkQ3k8bOiv/ +xb/zRQ/+LSqrJsDaJdFvIgj1aFS1bgnI7STrOOBzjfpOsoiMGo5VTPe+qmquu+/f +8WZOvkA8IJP+1AtJ/x9JmAYSuSWK9tENywMHNz8e2xP2f9vgKZmUdNxRnWgmobq/ +iYwpwbBNJtcNtv3MFw7Fc6Td3YLdOpztzm2qHJ4L7BGOnSECQC9UQzd4gAC/keMc +bthRkLQc/AOn6BM5Rx0V4eEo9iSSABKiCPmADetxlCJ7oPYTS41U6tvWU6uZGTjZ +Peq7BYaPLgdArQhprRtfYi7FXzIYCCX/1kJXuo1Robs2DWiocwyWltUGlsobxRE6 +H6owsvqR1e3Y6TsT8XawgMVKbXX6zFUulCvPd8CkMMHshOHHlsswHlvzuwh1MMDA +DplOUdoCAI5AJMzP1Ui+L0UtV3eOIHlqdvcQhtX8vPxJDIR7uwhaA//QT8kTgfaT +p5hYzQIwpHlhu4uo9qcqcJAb+/BCe7yPGuwy+Hcqu56fyGig1Cogc/oVOCTkNTzK +3VHiWEO0xC5+v7NGFLrWCWhF1TLyU9QLieeAmrfAdzt8xjmqy4c0bWWfSSEl6mFF +9ZPdRazcYRU0ABlIxwhJ80TpCiOh2gAHs7VBTA5fcdpdozDb8e5T3h7pV5EItOhN +kIUALQEarT6t2/YFICC2bjDWZE0tJGE7aBBYtDYKX78zDWybO2c= +=Joi7 +-----END PGP SIGNATURE----- diff --git a/dd_rescue-md5-unaligned-armv7.diff b/dd_rescue-md5-unaligned-armv7.diff new file mode 100644 index 0000000..1c11d03 --- /dev/null +++ b/dd_rescue-md5-unaligned-armv7.diff @@ -0,0 +1,44 @@ +commit 19da344403f9d340d7343e99df6ec3e4b79684d9 +Author: Kurt Garloff +Date: Sun Mar 3 21:53:21 2024 +0100 + + Trouble is that we don't detect that ARMv7 requires extra buffering + is md5 input is not properly aligned. gcc-12 apparently is clever enough + to handle unlaigned memory access for us, which makes us succeed in the + testcase. It's not clever enough to also succeed in md5_64() :-O + + Signed-off-by: Kurt Garloff + +diff --git a/configure.ac b/configure.ac +index d99387c..7a7dccf 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -60,7 +60,7 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[ + AC_DEFINE_UNQUOTED([HAVE_REP_NOP], 1, + [check whether asm rep nop works]) + ],[ +- AC_MSG_RESULT(yes) ++ AC_MSG_RESULT(no) + ],[ + AC_MSG_RESULT(no -- cross compiling) + ]) +@@ -79,7 +79,7 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[ + AC_DEFINE_UNQUOTED([HAVE_LFENCE], 1, + [check whether asm lfence works]) + ],[ +- AC_MSG_RESULT(yes) ++ AC_MSG_RESULT(no) + ],[ + AC_MSG_RESULT(no -- cross compiling) + ]) +@@ -171,6 +171,10 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[ + fprintf(stderr, "Debug: Off %i, Ptr %08lx\n", off, (unsigned long)ptr); + copy((int*)b2, (const int*)ptr, 4); + fprintf(stderr, "Ints: %08x %08x %08x %08x\n", *(int*)b2, *(int*)(b2+4), *(int*)(b2+8), *(int*)(b2+12)); ++ /* HACK: Somehow this test does no longer trigger with gcc-12 on armhf, but it should */ ++ #ifdef __arm__ ++ return 1; ++ #endif + return 0; + } + ]])],[ diff --git a/dd_rescue-ossl3-evpcipherctx.diff b/dd_rescue-ossl3-evpcipherctx.diff new file mode 100644 index 0000000..39c7504 --- /dev/null +++ b/dd_rescue-ossl3-evpcipherctx.diff @@ -0,0 +1,26 @@ +commit ce925927fdcc5e41f1a8975f31405f913a6583d1 +Author: Kurt Garloff +Date: Wed Feb 28 22:49:18 2024 +0100 + + Adjust struct _evp_cipher_ctx_st to openssl-3.0.6+. + + This is only done if the version is indeed >= 3.0.6. + It's only relevant on 32bit, as the alignment rules on 64bit + do hide this difference. + + Signed-off-by: Kurt Garloff + +diff --git a/aes_ossl11.c b/aes_ossl11.c +index 2fa4468..e450f4e 100644 +--- a/aes_ossl11.c ++++ b/aes_ossl11.c +@@ -45,6 +45,9 @@ struct _evp_cipher_ctx_st { + /* FIXME: Should this even exist? It appears unused */ + void *app_data; /* application stuff */ + int key_len; /* May change for variable length cipher */ ++#if OPENSSL_VERSION_MAJOR >= 3 && (OPENSSL_VERSION_MINOR > 0 || OPENSSL_VERSION_PATCH >= 6) ++ int iv_len; /* IV length */ ++#endif + unsigned long flags; /* Various flags */ + void *cipher_data; /* per EVP data */ + int final_used; diff --git a/dd_rescue-u-emptyout-segfault.diff b/dd_rescue-u-emptyout-segfault.diff new file mode 100644 index 0000000..ffc7d7c --- /dev/null +++ b/dd_rescue-u-emptyout-segfault.diff @@ -0,0 +1,21 @@ +commit 250bf8baf8d7a59d09a8ef48d966019972d3ee5a +Author: Kurt Garloff +Date: Mon Aug 12 15:19:09 2024 +0200 + + Prevent segfault with -u and empty output filename. + + Signed-off-by: Kurt Garloff + +diff --git a/dd_rescue.c b/dd_rescue.c +index 92f81d0..2d32084 100644 +--- a/dd_rescue.c ++++ b/dd_rescue.c +@@ -1466,7 +1466,7 @@ int real_cleanup(opt_t *op, fstate_t *fst, progress_t *prg, + copyxattr(op->iname, op->oname); + copytimes(op->iname, op->oname); + } +- if (op->rmvtrim) ++ if (op->rmvtrim && op->oname) + remove_and_trim(op->oname, op); + LISTFOREACH(ofiles, of) { + if (op->preserve) { diff --git a/dd_rescue.changes b/dd_rescue.changes new file mode 100644 index 0000000..6413c96 --- /dev/null +++ b/dd_rescue.changes @@ -0,0 +1,897 @@ +------------------------------------------------------------------- +Sun Sep 29 20:48:16 CEST 2024 - kurt@garloff.de + +- Update to dd_rescue-1.99.16: + * Refactoring: Move CPU feature detection to archdep.c. + * libddr_cypt: Support passing in password via pipe and passfd= + * Add testcase for this + * Support sha256 acceleration on x86-64 and armv8. + * Improve detection of armv8 crypto (aes) acceleration (32bit). + +------------------------------------------------------------------- +Tue Sep 17 15:28:10 CEST 2024 - kurt@garloff.de + +- Update to dd_rescue-1.99.15: + * Build issue: Detect pread64() and pwrite64() support separately + and provide individual replacement functions. + Thanks to David Geiger for reporting (Mageia). + * Bugfix: printstatus() would not be called with odd offsets, + resulting in missing progress report and missing sync (-y) and + write throttling (-C). + * Optimization: Some unrolling for the hash functions gives up to + 10% better performance (on Zen4). + * Optimization: Rationalize prefetching for hash functions and + clear memory after using (avoid cleartext data on the stack). + * Optimization: Save function calls for fault injection and for + graph updates when unneeded. + * Usability: Better handle progress update frequency. + * Build improvement: Add -target linux-aarch64/arm-android28 + automatically where needed. + * Drop: ddr-autoconf-no-fortify.diff (included upstream). + +------------------------------------------------------------------- +Thu Aug 22 22:12:51 CEST 2024 - kurt@garloff.de + +- Avoid setting _FORTIFY_SOURCE in configure script, it may + conflict with flags passed in otherwise (e.g. rpmbuild). + +------------------------------------------------------------------- +Thu Aug 22 20:31:00 CEST 2024 - kurt@garloff.de + +- Update to dd_rescue-1.99.14: + * Drop patches dd_rescue-u-emptyout-segfault.diff:, + dd_rescue-fuzz-test-more-err.diff:, + dd_rescue-md5-unaligned-armv7.diff:, + dd_rescue-ossl3-evpcipherctx.diff: All integrated upstream. + * Fix detection of LFS function availability for musl. + * Include headers and settings to make it work on musl. + * Replaced basename() with mybasename.h. + * Prefetch lookup table for sha hashing. + * Fix verbose output when falling back to small blocksize. + * Fix clearing of errno (unaligned writes at EOF on musl) +- Final tarball with fixes for Android Makefiles. + +------------------------------------------------------------------- +Mon Aug 12 15:52:05 CEST 2024 - kurt@garloff.de + +- dd_rescue-u-emptyout-segfault.diff: Prevent (cosmetic) segfault + in cleanup path with option -u and empty output file name. + +------------------------------------------------------------------- +Sun Mar 3 22:47:17 CET 2024 - kurt@garloff.de + +- dd_rescue-md5-unaligned-armv7.diff: gcc-12 does make unaligned + accesses on armv7 work sometimes, which breaks a configure test + and then makes the make check fail with SIGBUS when using hash + after lzo compression. Hardcode knowledge about armv7. +- Drop %setup (not needed if using %autosetup, thanks Valentin!) +- Mention [bsc#1219882], as suggested by Valentin Lefebvre. + +------------------------------------------------------------------- +Thu Feb 29 09:20:59 CET 2024 - kurt@garloff.de + +- Fix openssl version detection for 3.0.x. +- dd_rescue-ossl3-evpcipherctx.diff: There's an additional field + in the (private) struct _evp_cipher_ctx_st in openssl-3 since + 3.0.6, which makes a difference on 32bit. (On 64bit, the effect + is hidden by the compiler's alignment rules.) + +------------------------------------------------------------------- +Wed Feb 28 20:21:01 CET 2024 - kurt@garloff.de + +- Specify libopenssl-devel as BuildRequirements. This will select + openssl-3 on new distributions. + This fixes [bsc#1219882]. + +------------------------------------------------------------------- +Fri Mar 17 08:54:11 CET 2023 - kurt@garloff.de + +- Readd detached signature. + +------------------------------------------------------------------- +Tue Feb 28 09:44:46 UTC 2023 - Dirk Müller + +- temporarily remove not-really-detached-signature + +------------------------------------------------------------------- +Fri Feb 24 09:37:35 CET 2023 - kurt@garloff.de + +- Update to 1.99.13: + * Drop fuzz-lzo-* patches, as they have been merged upstream. + * Allow overriding strip binary (not used in this build). + * Make -fanalyzer more happy: abort() and assert()ions to ensure + we always react to failed memory allocations. + * ddr_hash: Support reading/writing checksums from stdin/out "-". + * Fix aliasing issue with XORN function (in aes.h), spotted by + gcc-13: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108695 + Drop workaround from Martin Liška again. + * Higher optimization level for aes.c driver is beneficial for + key setup speed. + +------------------------------------------------------------------- +Wed Feb 8 16:00:38 UTC 2023 - Martin Liška + +- Disable strict aliasing due to its violation: + https://sourceforge.net/p/ddrescue/tickets/6/ + +------------------------------------------------------------------- +Tue Dec 27 10:31:33 UTC 2022 - Ludwig Nussel + +- Replace transitional %usrmerged macro with regular version check (boo#1206798) + +------------------------------------------------------------------- +Tue Jul 26 19:55:25 CEST 2022 - kurt@garloff.de + +- Update to dd_rescue-1.99.12: + * Works with openssl-3.0 now (using EVP_Cipher_Init to set IV). + * openssl-1.1 performs significantly better so we keep building + against it if available. + * nosalthdr option for libddr_crypt for compatibility with + openssl-3, no longer writing header when salt is passed. + * ARMv7 crypto support successfully compiles with clang now. +- Drop no-python2.patch (included in dd_rescue-1.99.12). + +------------------------------------------------------------------- +Mon Dec 6 14:21:06 UTC 2021 - Dirk Müller + +- build against openssl 1.1 (bsc#1193438) + +------------------------------------------------------------------- +Sat May 22 11:08:06 UTC 2021 - Matej Cepl + +- Don't break compatibility with SLE-12 + +------------------------------------------------------------------- +Mon May 17 09:47:33 UTC 2021 - Matej Cepl + +- Add no-python2.patch to remove the dependency on Python 2 + (sf#ddrescue#4). + +------------------------------------------------------------------- +Thu Apr 29 21:15:14 CEST 2021 - kurt@garloff.de + +- Update to dd_rescue-1.99.11: + * Drop (backported) checksum_file-clear-errno.diff. + * Minor scheduling improvements for x86_64 and ARM asm. + * Work around compiler weirdness, passing two in/out parameters + in the same register (when they are provably the same), + causing x2 breakage on armv7. + * 256bit VAES support on x86-64 (0.23 cycles/byte on Zen3!). + * Needed to compile aesni twice for this, once with avx. + * Full asm versions for (non-x2) CTR and CBC on arm64 + (achieving 0.40 cycles/byte on Cortex X-1). + * Avoid test failures with incompressible tweak in fuzz_lzo. + * test_aes improvements: Options, help, IV comparison, memcpy. + * Full crypto test coverage 0 -- 130 bytes len. + * Code safety against len==0 en/decryption. + +------------------------------------------------------------------- +Tue Mar 9 19:00:02 CET 2021 - kurt@garloff.de + +- checksum_file-clear-errno.diff: Avoid stale errno to be picked + up and report an error without any error actually occuring. + (This lead to occasional build fails on armv7 on Ubuntu 20.04 + and Fedora 32/33, nowhere else.) + +------------------------------------------------------------------- +Mon Mar 8 09:50:58 CET 2021 - kurt@garloff.de + +- Update to dd_rescue-1.99.10: + * Improve memory clobbers: Ensure we specify full array lengths + used as input to asm (boo#1181402). + * Improve ARM64 crypto by better insn scheduling in CTR calc, + avoiding dependencies and local vars (+40% performance!). + * Apply all ARM64 improvements also to ARMv8 crypto on ARM32. + * Fix warning int formatting on unaligned crypto. + * Address warnings on outdated autoconf usage. + +------------------------------------------------------------------- +Mon Mar 1 08:05:09 CET 2021 - Kurt Garloff + +- Update to dd_rescue-1.99.9: + * Includes aliasing fixes from boo#1181402. + * Additional mem clobbers for asm statements (boo#1181402). + * LTO disablement still needed (boo#1176219) on arm due to + differences in compiler flags (-march) per object. + * Fix dependency generation on PPC (preprocessing intrinsics). + * Support xattr decls in sys/xattr.h in addition to attr/xattr.h. + * More stringent check of mem alloc return values. + * Free all memory in error path before exiting (cosmetic). + * Don't need global variable in probe function. + * drop ddr_1998-alg-caseindep.diff, ddr_1998-check-nofail-noxattr.diff, + ddr_1998-ossl11-warn.diff, ddr_1998-sysrandom.diff, + ddr_1998-testhole.diff: patches all merged (they were backports) +- drop fix-aliasing-aarch64.patch: obsolete (fixed differently in new version) + +------------------------------------------------------------------- +Mon Feb 22 10:40:53 UTC 2021 - Guillaume GARDET + +- Revert last commit and fix bug boo#1181402 with a proper patch: + * fix-aliasing-aarch64.patch + +------------------------------------------------------------------- +Thu Jan 28 22:41:26 UTC 2021 - Dirk Müller + +- build with -fno-strict-aliasing on aarch64 to workaround (bsc#1181402) + +------------------------------------------------------------------- +Wed Jan 13 09:31:27 UTC 2021 - Dirk Müller + +- spec-cleaner run + +------------------------------------------------------------------- +Mon Oct 19 16:01:24 UTC 2020 - Ludwig Nussel + +- prepare usrmerge (boo#1029961) + +------------------------------------------------------------------- +Thu Sep 3 08:07:30 UTC 2020 - Guillaume GARDET + +- Disable LTO on %arm and aarch64 to fix UnitTests - boo#1176219 + +------------------------------------------------------------------- +Wed May 13 06:30:40 UTC 2020 - Josef Möllers + +- Dropped build dependency on libfallocate-devel as fallocate64 is + now in glibc and thus libfallocate is not required any more. + [dd_rescue.spec, jsc#SLE-11887] + +------------------------------------------------------------------- +Mon Apr 6 09:17:38 UTC 2020 - Martin Liška + +- Run tests with -fcommon in order to fix boo#1160261. + +------------------------------------------------------------------- +Thu Sep 20 13:16:41 UTC 2018 - schwab@suse.de + +- Avoid running dependency generation which can produce spurious errors +- Use %license + +------------------------------------------------------------------- +Sat May 12 12:06:29 CEST 2018 - kurt@garloff.de + +- ddr_1998-sysrandom.diff: Use getrandom() decl from sys/random.h. +- ddr_1998-testhole.diff: Ensure we have a hole before testing hole + encryption (fixes bsc#1092758). +- ddr_1998-ossl11-warn.diff: Avoid warn from memcpy to openssl-1.1 + to EVPCTX* internals. + +------------------------------------------------------------------- +Tue Apr 17 15:46:16 CEST 2018 - kurt@garloff.de + +- ddr_1998-alg-caseindep.diff: + * Use case-independent matching for algorithm names (hash, crypt). +- ddr_1998-check-nofail-noxattr.diff: + * Make testsuite succeed for builds w/o xattr support. + +------------------------------------------------------------------- +Sun Dec 3 22:11:29 CET 2017 - kurt@garloff.de + +- Update to 1.99.8: + * Support openssl-1.1 (patch from Marcus Meissner), patch + dd_rescue-openssl11.patch has been merged and is thus dropped. + * cryptalgo->recycle to reuse crypto context (neeeded for openssl) + * Fix memleak in test_aes + * Use test_aes in check target to ensure all algorithms work + * Use std probe mech in test_aes, so we don't fail with SIGILL + * Fix build without openssl + +------------------------------------------------------------------- +Wed Nov 29 17:25:01 UTC 2017 - meissner@suse.com + +- dd_rescue-openssl11.patch: ported to openssl 1.1 (bsc#1070369) + +------------------------------------------------------------------- +Fri Nov 10 15:08:21 CET 2017 - kurt@garloff.de + +- Update to 1.99.7: + * Work around gentoo dash echo -n breakage (reported by whissi). + * Optimize away strlen() calls in format_int. + +------------------------------------------------------------------- +Sat Nov 4 10:29:09 CET 2017 - kurt@garloff.de + +- Update to 1.99.7-pre2: + * ddr_crypt: compat for openssl enc -md sha256 KDF (openssl 1.1 + default) with new opbkdf11 option + +------------------------------------------------------------------- +Thu Nov 2 17:22:06 CET 2017 - kurt@garloff.de + +- Update to 1.99.7-pre: + * Fix for segfault on multi-overwrite with -2/-3/-4. + +------------------------------------------------------------------- +Mon Sep 4 23:25:28 CEST 2017 - kurt@garloff.de + +- libddr_hash-round-down-static.diff: Mark inline function static. + +------------------------------------------------------------------- +Fri Aug 25 15:19:24 CEST 2017 - kurt@garloff.de + +- Update to dd_rescue-1.99.6: + * Merge previous SSE2 detection patch from Michael Matz. + * Support calculating and validating checksums in the S3 + multipart format. + +------------------------------------------------------------------- +Thu Aug 10 16:05:11 UTC 2017 - matz@suse.com + +- Add dd_rescue-i586-sse2.diff to fix dd_rescue compile and + runtime problems when GCC defaults to SSE2 also on i586 + like with SLE-15. + +------------------------------------------------------------------- +Tue May 30 13:52:48 UTC 2017 - tchvatal@suse.com + +- Cleanup a bit the dependencies + * Run %configure as separate comand properly in build phase +- Remove support for < 12.0 +- Add condition for openSSL to build with verison 1.0.0 on Factory + +------------------------------------------------------------------- +Thu Dec 29 22:27:17 CET 2016 - kurt@garloff.de + +- Update to dd_rescue-1.99.5: + * Merge the two gcc7 patches from Martin Liska. + * Better transfer length estimate (thus better progress report) + * Optional ratecontrol (throttle transfer speed) + * fmt_no was unsafe against undetermined length (pre=0) and + visible digit grouping characters, resulting in memory + corruption when using a -b logfile. Thanks to Marc Thomas + for reporting and debugging! + * A few more minor cleanups and bugfixes. + * Fix segfault with graph in reverse direction with + too large transfer limit. + * Fix build with AES but not AVX2 support. +- Update to dd_rescue-1.99: + * ddr_crypt plugin: Add support for ARMv8 aes hardware acceleration + (works as well in 32bit mode). + * ddr_crypt: Fix CTR iv initialization. + * ddr_crypt: Support for openSSL Salted__ header. + * Support ranges in fault injection. + * Clean up write retry logic. + * Improved documentation, Makefiles and test coverage. + +------------------------------------------------------------------- +Fri Dec 23 09:26:20 UTC 2016 - mliska@suse.cz + +- Add gcc7-fix-htonl.patch patch. + +------------------------------------------------------------------- +Fri Dec 9 11:56:45 UTC 2016 - mliska@suse.cz + +- Add gcc7-static-inline.patch. + +------------------------------------------------------------------- +Sun Jun 7 10:20:47 CEST 2015 - kurt@garloff.de + +- Add three missing doc files. + +------------------------------------------------------------------- +Sat May 30 09:58:37 CEST 2015 - kurt@garloff.de + +- Update to dd_rescue-1.98: + * Fix AESNI detection (x86) + * Avoid test failures due to insufficient entropy + +------------------------------------------------------------------- +Fri May 29 22:23:54 CEST 2015 - kurt@garloff.de + +- Update to dd_rescue-1.98pre: + * crypt plugin: Encrypt and decrypt the data stream using various + AES variants. There are -CBC, -ECB, -CTR stream ciphers, and + 128, 192, 256 bit variants, also with enhanced number of rounds, + and with twice the rounds. Keys can generated, saved, or derived + from password with salt. On x86, the hardware AES support is + used if featured by the CPU. + * Speed up PRNG generation. + * Fault injection framework for testing. + * Some minor improvements of the plugin interface and fixes all + over the place. + +------------------------------------------------------------------- +Thu May 21 17:53:19 UTC 2015 - mpluskal@suse.com + +- Add gpg signature and keyring +- Cleanup spec file with spec-cleaner + +------------------------------------------------------------------- +Thu Feb 5 08:07:26 UTC 2015 - coolo@suse.com + +- include the .changes file in the .src.rpm as its used during build + +------------------------------------------------------------------- +Sat Aug 9 23:26:59 CEST 2014 - kurt@garloff.de + +- Update to dd_rescue-1.46: + * Support for HMAC creation/verification in ddr_hash module. + * Mix rdrand into seed if 0 is specified and if available. + +------------------------------------------------------------------- +Tue May 27 13:45:42 CEST 2014 - kurt@garloff.de + +- Update to dd_rescue-1.45: + * ddr_hash: Fix potential sha512/sha384 buffer overflow. + * ddr_hash: Support sha1 + * ddr_hash: Support checking and storing hash in xattrs and + md5sum/sha256sum/... style files. + * New ddr_null plugin. + +------------------------------------------------------------------- +Fri May 23 11:25:20 CEST 2014 - kurt@garloff.de + +- Update to dd_rescue-1.44: + * MD5 plugin has been renamed to hash, reflecting that it supports + sha1, sha256, sha224, sha512, sha384 now as well. + +------------------------------------------------------------------- +Fri May 23 09:56:10 CEST 2014 - kurt@garloff.de + +- dd_rescue-1.43-1.43.1.diff: Delete (integrated upstream) +- dd_rescue-fix_insn_probe.diff: Delete (integrated upstsream) + +------------------------------------------------------------------- +Wed May 21 10:44:18 CEST 2014 - kurt@garloff.de + +- dd_rescue-1.43-1.43.1.diff: Document 256kiB limit of lzop in + man page, output warning in ddr_lzo and respect limit in test + suite. + +------------------------------------------------------------------- +Tue May 20 09:29:40 CEST 2014 - kurt@garloff.de + +- Update to 1.43-final: Make make check succeed without lzop. + +------------------------------------------------------------------- +Mon May 19 21:03:04 CEST 2014 - kurt@garloff.de + +- Update to 1.43-pre: + * Fix bug in extend, which previously would disallow to append + more data than existed before. + * Some minor improvements on messages and manpage. + * ARMv8 (AArch64) optimized find_nonzero for fast zero-block + detection. + * Significant rework of plugin interface, leading also to some + refactoring of option parsing and passing. + * Refactoring of MD5 plugin, improving tolerance against holes + e.g. at the end of a file. Better test coverage. Consistent + message prefix. output option to produce md5sum check files. + * Add libddr_lzo plugin, allowing transparent de/compression + of the data. Supports sparse files, appending, ... and a variety + of algorithms and has a number of ways to handle somewhat + damaged files. With the lzo1x_ algorithms, it's compatible with + lzop. Comes with a good number of tests and an own fuzzer to + test robustness of the decompressor. Shipped with an own man + page and is packaged into the dd_rescue-lzo sub package. + +------------------------------------------------------------------- +Sat Mar 8 18:58:56 CET 2014 - kurt@garloff.de + +- dd_rescue-fix_insn_probe.diff: Brings dd_rescue to 1.42.1, + fixing the process' signal mask after SIGILL delivery (probing), + an issue related to the longjmp() signal handler return fix + to bnc#860779. +- Update to dd_rescue-1.42: + * Addition of plugin interface + * MD5 plugin + * Use posix_fadvise() if available + * Short usage message rather than full help on error +- Update to dd_rescue-1.41: + * Support for building against Andoid NDK + * Consistent use of (improved) int no formatting functions + * Fix off-by-one block dev size issue (cosmetic) + * Enable AVX2 optimized sparse block detection + * Refactored CPU feature detection and selection + * New option -u/--rmvtrim to delete output file and issue fstrim +- Remove suboptimal fix for bnc#860779, it's fixed properly + upstream by returning with longjmp() from the signal handler. + +------------------------------------------------------------------- +Tue Feb 11 14:00:38 UTC 2014 - bwiedemann@suse.com + +- disable SSE2 on i586 (bnc#860779) + +------------------------------------------------------------------- +Thu Aug 18 23:52:41 CEST 2013 - kurt@garloff.de + +- Update to dd_rescue-1.40: + * Copy xattrs on -p/--preserve + * For odd file offsets, do odd-sized write first, so subsequent + writes are aligned. + * Support half-empty block sparse detection and double softbs + default for buffered IO. + * Add a lot more test cases to make check. + +------------------------------------------------------------------- +Thu Aug 8 13:59:39 CEST 2013 - kurt@garloff.de + +- Update to dd_rescue-1.39: + * Fix an issue with the last block being appended zeros if + hardbs==softbs (bnc #833765). + * A little ARM asm speedup (~15%) for sparse detection. + * Clarify help/man page w.r.t. interpretation of -y/--syncfreq. + * We use autoconf for feature detection now. +- Build version with libdl by default now. + +------------------------------------------------------------------- +Fri Aug 2 22:05:52 CEST 2013 - kurt@garloff.de + +- Update to dd_rescue-1.38: + * Further optimized SSE2 sparse detection. (Also added AVX2 + version, not enabled by default though.) + * --force allows to ignore non-seekable output with non zero + output position. + * make check does some testing ... + * improved cur.rate and ETA calculation. + +------------------------------------------------------------------- +Thu Aug 1 22:02:16 CEST 2013 - kurt@garloff.de + +- Update to dd_rescue-1.37: + * Important bugfix for SSE2 sparse detection. + * Fix exact zero-length on big endian machines (irrelevant). + +------------------------------------------------------------------- +Wed Jul 24 16:58:13 CEST 2013 - kurt@garloff.de + +- Update to dd_rescue-1.36: + * Fix overflow with avg.load display + * Enable SSE2 on (32bit)x86 with runtime detection + * Add optimized zero block detection on ARM (3x faster with asm ...) + +------------------------------------------------------------------- +Wed Jul 17 22:30:40 CEST 2013 - kurt@garloff.de + +- Update to dd_rescue-1.35: + * Better readability for reports with (optional) colors and rate + limitation on progress updates. + * Simple rewrite logic. + * SSE2 optimized version for finding zero blocks (sparse detection). + +------------------------------------------------------------------- +Sun Jul 7 17:09:32 UTC 2013 - asterios.dramis@gmail.com + +- Update to version 1.34: + * Better support for various *nix systems (specifically has a few fixes for + FreeBSD). + * Better compatibility with compilers (clang and g++ and clang++). + * It can now also load libfallocate at runtime (libdl). + * Detects a few more fatal write errors as such. + +------------------------------------------------------------------- +Sun May 26 17:22:08 UTC 2013 - asterios.dramis@gmail.com + +- Update to version 1.33: + * Long options + * New double overwrite mode (-2) + * Man page added + +------------------------------------------------------------------- +Mon Feb 11 00:15:58 CET 2013 - kurt@garloff.de + +- Update to dd_rescue-1.32: + * New option -x to append to outfile. + * New option -Y (can be used multiple times) to specify 2ndary + output files. + +------------------------------------------------------------------- +Sun Feb 3 21:54:54 CET 2013 - kurt@garloff.de + +- Update to dd_rescue-1.31: + * Some minor output cleanups. + * Implementation of safe triple overwrite (options -3 and -4) + following BSI GSDS M7.15. +- Update to dd_rescue-1.30: + * Fix issue with double free (1.29) + * Fix output to stdout ("-") + * Rationalize messages a bit. + * Option to init PRNG from file (e.g. -Z /dev/urandom) + * Option -W to avoid writes (if output block is identical) +- Update to dd_rescue-1.29: + * Correctly handle last bytes before EOF when hardbs == softbs. + * New option -M (dont extend output file). + * New option -R (repeated output of one block, auto for dev/zero) + * New options -z x, -Z x to use userspace pseudo RNG to overwrite + disks / files with random data. + +------------------------------------------------------------------- +Sat May 26 10:10:51 UTC 2012 - zaitor@opensuse.org + +- Update to version 1.28: + * Better defaults for hard and softblock sizes (4k/64k for + buffered I/O, 512/1M for direct IO). + * Copying of access times with the option -p fixed. + +------------------------------------------------------------------- +Sat May 19 18:49:20 UTC 2012 - asterios.dramis@gmail.com + +- Update to version 1.27: + * Allow to do 512b direct IO (which is possible in latest Linux kernels). + Change posix_memalign() variable assignment. It has a number of fixes; most + importantly, when exiting because of an error, it updates the variables + that are output. dd_rescue now avoids special characters in the logfile. It + handles situations gracefully, where wrong positions resulted in the + progress graph causing faults. Some come from illegal input (negative + offset ...), which is now detected. + +------------------------------------------------------------------- +Mon Mar 12 17:42:25 UTC 2012 - asterios.dramis@gmail.com + +- Update to version 1.25: + * Fix for spurious "Success" messages that resulted from overwritten + (cleared) errno. Bad blocks are formatted in a way that they are not + overwritten on screen and block numbers are output as unsigned. +- Removed dd_rhelp from the package (dd_rhelp will become a separate package. A + recommended entry for dd_rhelp was added in dd_rescue). +- Spec file updates: + * Updated License: to "GPL-2.0 or GPL-3.0". + * Removed bc from BuildRequires: (not needed since dd_rhelp was removed). + +------------------------------------------------------------------- +Tue Feb 7 21:51:22 UTC 2012 - rschweikert@suse.com + +- place binaries in /usr tree (UsrMerge project) + +------------------------------------------------------------------- +Wed Oct 5 12:52:27 CEST 2011 - garloff@suse.de + +- Update to dd_rescue-1.24: + * Handle directory as output filename (append input basename). +- Fix dd_rhelp.test script and add to %check. + +------------------------------------------------------------------- +Sun Sep 18 17:17:12 UTC 2011 - jengelh@medozas.de + +- Remove redundant tags/sections from specfile + (cf. packaging guidelines) + +------------------------------------------------------------------- +Sat Sep 3 20:31:45 UTC 2011 - asterios.dramis@gmail.com + +- Spec file updates: + * Changed License: to GPL-2.0 (bnc#714914). + * Minor other updates. + +------------------------------------------------------------------- +Sat May 14 19:15:25 UTC 2011 - asterios.dramis@gmail.com + +- Update to dd_rhelp-0.1.2: + * IMPROVEMENT : will check the log file destination for sane conditions and + will try some other locations if not. + * IMPROVEMENT : will manage max_err parameter to avoid creating to much + chunks. + * More and better information displayed at 'info' time. + From dd_rhelp-0.1.0: + * INSTALL : No more ./configure && make && make install ... all detection + were done at runtime anyway + * UPDATE : updated libs provided in dd_rhelp + * UPDATE : finally compatible with recent tail/head "-n" arguments + * Added some sanity tests. + * TEST : Started to create dd_rhelp.test which unit tests dd_rhelp. +- Spec file updates: + * Changes based on rpmdevtools templates and spec-cleaner run. + * Added description for the patches based on openSUSE Patches Guidelines. + * Added a fix inside the spec file to remove build time references + * dd_rhelp no longer needs auto* tools. + * Minor other updates. +- Removed dd_rhelp_src.diff patch (fixed upstream). +- Rebased the other patches to apply cleanly. + +------------------------------------------------------------------- +Tue Nov 2 23:55:27 CET 2010 - garloff@suse.de + +- Move autoconf/configure stuff to %build section. + +------------------------------------------------------------------- +Thu Oct 14 11:22:30 CEST 2010 - garloff@suse.de + +- Adapt BuildRequires to new naming of libfallocate-devel-static. + +------------------------------------------------------------------- +Mon Oct 11 23:23:50 CEST 2010 - garloff@suse.de + +- dd_rescue-1.23: + * A short read (because of EOF) is not regarded an error anymore. + This fixes confusing exit codes as well as non-quietness for -q. + * We now REALLY default to -y0. + +------------------------------------------------------------------- +Thu Sep 9 01:04:55 CEST 2010 - garloff@suse.de + +- dd_rescue-1.22: + * Display compiler, compile time, enabled options. + * If hardbs == softbs, don't repeat copy attempts. + * Fix FPE in progress bar for non-seekable input reverse copy. + * Document some of the goodies in the README. + * Make code more digestable for non-GCC compilers, optional + fallbacks for strsignal, pread, pwrite. + +------------------------------------------------------------------- +Mon Aug 30 23:46:30 CEST 2010 - garloff@suse.de + +- dd_rescue 1.21: + * Display warnings when using sparse writing. + +------------------------------------------------------------------- +Sun Aug 22 16:56:51 CEST 2010 - garloff@suse.de + +- dd_rescue 1.20: + * Update docs to document the overwrite disk with itself case + * Also display progress bar if we know that the copy size due + to -m. + +------------------------------------------------------------------- +Sat Aug 21 21:23:19 CEST 2010 - garloff@suse.de + +- Really fix dd_rhelp to not break on new Summary line. + +------------------------------------------------------------------- +Sat Aug 21 19:11:18 CEST 2010 - garloff@suse.de + +- Update to dd_rescue-1.19: + * Fix 32bit screwup with display of total amount of date to copy + * Support fallocate (using libfallocate) with -P (Prealloc) + * More consistent use of ddrescue: (info): prefix (splice, Summary) + * dd_rhelp adjusted for Summary change. + +------------------------------------------------------------------- +Fri Aug 13 23:18:30 CEST 2010 - garloff@suse.de + +- Update to dd_rescue-1.18: + * Change default for sync to -y0. +- Update to dd_rescue-1.17: + * Display progress bar, percent completion and ETA + * Better estimte current vs. avg speed + * Exit on ENOSPC on target + * Warn ONCE on EINVAL for fsync +- Update to dd_rescue-1.16: + * Determine and display total amount of data to copy + +------------------------------------------------------------------- +Fri Aug 13 21:45:00 CEST 2010 - garloff@suse.de + +- Adjust dd_rhelp to changes in dd_rescue. + +------------------------------------------------------------------- +Fri Aug 13 18:06:17 CEST 2010 - garloff@suse.de + +- Update to dd_rescue-1.15: + * Support for splice() to do zerocopy file copies + * Better information on warnings and errors + * Avoid repeated warning on fsync returning EINVAL + +------------------------------------------------------------------- +Fri Aug 13 17:59:31 CEST 2010 - garloff@suse.de + +- Rename package to dd_rescue. + +------------------------------------------------------------------- +Wed Aug 29 23:04:53 CEST 2007 - garloff@suse.de + +- Update to dd_rescue-1.14: + * Fix bug with sparse (-a) mode that could lead to the target + file not having the correct size. + +------------------------------------------------------------------- +Mon Mar 19 06:34:24 CET 2007 - garloff@suse.de + +- Update to dd_rescue-1.13: + * Write full block of '0' for read errors and non-seekable + output. (#255671) + +------------------------------------------------------------------- +Tue Nov 7 00:59:36 CET 2006 - garloff@suse.de + +- dd_rhelp: head/tail require -n option (thanks to Bryant Ling) +- dd_rhelp: Use -y0 if ddrescue is 1.12 or newer. +- dd_rhelp: Require bc. + +------------------------------------------------------------------- +Sat Jul 29 00:39:45 CEST 2006 - garloff@suse.de + +- Update to dd_rescue-1.12: + * Option -b: Log bad blocks to ASCII file + * Option -y: Change fsync frequency (performance) + +------------------------------------------------------------------- +Mon May 22 21:03:22 CEST 2006 - schwab@suse.de + +- Don't strip binaries. + +------------------------------------------------------------------- +Wed Jan 25 21:35:25 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Mon Feb 21 12:23:08 CET 2005 - garloff@suse.de + +- Add autoreconf to dd_rhelp. + +------------------------------------------------------------------- +Mon Feb 14 01:28:51 CET 2005 - garloff@suse.de + +- Update to dd_rescue-1.11: + * O_DIRECT needs aligned buffers (Raymund Will) + * Compile fix for systems without O_DIRECT +- Update to dd_rhelp 0.06 + +------------------------------------------------------------------- +Sun Aug 29 01:07:20 CEST 2004 - garloff@suse.de + +- Update to dd_rescue-1.10: + * Support for non-seekable in-/output (pipes). + +------------------------------------------------------------------- +Sun Aug 29 00:59:42 CEST 2004 - garloff@suse.de + +- Update to dd_rescue-1.04: + * Include fix from Lab Valentin for dd_rhelp + * Fix CPU load display overflow + * Default soft block size now 64k instead of 16k + * O_DIRECT supported (-d/-D) + * option -p to copy permissions/owner/times +- Include dd_rhelp script (0.0.5) from Lab Valentin. + +------------------------------------------------------------------- +Thu Jul 26 14:53:25 MEST 2001 - garloff@suse.de + +- Update to version 1.02: + * Better handling of partially successful reads. + * Don't loop on EFBIG when writing. + * Avoid errno checking if not necessary. + +------------------------------------------------------------------- +Mon Apr 30 16:11:45 MEST 2001 - garloff@suse.de + +- Bugfix release 1.01: + * Don't loop trying to write to full partition (ENOSPC) + * Fix compiler format warning (\% -> %%) + * Add lots of const qualifiers + * Optimize block zero checking routine + +------------------------------------------------------------------- +Fri Feb 9 17:32:56 MET 2001 - garloff@suse.de + +- #include to fix compilation error on variadic fns + +------------------------------------------------------------------- +Sat Dec 9 18:25:20 MET 2000 - nashif@suse.de + +- sorted + +------------------------------------------------------------------- +Wed Aug 30 22:59:45 CEST 2000 - garloff@suse.de + +- Update to 1.00: Some preparation for supporting non-seekable + in- or output. No support yet: Print warning and abort. + +------------------------------------------------------------------- +Sat May 27 00:18:42 CEST 2000 - garloff@suse.de + +- Update to 0.99: Use stderr to print messages instead of stdout +- Prepare allowing - as stdin/stdout (but pread/pwrite() will fail) +- Fix spelling in README +- Use BuildRoot + +------------------------------------------------------------------- +Fri Jan 14 18:14:17 CET 2000 - garloff@suse.de + +- Fixed README.dd_rescue. + +------------------------------------------------------------------- +Wed Oct 27 03:42:25 CEST 1999 - garloff@suse.de + +- Removed flushb. It belongs into util-linux. + +------------------------------------------------------------------- +Wed Oct 20 01:47:59 CEST 1999 - garloff@suse.de + +- Fixed typo in help. (b <-> B) + +------------------------------------------------------------------- +Fri Oct 15 15:57:27 CEST 1999 - garloff@suse.de + +- Initial release: 0.98. + diff --git a/dd_rescue.keyring b/dd_rescue.keyring new file mode 100644 index 0000000..08a5e80 Binary files /dev/null and b/dd_rescue.keyring differ diff --git a/dd_rescue.spec b/dd_rescue.spec new file mode 100644 index 0000000..ac82239 --- /dev/null +++ b/dd_rescue.spec @@ -0,0 +1,165 @@ +# +# spec file for package dd_rescue +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%ifarch aarch64 %{arm} +# boo#1176219 +%define _lto_cflags %{nil} +%endif +Name: dd_rescue +Version: 1.99.16 +Release: 0 +Summary: Data copying in the presence of I/O Errors +License: GPL-2.0-only OR GPL-3.0-only +Group: System/Base +URL: http://www.garloff.de/kurt/linux/ddrescue/ +Source0: http://garloff.de/kurt/linux/ddrescue/%{name}-%{version}.tar.bz2 +Source1: http://garloff.de/kurt/linux/ddrescue/%{name}-%{version}.tar.bz2.asc +Source2: %{name}.keyring +Source99: %{name}.changes +# PATCH-FIX-UPSTREAM no-python2.patch sf#ddrescue#4 mcepl@suse.com +# Remove dependency on python2 +BuildRequires: autoconf +BuildRequires: libattr-devel +# Workaround for bsc#1193438 +BuildRequires: libopenssl-devel +BuildRequires: lzo-devel +BuildRequires: lzop +BuildRequires: pkgconfig +BuildRequires: python3-base +Requires: bc +Recommends: dd_rescue-crypt +Recommends: dd_rescue-lzo +Recommends: dd_rhelp +# ddrescue was last used in openSUSE 11.4 (version 1.14_0.0.6) +Provides: ddrescue = %{version} +Obsoletes: ddrescue < %{version} + +%description +dd_rescue helps when nothing else can: your disk has crashed and you +try to copy it over to another one. While standard Unix tools like cp, +cat, and dd will "abort" on every I/O error, dd_rescue does not. + +dd_rescue has many other goodies; optimization by using large blocks +as long as no errors are in sight and falling back to small ones; reverse +direction copy; splice in-kernel zerocopy; O_DIRECT support; preallocation +with fallocate(). + +dd_rescue also provides data protection features by overwriting files +or disks with fast random numbers, optionally multiple times. + +dd_rescue supports plugins; currently a hash, an lzo and a crypt plugin +exist, supporting on the fly hash/HMAC calculation/validation, lzo +de/compression and de/encryption. The lzo plugin is packaged in the +dd_rescue-lzo, the crypt plugin in the dd_rescue-crypt subpackage. + +%package crypt +Summary: Crypt plugin for dd_rescue +Group: System/Base +Requires: dd_rescue = %{version} + +%description crypt +This plugin allows you do de/encrypt files during recovery copying +with dd_rescue using the AES family of algorithms. The plugin +supports various numbers of bits and rounds and uses the x86 AESNI +CPU support if available. + +The plugin does offer a variety of options to handle the keys +and IVs including the generating keys from password and salt. + +The plugin is new as of 1.98 and it despite diligent testing it +might be careful to expect some bugs and future changes. + +%package lzo +Summary: LZO plugin for dd_rescue +Group: System/Base +Requires: dd_rescue = %{version} + +%description lzo +This plugin allows you do de/compress files during recovery copying +with dd_rescue using the lzo family of algorithms. lzo algorithms +are very fast to decompress and most algorithms are very fast to +compress as well -- at the expense of somewhat worse compression than +zlib's deflate. + +The plugin does offer a variety of options to handle corrupted .lzo +files with some grace; it does skip over bad blocks (if the block +headers are still intact) by default, but does offer an option (nodiscard) +to allow to attempt decompression on faulty input, hoping to produce +some usable bytes. It can also search for valid block headers after +synchronization has been lost due to a corrupt one. + +The plugin also handles sparse files (files with holes) and supports +appending to .lzo files, so it fits neatly into dd_rescue. + +Some fuzz testing has been applied to the plugin's decompression routines, +though more will have to be done to feel confident about feeding untrusted +data to the decompressor; the plugin is still young and might expose bugs. + +%prep +%autosetup -p1 + +# Remove build time references so build-compare can do its work +FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{SOURCE99} '+%%H:%%M') +FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{SOURCE99} '+%%b %%e %%Y') +sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/g" dd_rescue.c +sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/g" dd_rescue.c + +%build +autoheader +autoconf +%configure + +# avoid running dependency generation step +touch .dep + +%make_build RPM_OPT_FLAGS="%{optflags}" LIBDIR=%{_libdir} LIB=%{_lib} + +%install +%make_install RPM_OPT_FLAGS="%{optflags}" INSTALLDIR=%{buildroot}/%{_bindir} LIB=%{_lib} LIBDIR=%{_libdir} \ + INSTASROOT= INSTALLFLAGS= + +%if 0%{?suse_version} < 1550 +mkdir %{buildroot}/bin +ln -sf %{_bindir}/dd_rescue %{buildroot}/bin +%endif + +%check +%make_build RPM_OPT_FLAGS="%{optflags} -fcommon -fno-strict-aliasing" check + +%files +%doc README.dd_rescue TODO +%license COPYING +%{_bindir}/dd_rescue +%if 0%{?suse_version} < 1550 +/bin/dd_rescue +%endif +%{_libdir}/libddr_hash.so +%{_libdir}/libddr_MD5.so +%{_libdir}/libddr_null.so +%{_mandir}/man1/dd_rescue.1%{?ext_man} + +%files crypt +%{_mandir}/man1/ddr_crypt.1%{?ext_man} +%{_libdir}/libddr_crypt.so + +%files lzo +%{_libdir}/libddr_lzo.so +%{_mandir}/man1/ddr_lzo.1%{?ext_man} +%doc CRYPT_TODO PADDING + +%changelog