6 Commits

Author SHA256 Message Date
c0753dc0c2 Accepting request 1324454 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1324454
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/diffoscope?expand=0&rev=50
2025-12-26 15:23:43 +00:00
59f5310d93 Avoid influences from checks on build result
for reproducible builds (boo#1227364)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/diffoscope?expand=0&rev=105
2025-12-26 14:03:28 +00:00
e914363724 Accepting request 1304154 from devel:languages:python
- update to 306:
  * Fix compatibility with RPM 6.
  * Use regular 'open' calls instead of the deprecated
    'codecs.open'.
  * Accept additional 'v' when calling 'fdtump --version'.
  * Do not run jsondiff on files over 100KiB as the algorithm
    runs in O(n^2)
  * Fix test after the upload of systemd-ukify 258~rc3 (vs.
    258~rc2).
  * Avoid a crash in the HTML presenter when page limit is None.
  * Don't check for PyPDF version 3 specifically, check for >= 3.
  * Ensure that Java class files are named .class on the
    filesystem before passing them to javap(1).
  * Mask stderr from the extract-vmlinux script.
  * Make it much more explicit that we return 'success' from the
    extract-vmlinux script instead of just falling through to
    the bottom of the script.
  * Use Difference.from_operation in an attempt to pipeline the
    output of extract-vmlinux, potentially avoiding it all
    residing in memory. This is an attempt to prevent out of
    memory issues on try.diffoscope.org.
  * Avoid spurious differences in h5dump output caused by
    exposure of absolute internal extraction paths.
  * Use our_check_output in the ODT comparator.
  * Fix a regression and add a test so that diffoscope picks up
    differences in metadata for identical files again.
  * Handle RPM's HEADERSIGNATURES and HEADERIMMUTABLE specially
    to avoid unncessarily large diffs.
  * Add a LZMA comparator and tests.
  * Don't rely on zipdetails' --walk functionality to be

OBS-URL: https://build.opensuse.org/request/show/1304154
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/diffoscope?expand=0&rev=49
2025-09-12 19:10:04 +00:00
44d55d94bf - update to 306:
* Fix compatibility with RPM 6.
  * Use regular 'open' calls instead of the deprecated
    'codecs.open'.
  * Accept additional 'v' when calling 'fdtump --version'.
  * Do not run jsondiff on files over 100KiB as the algorithm
    runs in O(n^2)
  * Fix test after the upload of systemd-ukify 258~rc3 (vs.
    258~rc2).
  * Avoid a crash in the HTML presenter when page limit is None.
  * Don't check for PyPDF version 3 specifically, check for >= 3.
  * Ensure that Java class files are named .class on the
    filesystem before passing them to javap(1).
  * Mask stderr from the extract-vmlinux script.
  * Make it much more explicit that we return 'success' from the
    extract-vmlinux script instead of just falling through to
    the bottom of the script.
  * Use Difference.from_operation in an attempt to pipeline the
    output of extract-vmlinux, potentially avoiding it all
    residing in memory. This is an attempt to prevent out of
    memory issues on try.diffoscope.org.
  * Avoid spurious differences in h5dump output caused by
    exposure of absolute internal extraction paths.
  * Use our_check_output in the ODT comparator.
  * Fix a regression and add a test so that diffoscope picks up
    differences in metadata for identical files again.
  * Handle RPM's HEADERSIGNATURES and HEADERIMMUTABLE specially
    to avoid unncessarily large diffs.
  * Add a LZMA comparator and tests.
  * Don't rely on zipdetails' --walk functionality to be

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/diffoscope?expand=0&rev=103
2025-09-11 20:23:20 +00:00
a6956a8e89 Accepting request 1255405 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1255405
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/diffoscope?expand=0&rev=48
2025-03-24 12:31:41 +00:00
da7f8d1c0f - update to version 291:
* Make two required adjustments for the new version of the src:file package:
    file(1) version 5.46 now emits "XHTML document" for .xhtml files, such as
    those found nested within our .epub tests. Therefore, match this string
    when detecting XML files. This was causing an FTBFS due to inconsistent
    indentation in diffoscope's output.
  * Require the new, upcoming, version of file(1) for a quine-related
    testcase after adjusting the expected output. Previous versions of
    file(1) had a duplicated "last modified, last modified" string for some
    Zip archives that has now been removed.
  * Add a missing subprocess import.
  * Bump Standards-Version to 4.7.2.
- update to version 290:
  * Also consider .aar files as APK files for the sake of not falling back to a
    binary diff. (Closes: #1099632)
  * Ensure all calls to out_check_output in the ELF comparator have the
    potential CalledProcessError exception caught. (Re: #398)
  * Ensure a potential CalledProcessError is caught in the OpenSSL comparator
    as well.
- update to version 289:
  * Catch CalledProcessError when calling html2text.
- update to version 288:
  * Add 'asar' to DIFFOSCOPE_FAIL_TESTS_ON_MISSING_TOOLS. (Closes: #1095057)
  * Update minimal 'black' version.
- update to version 287:
  * Drop an unused subprocess import.
  * Update copyright years.
  * Add ASAR comparator.
- update to version 286:
  * Bug fixes:

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/diffoscope?expand=0&rev=101
2025-03-23 14:33:36 +00:00
6 changed files with 144 additions and 21 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7b7d09205a11c4f737f845422e86946c74997751231cca59ff693ab9883db4f8
size 3149578

View File

@@ -1,16 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEEwv5L0nHBObhsUz5GHpU+J9QxHlgFAmdS0+IACgkQHpU+J9Qx
HliG8A//cDQykZOlX8VoD+bLS6cPkdEhSdzsez5J1k4VRDGi59U45cT1bmxSueef
jTKVU7j9gPX+YBTrjdz9Wn0Pjs66qrSVIvCsxTuORKaSVFKnEmjs/CHOAKkfD/C4
If2UJelKAgGipQ9NWGigiz0T5xZGhPwEG42mRC1MKpdMOa7Vtgi3S8LDE88r/GYL
YoJgcae/3bNoPpLZytASaIxdKBL4OeMkVCN1KcDP+F8eW5MRSuKIsAIGYT84GpyO
QwjmwsWStIo5DByCtQ5JQUYtSXJ/I/+cxOLrZFW0RwRSd1XGZVraGbOlTlTyTAkJ
s16HQVxkwjEFz8RivkV6Byx/UKabJqIX0kmsAQh5P1xQ9U9w6Lm1C85nqKpdwsyO
tifajTvoM/mLdnvGaEKR8wnn/J8Whwi42ElsLYPZt/YRw9rCqc2+bvI68Fuokdqp
rYkraO3FszMyO2MW9mPj2ce8m6BZnyrJNk2qQvjXDjJ9UUm5m7JK4BCXwhcSgs9j
g7pmNzL3Q8F72ajhZycLQgf9BBVkqS8CdnEy47jPZ9ymioyVQOsolpgYVGrRUYFR
eTD+WHwLhmZsfj59Z+rqhF+dxQcuz9vLfS0fWQ4xHf0wZXsH5aVP4Zv+1/guAzQ8
q1KSCsawTGkeUjvKGGeangp1gMa3Iwoqy4aDMbXm8LNXWM8mSgw=
=VlZW
-----END PGP SIGNATURE-----

3
diffoscope-306.tar.bz2 Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:62be31ca78d1e4deda2266fc5552ec89413e3a828ea2778351bc3d3bb6fbedbf
size 3154052

View File

@@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEEwv5L0nHBObhsUz5GHpU+J9QxHlgFAmi+B9EACgkQHpU+J9Qx
HlgQjg//cZ9IAJ8YQiCa6aKEFxixQwd2SSIan8VUXFnYnRnbGzANR2SlVBzleAWD
4smaY0KKjXoyjfeOzHKDH/ThON8X0obPE76PpUZLkfnIcWd8R9Uzo2COLn7hnOxN
Cj4kFM0iHmlVOjuIYaB2C+Sy/1IFCZqOUEm6nzzFdMQKuTI7dzorYLEhUNSapOSC
bkF6Cq2/PxL8Wrhkq6zRz6JulxlF3rlYXQSr5I7BGaI8MVtg6tnKcxEyCpu59HOy
k9zjJKi+mwVMF0Xz3Dc7TbgRhRaCJRLHys8NA7s3klmrkVgffxJGMTDPuSUd8lbP
Wf+qK1qq9uePlAKkPsm3Mi/nYFDdgWg63cIlSwr2Jp26TyG5fqQJrb1AAg/k6G8Y
Dk0RqA6uXT/yaLMthJzqf2YIjhu7Bw+Qc7eVw6BID5s4UzVV2nxMPpeGs7PsMKow
pf39E3/bm+kWmncpYuvpoHMrvWuwKpgMseMwnHhrVTVx8+DyJUafdAgLD6q8kQfM
No9j4NslzGBXPTSivPyssislbuIQ6k3L/lCkpk2voz43akILxE8c+LFuLPbQIc22
qJPwwzq/ijUQRzZHV1/7Avf3jpUFPqQK7HDrvE/T0OcADA0LQNgcZsu78DM0L44F
EhdkJuldLP3XKanoYvAFc3ffqayfLRXLVCmUHi+nUjzgRi7+eug=
=VhZA
-----END PGP SIGNATURE-----

View File

@@ -1,3 +1,125 @@
-------------------------------------------------------------------
Fri Dec 26 11:56:43 UTC 2025 - Bernhard Wiedemann <bwiedemann@suse.com>
- Avoid influences from checks on build result
for reproducible builds (boo#1227364)
-------------------------------------------------------------------
Thu Sep 11 20:18:49 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 306:
* Fix compatibility with RPM 6.
* Use regular 'open' calls instead of the deprecated
'codecs.open'.
* Accept additional 'v' when calling 'fdtump --version'.
* Do not run jsondiff on files over 100KiB as the algorithm
runs in O(n^2)
* Fix test after the upload of systemd-ukify 258~rc3 (vs.
258~rc2).
* Avoid a crash in the HTML presenter when page limit is None.
* Don't check for PyPDF version 3 specifically, check for >= 3.
* Ensure that Java class files are named .class on the
filesystem before passing them to javap(1).
* Mask stderr from the extract-vmlinux script.
* Make it much more explicit that we return 'success' from the
extract-vmlinux script instead of just falling through to
the bottom of the script.
* Use Difference.from_operation in an attempt to pipeline the
output of extract-vmlinux, potentially avoiding it all
residing in memory. This is an attempt to prevent out of
memory issues on try.diffoscope.org.
* Avoid spurious differences in h5dump output caused by
exposure of absolute internal extraction paths.
* Use our_check_output in the ODT comparator.
* Fix a regression and add a test so that diffoscope picks up
differences in metadata for identical files again.
* Handle RPM's HEADERSIGNATURES and HEADERIMMUTABLE specially
to avoid unncessarily large diffs.
* Add a LZMA comparator and tests.
* Don't rely on zipdetails' --walk functionality to be
available; only add that argument after testing for a new
enough versions.
* Use --walk over the potentially dangerous --scan argument of
zipdetails(1).
* Correct longstanding issue where many ">"-based version tests
used in conditional fixtures were broken due to the lack of a
__gt__ method.
* Address a long-hidden issue in the test_versions testsuite
where we weren't actually testing ">" as it was masked by the
tests for equality in the testsuite.
* Correct import masking issue.
* Ignore st_size entry for directories to avoid spurious diffs
as this value is essentially filesystem dependent.
-------------------------------------------------------------------
Sun Mar 23 14:10:37 UTC 2025 - Andrea Manzini <andrea.manzini@suse.com>
- update to version 291:
* Make two required adjustments for the new version of the src:file package:
file(1) version 5.46 now emits "XHTML document" for .xhtml files, such as
those found nested within our .epub tests. Therefore, match this string
when detecting XML files. This was causing an FTBFS due to inconsistent
indentation in diffoscope's output.
* Require the new, upcoming, version of file(1) for a quine-related
testcase after adjusting the expected output. Previous versions of
file(1) had a duplicated "last modified, last modified" string for some
Zip archives that has now been removed.
* Add a missing subprocess import.
* Bump Standards-Version to 4.7.2.
- update to version 290:
* Also consider .aar files as APK files for the sake of not falling back to a
binary diff. (Closes: #1099632)
* Ensure all calls to out_check_output in the ELF comparator have the
potential CalledProcessError exception caught. (Re: #398)
* Ensure a potential CalledProcessError is caught in the OpenSSL comparator
as well.
- update to version 289:
* Catch CalledProcessError when calling html2text.
- update to version 288:
* Add 'asar' to DIFFOSCOPE_FAIL_TESTS_ON_MISSING_TOOLS. (Closes: #1095057)
* Update minimal 'black' version.
- update to version 287:
* Drop an unused subprocess import.
* Update copyright years.
* Add ASAR comparator.
- update to version 286:
* Bug fixes:
- When passing files on the command line, don't call specialize(..) before
we've checked that the files are identical. In the worst case, this was
resulting in spinning up binwalk and extracting two entire filesystem
images merely to confirm that they were indeed filesystem images..
before simply concluding that they were identical anyway.
- Do not exit with a traceback if paths are inaccessible, either directly,
via symbolic links or within a directory. (Closes: #1065498)
- Correctly identify changes to only the line-endings of files; don't mark
them as "Ordering differences only".
- Use the "surrogateescape" mechanism of str.{decode,encode} to avoid a
UnicodeDecodeError and crash when decoding zipinfo output that is not
valid UTF-8. (Closes: #1093484)
* Testsuite changes:
- Don't mangle newlines when opening test fixtures; we want them untouched.
- Move to assert_diff in test_text.py.
* Misc:
- Remove unnecessary return value from check_for_ordering_differences in
the Difference class.
- Drop an unused function in iso9600.py
- Inline a call/check of Config().force_details; no need for an additional
variable.
- update to version 285:
* Validate --css command-line argument. Thanks to Daniel Schmidt @ SRLabs for
the report. (Closes: #396)
* Prevent XML entity expansion attacks through vulnerable versions of
pyexpat. Thanks to Florian Wilkens @ SRLabs for the report. (Closes: #397)
* Print a warning if we have disabled XML comparisons due to a potentially
vulnerable version of pyexpat.
* Remove (unused) logging facility from a few comparators.
-------------------------------------------------------------------
Sun Dec 22 20:29:42 UTC 2024 - Sebastian Wagner <sebix@sebix.at>

View File

@@ -1,7 +1,7 @@
#
# spec file for package diffoscope
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
Name: diffoscope
Version: 284
Version: 306
Release: 0
Summary: In-depth comparison of files, archives, and directories
License: GPL-3.0-or-later
@@ -134,6 +134,7 @@ fi
%check
# test_identification https://salsa.debian.org/reproducible-builds/diffoscope/-/issues/98
cp -a `pwd` ../testrundir && cd ../testrundir # for boo#1227364
py.test-%{python3_bin_suffix} -k 'not (test_python or test_identification or test_obj_identification)'
%files