meson/mesonbuild/scripts
Benjamin Gilbert 35e230e48c depfixer: silence fix_jar() and make it do something
fix_jar() tries to remove an existing Class-Path entry from the jar
manifest by postprocessing the manifest and passing it to `jar -um`.
However, `jar -um` can only add/replace manifest entries, not remove
them, and it also complains loudly when replacing an entry:

    Dec 13, 2022 7:11:19 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Manifest-Version.
    Ensure that the manifest does not have duplicate entries, and
    that blank lines separate individual sections in both your
    manifest and in the META-INF/MANIFEST.MF entry in the jar file.

Thus fix_jar() produces one such warning for each entry in the manifest
and accomplishes nothing else.

Use jar -uM instead.  This completely removes the manifest from the jar
and allows adding it back as a normal zip member, fixing fix_jar() and
avoiding the warnings.

Fixes: https://github.com/mesonbuild/meson/issues/10491
Fixes: c70a051e93 ("java: remove manifest classpath from installed jar")
2022-12-14 15:37:59 -05:00
..
__init__.py Fix destdir_join 2022-06-26 17:18:26 -04:00
clangformat.py on newer versions of clang-format, use builtin --check handling 2022-12-05 12:33:17 -08:00
clangtidy.py Share common code between clang tidy and format 2021-11-14 22:07:17 +02:00
cleantrees.py mass rewrite of string formatting to use f-strings everywhere 2021-03-04 17:16:11 -05:00
cmake_run_ctgt.py pylint: enable the set_membership plugin 2022-11-30 16:23:29 -05:00
cmd_or_ps.ps1 Fix cmd_or_ps.ps1 script with pwsh7 2022-09-21 18:32:51 -04:00
copy.py scripts: Add a script to copy files. 2022-03-07 12:33:33 -08:00
coverage.py Fix purely white space issues reported by flake8 2022-08-26 17:12:40 -04:00
delwithsuffix.py typing: fully annotate scripts 2020-09-08 20:15:56 +02:00
depfixer.py depfixer: silence fix_jar() and make it do something 2022-12-14 15:37:59 -05:00
depscan.py ninja depscanner: handle C++ sources named capital C 2022-07-25 16:59:41 -04:00
dirchanger.py typing: fully annotate scripts 2020-09-08 20:15:56 +02:00
env2mfile.py Fix writing single strings in env2mfile. 2022-11-22 02:19:59 +02:00
externalproject.py always run external projects multi-threaded if possible 2022-06-17 18:56:38 -04:00
gettext.py gettext: explicitly pass source root / subdir as cli args 2022-05-29 18:23:03 -04:00
gtkdochelper.py gtkdochelper.py: Use os.pathsep for --path argument 2022-04-21 12:13:51 -04:00
hotdochelper.py typing: fully annotate scripts 2020-09-08 20:15:56 +02:00
itstool.py pyupgrade --py37-plus 2022-04-14 18:37:03 -04:00
meson_exe.py Move classes used by scripts to their own module 2022-09-28 19:36:13 -04:00
msgfmthelper.py scripts: accept the path of the gettext commands to run as an argument 2022-03-06 10:48:34 -05:00
regen_checker.py Xcode: regenerato project file when build conf changes. 2021-04-19 17:59:40 +03:00
run_tool.py Fix purely white space issues reported by flake8 2022-08-26 17:12:40 -04:00
scanbuild.py Do not delete workdir in case scan-build fails. 2021-06-02 21:23:51 +03:00
symbolextractor.py pylint: enable the set_membership plugin 2022-11-30 16:23:29 -05:00
tags.py pylint: enable the set_membership plugin 2022-11-30 16:23:29 -05:00
test_loaded_modules.py Move classes used by scripts to their own module 2022-09-28 19:36:13 -04:00
uninstall.py fix: Always explicitly set encoding for text files (fixes #8263) 2021-06-29 11:28:08 +02:00
vcstagger.py fix: Always explicitly set encoding for text files (fixes #8263) 2021-06-29 11:28:08 +02:00
yasm.py Add yasm as fallback for nasm language 2022-10-24 11:06:57 +02:00