From 75808db17caf8b960b351e3408e74142f4c85aac Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 15:42:30 +0200 Subject: Adding upstream version 2.117.0. Signed-off-by: Daniel Baumann --- .../cruft-general-upstream/build-spec/fill-values | 4 ++ .../cruft-general-upstream/build-spec/pre-upstream | 61 ++++++++++++++++++++++ .../checks/cruft/cruft-general-upstream/eval/desc | 5 ++ .../checks/cruft/cruft-general-upstream/eval/hints | 26 +++++++++ 4 files changed, 96 insertions(+) create mode 100644 t/recipes/checks/cruft/cruft-general-upstream/build-spec/fill-values create mode 100755 t/recipes/checks/cruft/cruft-general-upstream/build-spec/pre-upstream create mode 100644 t/recipes/checks/cruft/cruft-general-upstream/eval/desc create mode 100644 t/recipes/checks/cruft/cruft-general-upstream/eval/hints (limited to 't/recipes/checks/cruft/cruft-general-upstream') diff --git a/t/recipes/checks/cruft/cruft-general-upstream/build-spec/fill-values b/t/recipes/checks/cruft/cruft-general-upstream/build-spec/fill-values new file mode 100644 index 0000000..7cfc324 --- /dev/null +++ b/t/recipes/checks/cruft/cruft-general-upstream/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: cruft-general-upstream +Skeleton: upload-non-native +Extra-Build-Depends: zip +Description: Check for cruft in the upstream source diff --git a/t/recipes/checks/cruft/cruft-general-upstream/build-spec/pre-upstream b/t/recipes/checks/cruft/cruft-general-upstream/build-spec/pre-upstream new file mode 100755 index 0000000..827b002 --- /dev/null +++ b/t/recipes/checks/cruft/cruft-general-upstream/build-spec/pre-upstream @@ -0,0 +1,61 @@ +#!/bin/sh +# +# Create all the various junk that shouldn't exist upstream. We do much of it +# here rather than in the template so that Lintian itself can be imported into +# revision control systems. + +set -e +dir="$1" + + +EMPTY_OLE_OBJECT='\320\317\021\340\241\261\032\341' + +mkdir "${dir}/CVS" +echo 'source-contains-cvs-control-dir' > "${dir}/CVS/Entries" +mkdir "${dir}/.svn" +echo 'source-contains-svn-control-dir' > "${dir}/.svn/format" +mkdir "${dir}/.bzr" +echo 'source-contains-bzr-control-dir' > "${dir}/.bzr/foo" +mkdir "${dir}/{arch}" +echo 'source-contains-arch-control-dir' > "${dir}/{arch}/foo" +mkdir "${dir}/.git" +echo 'source-contains-git-control-dir' > "${dir}/.git/foo" +mkdir "${dir}/.hg" +echo 'source-contains-hg-control-dir' > "${dir}/.hg/foo" +mkdir "${dir}/.be" +echo 'source-contains-bts-control-dir' > "${dir}/.be/foo" + +echo 'source-contains-svn-commit-file' > "${dir}/svn-commit.tmp" +echo 'source-contains-svk-commit-file' > "${dir}/svk-commit444.tmp" +echo 'source-contains-arch-inventory-file' > "${dir}/.arch-inventory" +echo 'source-contains-hg-tags-file' > "${dir}/.hgtags" +echo 'source-contains-cvs-conflict-copy' > "${dir}/.#foo.1.1" +echo 'source-contains-svn-conflict-file' > "${dir}/foo.r1352" + +echo 'configure-generated-file-in-source' > "${dir}/config.cache" + +printf "MZ\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x3c" > "${dir}/fake-win32-bin.exe" +# use old magic \001\000\000\000 part is optional but needed with old file +printf "ITSF\003\000\000\000\140\000\000\000\001\000\000\000" > "${dir}/fake-help-file.chm" +# .chm files with "Halibut" are probably generated by free software +printf "ITSF\003\000\000\000\140\000\000\000\001\000\000\000Halibut," > "${dir}/fake-help-file-halibut.chm" + +printf "CWS\011 x" > "${dir}/fakeflash.swf" +echo '//comment' > "${dir}/fake.min.js" +# Make python generate python bytecode files +# - more reliable than crafting them ourselves +echo '' > "${dir}/fake.py" +echo 'import fake' > "${dir}/main.py" +unset PYTHONDONTWRITEBYTECODE +PYTHONPATH="${dir}" python3 "${dir}/main.py" > /dev/null +PYTHONPATH="${dir}" python3 -O "${dir}/main.py" > /dev/null +rm -f "${dir}"/main.py* + +zip -q "${dir}/fake.jar" "${dir}/fake.min.js" +cp "${dir}/fake.jar" "${dir}/fakesilverlight.XAC" + +# need to pad +printf "\320\317\021\340\241\261\032\341" > "${dir}/fakefla.fla" +dd if=/dev/zero of="${dir}/fakefla.fla" count=1 bs=1 seek=2047 > /dev/null 2> /dev/null +cp "${dir}/fakefla.fla" "${dir}/fakeflasourced.fla" +printf '//fake .as flash' > "${dir}/fakeflasourced.as" diff --git a/t/recipes/checks/cruft/cruft-general-upstream/eval/desc b/t/recipes/checks/cruft/cruft-general-upstream/eval/desc new file mode 100644 index 0000000..598c670 --- /dev/null +++ b/t/recipes/checks/cruft/cruft-general-upstream/eval/desc @@ -0,0 +1,5 @@ +Testname: cruft-general-upstream +Check: cruft +Todo: In unstable, file(1) cannot detect files byte-compiled by Python3. (Bug#950516) +# also update the version number below when Bug#950516 was fixed +Test-Depends: file (>= 1:5.38) diff --git a/t/recipes/checks/cruft/cruft-general-upstream/eval/hints b/t/recipes/checks/cruft/cruft-general-upstream/eval/hints new file mode 100644 index 0000000..43d5e56 --- /dev/null +++ b/t/recipes/checks/cruft/cruft-general-upstream/eval/hints @@ -0,0 +1,26 @@ +cruft-general-upstream (source): source-is-missing fakeflash.swf +cruft-general-upstream (source): source-is-missing fakefla.fla +cruft-general-upstream (source): source-is-missing fake.min.js +cruft-general-upstream (source): source-contains-svn-control-dir .svn +cruft-general-upstream (source): source-contains-svn-conflict-file foo.r1352 +cruft-general-upstream (source): source-contains-svn-commit-file svn-commit.tmp +cruft-general-upstream (source): source-contains-svk-commit-file svk-commit444.tmp +cruft-general-upstream (source): source-contains-prebuilt-windows-binary fake-win32-bin.exe +cruft-general-upstream (source): source-contains-prebuilt-silverlight-object fakesilverlight.XAC +cruft-general-upstream (source): source-contains-prebuilt-python-object __pycache__/fake.cpython-38.pyc +cruft-general-upstream (source): source-contains-prebuilt-python-object __pycache__/fake.cpython-38.opt-1.pyc +cruft-general-upstream (source): source-contains-prebuilt-ms-help-file fake-help-file.chm +cruft-general-upstream (source): source-contains-prebuilt-javascript-object fake.min.js +cruft-general-upstream (source): source-contains-prebuilt-flash-project fakeflasourced.fla +cruft-general-upstream (source): source-contains-prebuilt-flash-project fakefla.fla +cruft-general-upstream (source): source-contains-prebuilt-flash-object fakeflash.swf +cruft-general-upstream (source): source-contains-hg-tags-file .hgtags +cruft-general-upstream (source): source-contains-hg-control-dir .hg +cruft-general-upstream (source): source-contains-git-control-dir .git +cruft-general-upstream (source): source-contains-cvs-control-dir CVS +cruft-general-upstream (source): source-contains-cvs-conflict-copy .#foo.1.1 +cruft-general-upstream (source): source-contains-bzr-control-dir .bzr +cruft-general-upstream (source): source-contains-bts-control-dir .be +cruft-general-upstream (source): source-contains-arch-inventory-file .arch-inventory +cruft-general-upstream (source): source-contains-arch-control-dir {arch} +cruft-general-upstream (source): configure-generated-file-in-source config.cache -- cgit v1.2.3