diff options
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | 0001-warnings-fix-format-security-warnings.patch | 25 | ||||
-rw-r--r-- | PKGBUILD | 9 |
3 files changed, 38 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = imhex pkgdesc = A Hex Editor for Reverse Engineers, Programmers and people that value their eye sight when working at 3 AM pkgver = 1.11.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/WerWolv/ImHex arch = x86_64 license = GPL2 @@ -25,18 +25,22 @@ pkgbase = imhex source = imhex::git+https://github.com/WerWolv/ImHex.git#tag=v1.11.0 source = nativefiledialog::git+https://github.com/btzy/nativefiledialog-extended.git source = xdgpp::git+https://git.sr.ht/~danyspin97/xdgpp + source = 0001-warnings-fix-format-security-warnings.patch source = imhex.desktop cksums = SKIP cksums = SKIP cksums = SKIP + cksums = 1240984838 cksums = 4178124713 sha256sums = SKIP sha256sums = SKIP sha256sums = SKIP + sha256sums = 66f1e9ae39a24b27cbf80ddb1b6c364dd4895ec66b6cc9154384354c1b8d54f2 sha256sums = 72525512a241589cecd6141f32ad36cbe1b5b6f2629dd8ead0e37812321bdde6 b2sums = SKIP b2sums = SKIP b2sums = SKIP + b2sums = c9b7bf565006dc1aa9605f653ac94fbed2b01d0ab481de51efac0034cb84267576902bcf43e1dbb4b0f05c495c5040755d26d299cb427d00fc80d752bd3990d1 b2sums = 7b2d029de385fdc2536f57a4364add9752b9a5dc31df501e07bff1fd69fdd1de2afa19a5ac5a4c87fbf21c5d87cc96d3fe30d58825c050f5a7d25f6d85d08efc pkgname = imhex diff --git a/0001-warnings-fix-format-security-warnings.patch b/0001-warnings-fix-format-security-warnings.patch new file mode 100644 index 000000000000..61adcd314e4c --- /dev/null +++ b/0001-warnings-fix-format-security-warnings.patch @@ -0,0 +1,25 @@ +From 5290fd020da4405820ddde1b376c07ccf649f061 Mon Sep 17 00:00:00 2001 +From: KokaKiwi <kokakiwi+git@kokakiwi.net> +Date: Sun, 28 Nov 2021 16:48:29 +0100 +Subject: [PATCH] warnings: fix format-security warnings + +--- + source/views/view_strings.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/source/views/view_strings.cpp b/source/views/view_strings.cpp +index f28ec78..6fcfa24 100644 +--- a/source/views/view_strings.cpp ++++ b/source/views/view_strings.cpp +@@ -127,7 +127,7 @@ namespace hex { + return 0; + }, this); + if(this->m_regex && !this->m_pattern_parsed){ +- ImGui::TextColored(ImVec4(1.0f, 0.0f, 0.0f, 1.0f), "hex.view.strings.regex_error"_lang); ++ ImGui::TextColored(ImVec4(1.0f, 0.0f, 0.0f, 1.0f), "%s", "hex.view.strings.regex_error"_lang); + } + + if (ImGui::Button("hex.view.strings.extract"_lang)) +-- +2.34.1 + @@ -4,7 +4,7 @@ _pkgname=ImHex pkgname=${_pkgname,,} pkgver=1.11.0 -pkgrel=1 +pkgrel=2 pkgdesc='A Hex Editor for Reverse Engineers, Programmers and people that value their eye sight when working at 3 AM' url='https://github.com/WerWolv/ImHex' license=('GPL2') @@ -16,18 +16,22 @@ makedepends=('git' 'cmake' 'glm' 'llvm' 'nlohmann-json' 'librsvg') source=("$pkgname::git+https://github.com/WerWolv/ImHex.git#tag=v$pkgver" "nativefiledialog::git+https://github.com/btzy/nativefiledialog-extended.git" "xdgpp::git+https://git.sr.ht/~danyspin97/xdgpp" + 0001-warnings-fix-format-security-warnings.patch imhex.desktop) cksums=('SKIP' 'SKIP' 'SKIP' + '1240984838' '4178124713') sha256sums=('SKIP' 'SKIP' 'SKIP' + '66f1e9ae39a24b27cbf80ddb1b6c364dd4895ec66b6cc9154384354c1b8d54f2' '72525512a241589cecd6141f32ad36cbe1b5b6f2629dd8ead0e37812321bdde6') b2sums=('SKIP' 'SKIP' 'SKIP' + 'c9b7bf565006dc1aa9605f653ac94fbed2b01d0ab481de51efac0034cb84267576902bcf43e1dbb4b0f05c495c5040755d26d299cb427d00fc80d752bd3990d1' '7b2d029de385fdc2536f57a4364add9752b9a5dc31df501e07bff1fd69fdd1de2afa19a5ac5a4c87fbf21c5d87cc96d3fe30d58825c050f5a7d25f6d85d08efc') prepare() { @@ -41,6 +45,9 @@ prepare() { git config --remove-section submodule.external/$name done git submodule update + + git apply \ + "$srcdir/0001-warnings-fix-format-security-warnings.patch" } build() { |