GNU bug report logs -
#56766
[PATCH] gnu: exiv2: Fix test failure on ppc64-le
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#56766: [PATCH] gnu: exiv2: Fix test failure on ppc64-le
which was filed against the guix-patches package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 56766 <at> debbugs.gnu.org.
--
56766: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=56766
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
Hi Marcel,
I squashed the two patches into one, tweaked it to make the new build
phase conditional as a whole, added it for aarch64-linux as well, added
comments taken from your commit log, and tweaked the commit log.
Thank you, and thanks Maxime for reviewing!
Ludo’.
[Message part 3 (message/rfc822, inline)]
ppc64 and arm do not raise exception and thus output and exit code for test is different.
* gnu/packages/patches/exiv2-ppc64.patch: Modify test for ppc64
* gnu/packages/image.scm (exiv2): add `patches` field for source if target is ppc64
See:
https://github.com/Exiv2/exiv2/issues/365 and
https://github.com/Exiv2/exiv2/issues/933
upstream.
---
gnu/packages/image.scm | 5 ++++-
gnu/packages/patches/exiv2-ppc64.patch | 11 +++++++++++
2 files changed, 15 insertions(+), 1 deletion(-)
create mode 100644 gnu/packages/patches/exiv2-ppc64.patch
diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index d52d57b3b1..dc4bf76790 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -1342,7 +1342,10 @@ (define-public exiv2
(uri (string-append "https://www.exiv2.org/builds/exiv2-" version
"-Source.tar.gz"))
(sha256
- (base32 "1qm6bvj28l42km009nc60gffn1qhngc0m2wjlhf90si3mcc8d99m"))))
+ (base32 "1qm6bvj28l42km009nc60gffn1qhngc0m2wjlhf90si3mcc8d99m"))
+ (patches
+ (if (target-ppc64le?)
+ (list (search-patch "exiv2-ppc64.patch"))))))
(build-system cmake-build-system)
(arguments
'(#:test-target "tests"
diff --git a/gnu/packages/patches/exiv2-ppc64.patch b/gnu/packages/patches/exiv2-ppc64.patch
new file mode 100644
index 0000000000..a74a7ac1b7
--- /dev/null
+++ b/gnu/packages/patches/exiv2-ppc64.patch
@@ -0,0 +1,11 @@
+--- /tests/bugfixes/github/test_CVE_2018_12265.py
++++ /tests/bugfixes/github/test_CVE_2018_12265.py
+@@ -18,7 +18,6 @@
+ Warning: Directory Image, entry 0x0201: Strip 0 is outside of the data area; ignored.
+ Warning: Directory Image, entry 0x0201: Strip 7 is outside of the data area; ignored.
+ Error: Offset of directory Thumbnail, entry 0x0201 is out of bounds: Offset = 0x00000000; truncating the entry
+-$uncaught_exception $addition_overflow_message
+ """
+ ]
+- retval = [1]
++ retval = [0]
base-commit: 212ca81895b2baa819ea11a308ad21880b84a546
--
2.37.1
This bug report was last modified 3 years and 14 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.