Changelog:
=========
* Simplify tests_quines.py::test_{differences,differences_deb} to use
assert_diff and not mangle the expected test output.
* Update some tests to support file(1) version 5.46.
(From OE-Core rev: 476ce326937652d99f53f86269e40d305f916837)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changelog:
==========
* Fix crash when objdump is missing when checking .EFI files.
* Ignore errors when listing .ar archives.
* Update copyright years.
* Don't try and test with systemd-ukify within Debian stable.
* Add support for UKI files.
* Drop Depends on deprecated python3-pkg-resources.
* Drop removal of calculated basename from readelf output.
* Temporarily remove procyon-decompiler from Build-Depends as it was removed
from testing
* Add a helpful contextual message to the output if comparing Debian .orig
tarballs within .dsc files without the ability to "fuzzy-match" away the
leading directory.
* Correctly invert "X% similar" value and do not emit "100% similar".
* Update copyright years.
(From OE-Core rev: 8bd657763c66b56446665f5568e0e900a82db0f9)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changelog:
===========
- Don't crash when attempting to hashing symlinks with targets that point to
a directory.
(From OE-Core rev: 6f21fa5bb71349a5cf6b6fd71548f78c3421ff22)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changelog:
=========
* Also catch RuntimeError when importing PyPDF so that PyPDF or,
crucially, its transitive dependencies do not cause diffoscope to traceback at
runtime and build time.
* Factor out a method for stripping ANSI escapes.
* Strip ANSI escapes from the output of Procyon.
(From OE-Core rev: 4f111892b3ba5b030697a1192dac59e89ea0f393)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changelog:
==========
* Move away from using DSA OpenSSH keys in tests; support has been removed
in OpenSSH 9.8p1.
* Move to assert_diff helper in test_openssh_pub_key.py
(From OE-Core rev: 155c71d3f222d65e69a891612ca8ef710e864826)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changelog:
===========
* Drop Build-Depends on liblz4-tool. Thanks, Chris Peterson.
* Update tests to support zipdetails version 4.004 shipped with Perl 5.40.
(From OE-Core rev: c390768293faafc0aa0c991a26f2634aa91b1a7b)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changelog:
===========
* Use "xz --list" to supplement the output when comparing .xz archives;
essential when some underlying metadata differs.
* Actually append the xz --list after the container differences, as it
simplifies tests and the output.
* Add 7zip to <!nocheck> Build-Depends in debian/control.
* Update copyright years.
* Maintain an in-header boolean state to determine whether to drop
from-file/to-file lines. This fixes an issue where HTML differences were
being inadvertendly neglected.
* Include "xz --verbose --verbose" (ie. double --verbose) output, not just
the single --verbose.
* Only include "xz --list" output if the xz has no other differences.
(From OE-Core rev: 577d2f29c4bbeb182d45331dbe77b15758746d00)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changelog:
==========
* Ensure that tests with ">=" version constraints actually print the
corresponding tool name.
* Prevent odt2txt tests from always being skipped due to an impossibly new
version requirement.
* Avoid nested parens-in-parens when printing "skipping" messages
in the testsuite.
* Don't crash on invalid zipfiles, even if we encounter 'badness'
halfway through the file.
* Fix a crash when there are (invalid) duplicate entries in .zip files.
* Add note when there are duplicate entries in ZIP files.
* Add an external tool reference for GNU Guix for zipdetails.
* Add support for the zipdetails(1) tool included in the Perl distribution.
* Don't use parenthesis within test "skipping" messages; PyTest adds its own
parenthesis, so we were ending up with double nested parens.
* Fix the .epub tests after supporting zipdetails(1).
* Update copyright years and debian/tests/control.
* Fix MozillaZipContainer's monkeypatch after Python's zipfile module changed
to detect potentially insecure overlapping entries within .zip files.
* Factor out Python version checking in test_zip.py.
* Also skip some zip tests under 3.10.14 as well; a potential regression may
have been backported to the 3.10.x series. The underlying cause is still to
be investigated.
* Don't crash if we encounter an .rdb file without an equivalent .rdx file.
* In addition, don't identify Redis database dumps (etc.) as GNU R database
files based simply on their filename.
(From OE-Core rev: f22945ba9b4835e52809bedc4e3be73a91aafe07)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changelog:
==========
* Actually test 7z support in the test_7z set of tests, not the lz4
functionality.
* In addition, correctly check for the 7z binary being available
(and not lz4) when testing 7z.
* Prevent a traceback when comparing a contentful .pyc file with an
empty one.
(From OE-Core rev: 5baf1e660f980cdcbe97e395f9c7f28b14cd8e6e)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changelog:
============
* Improve DOS/MBR extraction by adding support for 7z.
* Process objdump symbol comment filter inputs as the Python "bytes" type
(and not str).
* Add a missing RequiredToolNotFound import.
* Update copyright years.
(From OE-Core rev: 6452368935b103a39ed7c603bf763b3877544008)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changelog:
============
* As UI/UX improvement, try and avoid printing an extended traceback if
diffoscope runs out of memory.
* Mark diffoscope as stable in setup.py (for PyPI.org). Whatever diffoscope
is, at least, not "alpha" anymore.
(From OE-Core rev: da43500a3c230f868ae53c73e0657b67e9dc9f25)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changelog: https://diffoscope.org/news/diffoscope-244-released/
* Address compatibility with python-libarchive-c version 5.
(Closes: reproducible-builds/diffoscope#344)
* Testsuite changes:
- Mark that test_dex::test_javap_14_differences requires procyon.
- Fix "test skipped" textual reason generation in the case of a required
version being outside of the required range.
- Temporarily mark some Android-related as XFAIL due to Debian bugs
#1040941 and #1040916.
(From OE-Core rev: e7ab92360cb9515c28197b809bdc8b112e23bb57)
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changelog:
[ Chris Lamb ]
* Drop Jenkins build reference in README.rst.
[ Ed Maste ]
* Update FreeBSD package names
[ Mattia Rizzolo ]
* Improve the documentation on to produce that binary blob that in the arsc
comparator.
(From OE-Core rev: 8781670bfc04cf9abef7dd9364f5e83e2c52d311)
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
An automated conversion using scripts/contrib/convert-spdx-licenses.py to
convert to use the standard SPDX license identifiers. Two recipes in meta-selftest
were not converted as they're that way specifically for testing. A change in
linux-firmware was also skipped and may need a more manual tweak.
(From OE-Core rev: ceda3238cdbf1beb216ae9ddb242470d5dfc25e0)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changelog:
=========
* Support both variants of "odt2txt", including the one provided by unoconv.
(Closes: reproducible-builds/diffoscope#298)
* Add external tool reference on Arch Linux for xb-tool.
(From OE-Core rev: 763c44e30c20ebcd4199d41fa76dae3d3b4ec5c3)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changelog:
[Chris Lamb]
Don't raise a traceback if we cannot de-marshal Python bytecode to support
Python 3.7 loading newer .pyc files.
(Closes: reproducible-builds/diffoscope#284)
Fix Python tests under Python 3.7 with file 5.39+.
[Vagrant Cascadian]
Skip Python bytecode testing when "file" is older than 5.39.
[Roland Clobus]
Detect whether the GNU_BUILD_ID field has been modified.
(From OE-Core rev: b9c59b5d2ac29544c1877f50ec10d2126339d814)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>