From ed1dff972319936ffe319f1385da109579bd816ec16a8f4978a8d8adfc88a67b Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 6 Jun 2024 18:19:33 +0000 Subject: [PATCH] - Amend system-libs.patch OBS-URL: https://build.opensuse.org/package/show/security/hashcat?expand=0&rev=26 --- hashcat.changes | 6 ++++++ hashcat.spec | 5 +++-- system-libs.patch | 29 +++++------------------------ 3 files changed, 14 insertions(+), 26 deletions(-) diff --git a/hashcat.changes b/hashcat.changes index 45d2229..9fe10bc 100644 --- a/hashcat.changes +++ b/hashcat.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 6 18:12:31 UTC 2024 - Jan Engelhardt + +- Amend system-libs.patch; system lzma-sdk (24.xx) is too new; + go back to using bundled lzma-sdk. + ------------------------------------------------------------------- Sun May 7 20:42:32 UTC 2023 - Andreas Stieger diff --git a/hashcat.spec b/hashcat.spec index e23651b..a87f86d 100644 --- a/hashcat.spec +++ b/hashcat.spec @@ -1,7 +1,7 @@ # # spec file for package hashcat # -# Copyright (c) 2023 SUSE LLC +# 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 @@ -37,6 +37,7 @@ BuildRequires: xxhash-devel BuildRequires: pkgconfig(clzma) BuildRequires: pkgconfig(minizip) BuildRequires: pkgconfig(zlib) +Provides: bundled(lzma-sdk) = 21.02 ExclusiveArch: %ix86 x86_64 %description @@ -79,7 +80,7 @@ find . -name .lock -type f -delete %build %global margs DOCUMENT_FOLDER="%_docdir/%name" our_CFLAGS="%optflags" LIBRARY_FOLDER="%_libdir" -%make_build %margs +%make_build %margs -j1 %install %make_install %margs diff --git a/system-libs.patch b/system-libs.patch index f798c19..fe7b0bd 100644 --- a/system-libs.patch +++ b/system-libs.patch @@ -1,12 +1,12 @@ --- - src/Makefile | 19 ++++++++++--------- - 1 file changed, 10 insertions(+), 9 deletions(-) + src/Makefile | 13 +++++++------ + 1 file changed, 7 insertions(+), 6 deletions(-) Index: hashcat-6.2.6/src/Makefile =================================================================== --- hashcat-6.2.6.orig/src/Makefile +++ hashcat-6.2.6/src/Makefile -@@ -3,17 +3,17 @@ +@@ -3,7 +3,7 @@ ## License.....: MIT ## @@ -15,12 +15,11 @@ Index: hashcat-6.2.6/src/Makefile DEBUG := 0 PRODUCTION := 1 PRODUCTION_VERSION := v6.2.6 - ENABLE_CUBIN ?= 1 +@@ -11,9 +11,9 @@ ENABLE_CUBIN ?= 1 ENABLE_BRAIN ?= 1 ENABLE_UNRAR ?= 1 --USE_SYSTEM_LZMA ?= 0 + USE_SYSTEM_LZMA ?= 0 -USE_SYSTEM_ZLIB ?= 0 -+USE_SYSTEM_LZMA ?= 1 +USE_SYSTEM_ZLIB ?= 1 USE_SYSTEM_OPENCL ?= 0 -USE_SYSTEM_XXHASH ?= 0 @@ -37,15 +36,6 @@ Index: hashcat-6.2.6/src/Makefile INSTALL_FOLDER ?= $(PREFIX)/bin SHARED_ROOT_FOLDER ?= $(PREFIX)/share -@@ -119,7 +119,7 @@ LIBRARY_DEV_FOLDER ?= $(LIBRARY_DEV - ifeq ($(USE_SYSTEM_LZMA),0) - DEPS_LZMA_PATH := deps/LZMA-SDK/C - else --DEPS_LZMA_PATH := $(LIBRARY_DEV_ROOT_FOLDER) -+DEPS_LZMA_PATH := /usr/include/clzma - endif - - ifeq ($(USE_SYSTEM_ZLIB),0) @@ -173,7 +173,7 @@ endif # MSYS2 ## Misc stuff ## @@ -72,12 +62,3 @@ Index: hashcat-6.2.6/src/Makefile endif else ifeq ($(DEBUG),1) -@@ -269,7 +270,7 @@ CFLAGS += -pipe -Iinclu - # LZMA - CFLAGS += -I$(DEPS_LZMA_PATH) - ifeq ($(USE_SYSTEM_LZMA),1) --LFLAGS += -llzmasdk -+LFLAGS += -lclzma - endif - - # ZLIB