[arch-commits] Commit in hashdeep/trunk (PKGBUILD)

Jonas Witschel diabonas at archlinux.org
Fri May 14 10:51:34 UTC 2021


    Date: Friday, May 14, 2021 @ 10:51:33
  Author: diabonas
Revision: 933967

Fix compilation with GCC 11

Without this patch, compiling with GCC 11 fails with

hash.cpp: In member function 'void file_data_hasher_t::hash()':
hash.cpp:282:26: error: ordered comparison of pointer with integer zero ('const unsigned char*' and 'int')
  282 |             if(fdht->base>0){
      |                ~~~~~~~~~~^~

Modified:
  hashdeep/trunk/PKGBUILD

----------+
 PKGBUILD |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-14 09:25:38 UTC (rev 933966)
+++ PKGBUILD	2021-05-14 10:51:33 UTC (rev 933967)
@@ -9,11 +9,17 @@
 url="https://github.com/jessek/hashdeep"
 license=('GPL' 'custom')
 depends=('gcc-libs')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/jessek/hashdeep/archive/v$pkgver.tar.gz")
-sha256sums=('ad78d42142f9a74fe8ec0c61bc78d6588a528cbb9aede9440f50b6ff477f3a7f')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/jessek/hashdeep/archive/v$pkgver.tar.gz"
+        "hashdeep-4.4-fix-errors-found-by-clang.patch::https://github.com/jessek/hashdeep/commit/6ef69a26126ee4e69a25392fd456b8a66c51dffd.patch")
+sha256sums=('ad78d42142f9a74fe8ec0c61bc78d6588a528cbb9aede9440f50b6ff477f3a7f'
+            '7a7fbca4339ca64589386d12d560c04e0929da9065b7e9c0dd1f441bc6fc0fbc')
 
 prepare() {
     cd "$pkgname-$pkgver"
+
+    # Fix compilation with GCC 11
+    patch --forward --strip=1 --input="$srcdir/hashdeep-4.4-fix-errors-found-by-clang.patch"
+
     ./bootstrap.sh
 }
 



More information about the arch-commits mailing list