SHA256
1
0
forked from pool/diffoscope
Commit Graph

29 Commits

Author SHA256 Message Date
Sebastian Wagner
42e6bec57f - update to version 189:
- Try some alternative suffixes (eg. ".py") to support distributions that
   strip or retain them. (Closes: reproducible-builds/diffoscope#283)
 - Skip Python bytecode testing where we do not have an expected diff.
   (Closes: reproducible-builds/diffoscope#284)
 - Refactor the find_executable utility into an explicit method.
 - Split out a custom call to assert_diff to support a .startswith equivalent.
 - Use skipif instead of manual conditionals in some tests.
 - Add an external tool reference for Guix to support ppudump and dumppdf.
 - Update uImage test output for file(1) version 5.41.
 - Add Arch Linux as CI test target.
 - Add external tools on Arch Linux for ffmpeg, openssl and ocalobjinfo.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/diffoscope?expand=0&rev=39
2021-11-02 19:30:09 +00:00
Sebastian Wagner
50ae84a431 - update to version 188:
- Add support for Python Sphinx inventory files, usually named objects.inv.
 - Fix Python bytecode decompilation tests with Python 3.10+.
   (Closes: reproducible-builds/diffoscope#278)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/diffoscope?expand=0&rev=38
2021-10-22 09:04:21 +00:00
Sebastian Wagner
e05a62805e - update to version 187:
- Add support for comparing .pyc files. Thanks to Sergei Trofimovich.
   (Closes: reproducible-builds/diffoscope#278)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/diffoscope?expand=0&rev=36
2021-10-09 10:25:42 +00:00
Sebastian Wagner
567ac85a8e - update to version 186:
- Don't call close_archive when garbage-collecting Archive instances unless
   open_archive returned successfully. This prevents, amongst others, an
   AttributeError traceback due to PGPContainer's cleanup routines assuming
   that its temporary directory had been created.
   (Closes: reproducible-builds/diffoscope#276)
 - Ensure that the string "RPM archives" exists in the package description,
   regardless of whether python3-rpm is installed or not at build time.
 - Fix the LVM Macho comparator for non-x86-64 architectures.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/diffoscope?expand=0&rev=34
2021-10-02 06:53:02 +00:00
Sebastian Wagner
b370747851 - update to version 185:
- Fix the autopkgtest in order to fix testing migration: the androguard
   Python module is not in the python3-androguard Debian package
 - Ignore a warning in the tests from the h5py package that doesn't concern
   diffoscope.
 - Bump Standards-Version to 4.6.0.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/diffoscope?expand=0&rev=33
2021-09-24 19:36:39 +00:00
Sebastian Wagner
c0028a6362 - update to version 184:
- Fix the semantic comparison of R's .rdb files after a refactoring of
   temporary directory handling in a previous version.
 - Support a newer format version of R's .rds files.
 - Update tests for OCaml 4.12. (Closes: reproducible-builds/diffoscope#274)
 - Move diffoscope.versions to diffoscope.tests.utils.versions.
 - Use assert_diff in tests/comparators/test_rdata.py.
 - Reformat various modules with Black.
 - Stop using the deprecated distutils module by adding a version
   comparison class based on the RPM version rules.
 - Update invocations of llvm-objdump for the latest version of LLVM.
 - Adjust a test with one-byte text file for file(1) version 5.40.
 - Improve the parsing of the version of OpenSSH.
 - Add a --diff-context option to control the unified diff context size.
   (reproducible-builds/diffoscope!88)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/diffoscope?expand=0&rev=32
2021-09-18 20:19:10 +00:00
Sebastian Wagner
9209d7533b - update to version 183:
- Add support for extracting Android signing blocks.
   (Closes: reproducible-builds/diffoscope#246)
 - Format debug messages for elf sections using our
   diffoscope.utils.format_class utility.
 - Clarify a comment about the HUGE_TOOLS dict in diffoscope.external_tools.
 - Clarify output around APK Signing Blocks and remove an accidental duplicate
   "0x" prefix.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/diffoscope?expand=0&rev=31
2021-09-04 17:53:37 +00:00
Sebastian Wagner
927038715f - update to version 182:
- Also ignore, for example, spurious "fwGCC: (Debian ... )" lines in output
   from strings(1).
 - Only use "java -jar /path/to/apksigner.jar" if we have a .jar as newer
   versions of apksigner use a shell wrapper script which will obviously be
   rejected by the JVM. Also mention in the diff if apksigner is missing.
 - Pass "-f" to apktool to avoid creating a strangely-named subdirectory and
   to simplify code.
 - If we specify a suffix for temporary file or directory, ensure it starts
   with a "_" to make the generated filenames more human-readable.
 - Drop an unused File import.
 - Update the minimum version of the Black source code formatter.
 - Support parsing the return value of squashfs versions which discriminate
   between fatal and non-fatal errors.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/diffoscope?expand=0&rev=30
2021-08-29 09:46:22 +00:00
Sebastian Wagner
4303422abe - update to version 181:
- New features and bug fixes:
   - Don't require apksigner in order to compare .apk files using apktool.
   - Add a special-case to squshfs image extraction to not fail if we aren't
     root/superuser. (Closes: #991059)
   - Reduce the maximum line length to avoid O(n^2) Wagner-Fischer algorithm,
     which meant that diff generation took an inordinate amount of time.
     (Closes: reproducible-builds/diffoscope#272)
   - Include profiling information in --debug output if --profile is not set.
   - Don't print an orphan newline when the Black source code formatter
     self-test passes.
 - Tests:
   - Update test to check specific contents of squashfs listing, otherwise it
     fails depending on the test systems uid-to-username mapping in passwd(5).
   - Assign "seen" and "expected" values to local variables to improve
     contextual information in/around failed tests.
 - Misc changes:
   - Print the size of generated HTML, text (etc.) reports.
   - Profile calls to specialize and diffoscope.diff.linediff.
   - Update various copyright years.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/diffoscope?expand=0&rev=29
2021-08-20 19:50:09 +00:00
Sebastian Wagner
baebb39636 - update to version 180:
- Don't include specific ".debug"-like lines in the output, as it invariably
   a duplicate of the debug ID that exists in a better form in the readelf(1)
   differences for this file.
 - Also ignore include short "GCC" lines that differs on a single prefix byte
   too. These are distracting, not very useful and are simply the strings(1)
   command's idea of the build ID, which, again, is displayed nearby in the
   file's diff.
 - Update the invocation arguments and tests for the latest version of
   odt2txt.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/diffoscope?expand=0&rev=28
2021-08-08 18:05:00 +00:00
Sebastian Wagner
15678cc35d - update to version 179:
- Ensure that various LLVM tools are installed, even when testing whether
   a MacOS binary has zero differences when compared to itself.
   (Closes: reproducible-builds/diffoscope#270)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/diffoscope?expand=0&rev=27
2021-07-30 08:21:58 +00:00
Sebastian Wagner
83bc7aaceb - update to version 178:
- Don't traceback on an broken symlink in a directory.
   (Closes: reproducible-builds/diffoscope#269)
 - Rewrite the calculation of a file's "fuzzy hash" to make the control
   flow cleaner.
 - Support .deb package members compressed with the Zstandard algorithm.
   (LP: #1923845)
 - Overhaul the Mach-O executable file comparator.
 - Implement tests for the Mach-O comparator.
 - Switch to new argument format for the LLVM compiler.
 - Fix test_libmix_differences in testsuite for the ELF format.
 - Improve macOS compatibility for the Mach-O comparator.
 - Add llvm-readobj and llvm-objdump to the internal EXTERNAL_TOOLS data
   structure.
 - Invoke gzip(1) with the short option variants to support Busybox's gzip.
- Update to version 177:

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/diffoscope?expand=0&rev=26
2021-07-18 09:44:52 +00:00
Sebastian Wagner
a786446b8c Accepting request 898331 from home:susnux:branches:devel:languages:python
Update to version 177

OBS-URL: https://build.opensuse.org/request/show/898331
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/diffoscope?expand=0&rev=24
2021-06-08 12:36:52 +00:00
Sebastian Wagner
58cb087d1c remove obsolete file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/diffoscope?expand=0&rev=22
2021-05-29 07:46:54 +00:00
Sebastian Wagner
42831c6c34 - Update ffmpeg tests to work with ffmpeg 4.4.
(Closes: reproducible-builds/diffoscope#258)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/diffoscope?expand=0&rev=21
2021-05-29 07:46:35 +00:00
Sebastian Wagner
6b13d9fb66 - update to version 175:
* Use the actual filesystem path name (instead of diffoscope's concept of the
    source name) to correct APK filename filtering when an APK file is in
    another container -- we need to filter the auto-generated "1.apk" instead
    of "original-filename.apk". (Closes: reproducible-builds/diffoscope#255)
  * Don't call os.path.basename twice.
  * Correct grammar in a fsimage.py debug message.
  * Add a comment about stripping filenames.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/diffoscope?expand=0&rev=18
2021-05-14 16:25:50 +00:00
Sebastian Wagner
340dbeb941 - remove fix-file-5.40.patch, merged upstream
- update to version 174:
  * Check that we are parsing an actual Debian .buildinfo file, not just
    a file with that extension.
    (Closes: deb#987994, reproducible-builds/diffoscope#254)
  * Support signed .buildinfo files again -- file(1) reports them as
    "PGP signed message".
  * Make the testsuite pass with file(1) version 5.40.
  * Embed some short test fixtures in the test code itself.
  * Fix recognition of compressed .xz files with file(1) 5.40.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/diffoscope?expand=0&rev=17
2021-05-07 11:46:34 +00:00
Sebastian Wagner
74fe075f83 delete removed patch files
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/diffoscope?expand=0&rev=15
2021-05-02 10:43:14 +00:00
Sebastian Wagner
8889794a36 - remove fix-tests-libmix_differences-2.patch, merged upstream
- remove fix-tests-libmix_differences.patch, merged upstream
- added fix-file-5.40.patch
- update to version 173
  * Add support for showing annotations in PDF files.
    (Closes: reproducible-builds/diffoscope#249)
  * Move to assert_diff in test_pdf.py.
  * Difference.__init__: Demote unified_diff argument to a Python "kwarg".
- update to version 172
  * If zipinfo(1) shows a difference but we cannot uncover a difference within
    the underlying .zip or .apk file, add a comment and show the binary
    comparison. (Closes: reproducible-builds/diffoscope#246)
  * Make "error extracting X, falling back to binary comparison E" error
    message nicer.
- update to version 171
  * Do not list as a "skipping reason" tools that do exist.
  * Drop the "compose" tool from the list of required tools for these tests,
    since it doesn't seem to be required.
- update to version 170
  * Avoid frequent long lines in RPM header outputs that cause very very slow
    HTML outputs. (Closes: reproducible-builds/diffoscope#245)
  * Fix test_libmix_differences on openSUSE Tumbleweed.
    (Closes: reproducible-builds/diffoscope#244)
  * Move test_rpm to use the assert_diff utility helper.
  * Add a diffoscope.tools.get_tools() method to support programmatically
    fetching Diffoscope's config.
  * Become tolerant of malformed Debian .changes files.
- update to version 169
  * Optimisations:
    - Use larger buffer/block sizes when extracting files from libarchive-

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/diffoscope?expand=0&rev=14
2021-05-02 08:45:58 +00:00
Sebastian Wagner
5eef8c2980 - add fix-tests-libmix_differences-2.patch to fix a newline in the other upstream patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/diffoscope?expand=0&rev=12
2021-03-16 10:47:17 +00:00
Sebastian Wagner
88f4b01d49 - activate test_differences test, as it is fixed in openSUSE TW.
- use fix-tests-libmix_differences.patch based on upstream patch and activate test_limix_differences tests.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/diffoscope?expand=0&rev=11
2021-03-15 21:09:23 +00:00
Sebastian Wagner
8d4f2107c4 - Disable failing tests explicitly instead of ignoring the exit code.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/diffoscope?expand=0&rev=10
2021-03-12 08:04:12 +00:00
40f0743fd4 Accepting request 877510 from home:sebix:branches:devel:languages:python
- Activate tests and only disable the failing ones, links to upstream issues.
- Update dependencies
- Update to version 168:

OBS-URL: https://build.opensuse.org/request/show/877510
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/diffoscope?expand=0&rev=8
2021-03-08 08:36:01 +00:00
Tomáš Chvátal
a1a573139f - Add keyring to the spec file
- Use python macros
- Run fdupes
- Execute tests, but always make them pass 7 currently fail

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/diffoscope?expand=0&rev=6
2019-04-05 10:30:19 +00:00
Tomáš Chvátal
cb5aa6e51e Accepting request 691762 from home:bmwiedemann:branches:devel:languages:python
update to version 113
  * better handle missing helpers at runtime
  * improved handling of zip, elf, pdf, wasm(WebAssembly) formats
  * improved output readability

OBS-URL: https://build.opensuse.org/request/show/691762
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/diffoscope?expand=0&rev=5
2019-04-05 10:07:39 +00:00
Dominique Leuenberger
245f589702 Accepting request 649348 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/649348
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/diffoscope?expand=0&rev=4
2018-11-26 09:22:02 +00:00
Yuchen Lin
a7aa28b946 Accepting request 514078 from devel:languages:python3
1

OBS-URL: https://build.opensuse.org/request/show/514078
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/diffoscope?expand=0&rev=3
2017-08-06 09:34:09 +00:00
Dominique Leuenberger
c7cc4b29eb Accepting request 479263 from devel:languages:python3
1

OBS-URL: https://build.opensuse.org/request/show/479263
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/diffoscope?expand=0&rev=2
2017-03-15 00:07:01 +00:00
Dominique Leuenberger
8d0dc838a7 Accepting request 433083 from devel:languages:python3
OBS-URL: https://build.opensuse.org/request/show/433083
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/diffoscope?expand=0&rev=1
2017-01-25 22:17:42 +00:00