Skip to content
Snippets Groups Projects
Unverified Commit 3ec8c0ca authored by Vagrant Cascadian's avatar Vagrant Cascadian Committed by Vagrant Cascadian
Browse files

gnu: diffoscope: Update to 123.

* gnu/packages/package-management (diffoscope): Update to 123.
  [arguments]: Update phase writable-test-data to include tests directory.
    Add phase remove-ocaml-test.
parent 9f74bd31
No related branches found
No related tags found
No related merge requests found
...@@ -546,7 +546,7 @@ (define-public rpm ...@@ -546,7 +546,7 @@ (define-public rpm
(license license:gpl2+))) (license license:gpl2+)))
(define-public diffoscope (define-public diffoscope
(let ((version "122")) (let ((version "123"))
(package (package
(name "diffoscope") (name "diffoscope")
(version version) (version version)
...@@ -558,7 +558,7 @@ (define-public diffoscope ...@@ -558,7 +558,7 @@ (define-public diffoscope
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1pwddknk8qyv88ba63why8vbnlc14b47434lv4ijx49m7ya3zfvg")))) "11bxms5rkhi0v4pxx29v4qgvhp3fmf0fkzci6gn5xcv4fl1zy4wj"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:phases (modify-phases %standard-phases `(#:phases (modify-phases %standard-phases
...@@ -575,6 +575,13 @@ (define-public diffoscope ...@@ -575,6 +575,13 @@ (define-public diffoscope
(lambda _ (lambda _
(delete-file "tests/comparators/test_berkeley_db.py") (delete-file "tests/comparators/test_berkeley_db.py")
#t)) #t))
;; Test is dynamically generated and may have false
;; negatives with different ocaml versions. Further
;; background in: https://bugs.debian.org/939386
(add-after 'unpack 'remove-ocaml-test
(lambda _
(delete-file "tests/comparators/test_ocaml.py")
#t))
(add-after 'unpack 'embed-tool-references (add-after 'unpack 'embed-tool-references
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(substitute* "diffoscope/comparators/utils/compare.py" (substitute* "diffoscope/comparators/utils/compare.py"
...@@ -594,10 +601,9 @@ (define-public diffoscope ...@@ -594,10 +601,9 @@ (define-public diffoscope
#t)) #t))
(add-before 'check 'writable-test-data (add-before 'check 'writable-test-data
(lambda _ (lambda _
;; tests/comparators/test_elf.py needs write access to ;; tests may need needs write access to tests
;; test data ;; directory
(make-file-writable (for-each make-file-writable (find-files "tests"))
"tests/data/ignore_readelf_errors_expected_diff")
#t)) #t))
(add-before 'check 'delete-failing-test (add-before 'check 'delete-failing-test
(lambda _ (lambda _
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment